Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy CDROM to filesystem

Status
Not open for further replies.

jaki

MIS
Feb 21, 2002
32
US
Hi all,
while doing an SAP upgrade on an AIX 4.3.3 DB server its necessary to mount several CD's. There is the possibility to give multiple CD Mountpoints, to avoid the upgrade-procedure to stop because the nexe CD must be mouted, but my system only has 1 cdrom. The idea is to copy the several CD's to a filesystem (each in a seperate directory) and give these as CD mountpoints to SAP upgrade procedure.

The Problem:
On a CDFS you can access all files and Dirs in capital or in small letters ... when cpoied to a Filesystem on disk its only accessable in small letters (casesensitive) but the upgrade procedure tries to access File in Capial Letter Filenames and Paths ... any ideas to avoid this ? or is there a Filesystem which is not Case sensitive as CDFS for a Disk?

thanks in andvance ...
Mark
 
Hi,

What did you use to copy files ? It seems to me that if they are in small letters on CD, they should be in small letters on your filesystem (if you copy the hole CD with something like "cd /cdrom; tar cf - . | (cd to_dir; tar xf -)" )

Anyway, you can always rename everything with a simple loop like "cd your_dir; for i in `find .`; do mv $i `echo $i | tr [:lower:] [:upper:]`; done"
 

No, the filenames are in lowercase but the scripts are looking for uppercase names, which doesn't matter on a cdrom but won't work on JFS.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Hi Mark,
use tar instead cp and all will be copied well.
# cd /cdrom
# tar -cvf - *|(cd /NeededFS;tar -xvf -)
Regards Boris
 
the files seem to be in lower cases on the CD, but can also be accesses in upper-cases:

root@eugres04:/ # ll /sapcd
total 96
dr-xr-xr-x 2 root system 2048 Apr 10 2001 .
drwxr-xr-x 38 bin bin 2048 Jan 21 11:03 ..
-r-xr-xr-x 1 root system 53 Apr 10 2001 cdlabel.asc
-r-xr-xr-x 1 root system 53 Apr 10 2001 cdlabel.ebc
-r-xr-xr-x 1 root system 7550 Apr 10 2001 copy_tm.htm
-r-xr-xr-x 1 root system 3603 Apr 10 2001 copy_tm.txt
-r-xr-xr-x 1 root system 2985 Apr 10 2001 crcfile.dat
dr-xr-xr-x 2 root system 2048 Mar 22 2001 data
-r-xr-xr-x 1 root system 24 Mar 29 2001 group.asc
-r-xr-xr-x 1 root system 52 Apr 10 2001 label.asc
-r-xr-xr-x 1 root system 52 Apr 10 2001 label.ebc
dr-xr-xr-x 2 root system 2048 Mar 12 2001 nt
dr-xr-xr-x 2 root system 2048 Mar 12 2001 os400
dr-xr-xr-x 2 root system 4096 Mar 12 2001 tplpack
dr-xr-xr-x 2 root system 2048 Mar 12 2001 unix
-r-xr-xr-x 1 root system 22 Apr 10 2001 version.asc
-r-xr-xr-x 1 root system 22 Apr 10 2001 version.ebc
root@eugres04:/ # cat /sapcd/LABEL.ASC
SAP:R/3:4.6C SR 2:UPGRADE(3/5):Upgrade:CD51013952_3
root@eugres04:/ #

if i use tar to copy the CD all files and dirs are also created in lowercases ...
 
yes, so what about the loop on the files copied if you want to acces them as uppercase letters ?
 
yes ... this satisfies my request if the Program tries to access uppercase lettered Filenames ... I just thought if there are any other possibilities ...

Mark
 
There is a "-o nocase" option you can specify when mounting a filesystem. I've just play with it but it doesn't seem to be significant on JFS ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top