cancel
Showing results for 
Search instead for 
Did you mean: 

copying an DVD to an directory on unix

Former Member
0 Kudos

Hello

First time dealing with copying an DVD to an directory on unix.

Tried with (when on DVD drive) cp * -R /DVDINST

But it does not function. Does anyone knows by hart(in the mentime I am searching)

Accepted Solutions (1)

Accepted Solutions (1)

former_member204746
Active Contributor
0 Kudos

first, you must mount your CD or DVD forcing file names to be in uppercase.

For Solaris, look for mount option "nomaplcase".

Former Member
0 Kudos

you must mount the DVD/CDROM and its different for each Un*x

AIX

#mount -v cdrfs -o ro /dev/cd0 /mnt/cdrom

Linux

#mount -t iso9660 -r /dev/hdb /mnt/cdrom

Solaris

#mount -F hsfs -r /dev/dsk/c0t6d0s2 /mnt/cdrom

then copy (same in all unix -r recursive down into dirs -p preserve permissions)

#cp -rp /mnt/cdrom /my-cd-copy

or cpio

#cd /mnt/cdrom

#find . -print | cpio -Bpdumv /my-cd-copy

or dump/restore

#cd /my-cd-copy

#dump -0 -f - /mnt/cdrom | restore -v -x -y -f -

here is an alternative if you still have issues

Copy the whole CD or DVD as a single image

Put it in the drive but dont mount it (if it does mount umount it) then use dd to take a copy of the whole disk image (eg for iso)

(make sure you have space to store the image its will be 4.7GB for a DVD say)

#dd if=/dev/cd0 of=mydvd.iso (need drive device eg cdrom or cd0 or dvd etc depending on your OS - linux vs aix vs solaris...)

now loopback mount the image back onto the machine...

eg for AIX 6

#mkdir /mydvd

#loopmount -i mydvd.iso -o "-V cdrfs -o ro" -m /mydvd

(now /mydvd is an exact RO copy of the DVD/CD)

( AIX 5.3 http://www.ibm.com/developerworks/wikis/display/WikiPtype/AIXV53MntISO )

in linux

#mkdir /mydvd

#mount -o loop mydvd.iso /mydvd

In Solaris

#mkdir /mydvd

#lofiadm -a mydvd.iso;

#mount -t hfs /dev/lofi/1 /mydvd

etc

Answers (2)

Answers (2)

markus_doehr2
Active Contributor
0 Kudos

use a lower case 'r'

cp -r * /DVDINST

Reading manuals maybe be helpful, just enter

man cp

Markus

Former Member
0 Kudos

Change directory to your DVD drive and execute below command. make sure /DVDINST folder has write permissions for the ID which you are using to perform cp.

cp -R * /DVDINST