Linux commandline guidance - 'dev:' option.
Posted: Wed Jun 01, 2022 6:28 pm
Hello all!
I hope this is the right place, apologies if not and feel free to signpost me to the best place, I'm posting here after some advice in another thread to start a new post.
I'd love some help understanding the syntax of the command line, i'm trying to use it (MakeMKV) in a script and it has worked really well, the difficulty I have is that I've only ever had one optical drive and now have two. My standard use of makemkv is the following command.
For example:
Looking at the command line help...
Can anyone help me?
I hope this is the right place, apologies if not and feel free to signpost me to the best place, I'm posting here after some advice in another thread to start a new post.
I'd love some help understanding the syntax of the command line, i'm trying to use it (MakeMKV) in a script and it has worked really well, the difficulty I have is that I've only ever had one optical drive and now have two. My standard use of makemkv is the following command.
Up until now what I would do in the script is take the linux dev source of saymakemkvcon backup --decrypt --messages=messages.log" --progress="messages_progress.log" -r drive:0 /home/me/Videos/Rips/MY_OPTICAL_BLUERAY_DISC
strip out the characters to leave the 0 and combine with/dev/sr0
to give makemkv its source drive. I've noticed now that with two drives, makemkv drive number doesn't always match with the /dev drive number.disc:
For example:
gives:makemkv -r info
So makemkv drive 0 is /dev/sr1 and drive 1 is /dev/sr0.MSG:1005,0,1,"MakeMKV v1.16.7 linux(x64-release) started","%1 started","MakeMKV v1.16.7 linux(x64-release)"
DRV:0,0,999,0,"DVD+R-DL HL-DT-ST DVD+-RW GT32N A102 KY5A7904700","","/dev/sr1"
DRV:1,2,999,12,"BD-ROM MATSHITA BD-CMB UJ160 1.00 WN63 138789","MY_OPTICAL_BLUERAY_DISC","/dev/sr0"
Looking at the command line help...
...it looks like I can use the dev option to specify the drive usingSource specification:
iso:<FileName> - open iso image <FileName>
file:<FolderName> - open files in folder <FolderName>
disc:<DiscId> - open disc with id <DiscId> (see list Command)
dev:<DeviceName> - open disc with OS device name <DeviceName>
looking at the command structure of:/dev/sr0
I tried:makemkvcon [switches] Command [Parameters]
but no matter how I seem to construct the command I just can't seem to get dev: to work with backup. I get the error message:makemkvcon -r backup --messages=messages.log" --progress="messages_progress.log" --decrypt <source> <destination folder>
What I'm trying to achieve is to decrypt and backup the disc to a directory, divert messages to one file and progress updates to another file using the dev drive as the sourceBackup source must start with "disc:"
Can anyone help me?