on 11-10-2010 7:30 AM
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)
first, you must mount your CD or DVD forcing file names to be in uppercase.
For Solaris, look for mount option "nomaplcase".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
use a lower case 'r'
cp -r * /DVDINST
Reading manuals maybe be helpful, just enter
man cp
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.