Operating System - HP-UX
1847354 Members
4062 Online
110264 Solutions
New Discussion

Unable to mount CD correctly with rockridge options

 
Toriq
Occasional Contributor

Unable to mount CD correctly with rockridge options

My system is a HPUX11.11 with Rock Ridge Patches installed(PHCO_25841,PHKL_26269,PHKL_32035)

swlist output confirmed that it is installed and in configured state.

however whenever i tried to mount a cd, all filenames still appears in uppercase and i get the following line in syslog.

vmunix: Sorry, RRIP 1.12 not supported

the exact command used to mount the cd is:
mount -F cdfs -o rr /dev/dsk/c1t2d0 /SD_CDROM


Thanks,
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Unable to mount CD correctly with rockridge options

Shalom,

/usr/sbin/mount -F cdfs -e -o ro,rr /dev/dsk/c3t2d0 /cdrom

Thats mine.

Revision for you.

/usr/sbin/mount -F cdfs -e -o ro,rr /dev/dsk/c1t2d0 /SD_CDROM

Might want to create a /cdrom mountpoint for this. Not a requirement.

SEP
Safe!
Really!
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Toriq
Occasional Contributor

Re: Unable to mount CD correctly with rockridge options

steven,

nope, it still doesn't work. Same uppercase filenames and the same line in syslog. Could it be something to do with Rock Ridge format/version itself (RRIP 1.12)?

the cd was created on Mac OSX 10.4. Will try with other CDs to confirm this.

thanks anyway
John Hall
Frequent Advisor

Re: Unable to mount CD correctly with rockridge options

I have experienced the same exact problem when mounting a Windows or MAC based CD on a Unix server - uppercase filenames!

The following solution works for me:

---------------------------------
TO MOUNT A ROCKRIDGE FORMATTED CD:
---------------------------------
mv /etc/pfs_fstab /etc/pfs_fstab.save
(No need to do this 'mv' if file does not exist)

echo "/dev/rdsk/c0t2d0 /cdrom pfs-iso9660 xlat=unix 1 0" > /etc/pfs_fstab

(If the "pfs-iso9660" does not work - meaning you don't get lowercase filenames - then try this again using "pfs-rrip")

chown root:sys /etc/pfs_fstab
chmod 644 /etc/pfs_fstab

nohup /usr/sbin/pfs_mountd &
sleep 2
nohup /usr/sbin/pfsd &
sleep 2
echo
echo "PFS Mounting /cdrom using pfs, please wait ..."
/usr/sbin/pfs_mount /cdrom

Now, "cd /cdrom" and see if the filenames are as you want - not all uppercase.


----------------------------------
TO UMOUNT A ROCKRIDGE FORMATTED CD:
----------------------------------
/usr/sbin/pfs_umount /cdrom
sleep 3

echo "Now killing pfs daemons ..."
PIDS=`ps -ef | grep pfs | grep -v grep | awk '{print $2}'`
for PID in `echo $PIDS`
do
if [ "x$PID" = "x$$" ]; then
continue
fi

PS=`ps -p $PID | tail -1`
echo "kill -9 $PID # [$PS]"
kill -9 $PID
done

if [ -s /etc/pfs_mtab ]; then
> /etc/pfs_mtab
fi

You may get a few funky error messages when umounting the PFS mounted CD but they are harmless. The end result is a properly mounted CD and umounted CD.
John Hall
Frequent Advisor

Re: Unable to mount CD correctly with rockridge options

Sorry, I forgot to mention that the "/dev/rdsk/c0t2d0" is the device filename for the CD-ROM (do ioscan to determine what is is on your system) and you have to do a "mkdir /cdrom" before sometime before nohup'ing (starting) the PFS daemons.
Matthew Pearce
Frequent Advisor

Re: Unable to mount CD correctly with rockridge options

The following seems to work fine for me:

# mount -F cdfs -o cdcase /dev/dsk/c3t2d0 /cdrom
Toriq
Occasional Contributor

Re: Unable to mount CD correctly with rockridge options

re-burn the data into lower compatibility mode. With that, the mount -o rr works fine