
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reading data CD/DVDs . . . . . (was: Re: [tlug] Video Editing Soft & Formats)
"Daniel A. Ramaley" <daniel.ramaley@example.com> wrote:
> I want to rip my DVD collection to hard drive
Here's what I use to read data CD/DVDs:
[jep@example.com jep]$ cat bin/readrawcd
#!/bin/sh
device=$1
blocksize=`isoinfo -d -i $device | grep "^Logical block size is:" | cut -d " " -f 5`
if test "$blocksize" = ""; then
echo catdevice FATAL ERROR: Blank blocksize >&2
exit
fi
blockcount=`isoinfo -d -i $device | grep "^Volume size is:" | cut -d " " -f 4`
if test "$blockcount" = ""; then
echo catdevice FATAL ERROR: Blank blockcount >&2
exit
fi
command="dd if=$device bs=$blocksize count=$blockcount conv=notrunc,noerror"
echo "$command" >&2
$command
[jep@example.com jep]$
I use it like:
readrawcd /dev/cdrom | tee foo.iso | md5sum >>MD5SUM
Sometimes I need to turn off read ahead:
hdparm -a 0 /dev/cdrom ;# (I'm not sure about the -a 0 part, so RTM)
Mount like:
mount -t iso9660 -o loop,ro foo.iso /mnt/foo
Home |
Main Index |
Thread Index