ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
First off /dev/hdd is the DEVICE for the hard drive. Unless this is an unformatted hard drive (unlikely) you don't want to be doing a dd to the DEVICE. You want to dd to a FILE on the filesystem mounted on the DEVICE. Type "fdisk -l /dev/hdd" to see what partitions you have on the device. Type "df -h" to see what filesystems you have mounted using those partitions.
Secondly Trying to dd in multiple files and output to a single file would not give you the images you want. What you want to do is a for loop to do a dd for EACH of the files.
Something like this instead of the dd command you currently have:
Code:
for DVD in `ls /dv_dvd`
do dd if=/dv_dvd/$DVD of=/filesystem/$DVD.img
done
So write to /mnt/cdrom rather than /dev/hdd. /mnt/cdrom being the filesystem.
However I don't know that you can just write to it like that. It seems you'd need to "burn" the CD which is a little more complicated than just copying things to it.
Last edited by MensaWater; 02-02-2007 at 01:42 PM.
The following script works great except for writing to a DVD.
I use K3b for that.
It would be nice if it would copy to a DVD in one operation.
There are a couple of hundred do to.
Any ideas appreciated.
dlw
echo
cd /hdb/Movies/
echo
echo "Enter Movie Title."
read -e path
mkdir $path
cd /hdb/Movies/$path
echo
echo
echo "Create one large *.vob."
vobcopy -l
echo
open /dev/hdd/
echo
echo "Remove DVD."
echo
echo "Insert Blank DVD."
echo
echo "Extracting video to movie.m2v."
echo
tcextract -i *.vob -t vob -x mpeg2 > movie.m2v
echo
echo "Extracting audio to audio.ac3."
echo
tcextract -i *.vob -a 0 -x ac3 -t vob > audio.ac3
echo
echo "Clean up *.vob."
echo
rm *.vob
echo
vsize=`du -b movie.m2v | cut -c 1-10`
audioa=`du -b audio.ac3 | cut -c 1-9`
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.