Hacker News new | ask | show | jobs
by newname2018 2738 days ago
Dd if=/(name of drive) Bs=1 Of=/( name of drive to copy to include the path Conv=notrunc

Create a directory and a file on the target machine first a name like /myfile/this file Then to create a bit by bit copy of that file use this command Something like this Dd if=/dev/cdrom bs=1 of=/dev/sdc/myfile/thisfile.iso conv=notrunc

3 comments

I’d use gddrescue - it logs what it’s successfully read, so you can try multiple drives. And there should be some way of reading the dvd / volume title from a script.
Why set the block size to 1? Isn't that just going to cause a ridiculous amount of syscalls?
Yah, and be incredibly slow as well. It should be at a minimum 32K which is the DVD block size, but even larger would be better (but may interleave badly with IO to other devices).
It should be 2048 which is DVD sector size.
Because of ECC it doesn't read a single sector at a time. And actually even 32K is not large enough for good performance, you should go higher, maybe 1MB.
That does not deal with DRM
does it need to? from the source material it sounds like there should not be any DRM on it, but even if, does DRM prevent a bitwise copy of a media? if not, you can deal with DRM after making the copy.
It was mentioned elsewhere - some drives will randomly flip bits in order to make bitwise copies impossible if you just start copying. A software that can actually correctly work with the CD/DVD drive is necessary.