Operating System - HP-UX
1846318 Members
3524 Online
110256 Solutions
New Discussion

Mount CD with Long file name

 
SOLVED
Go to solution
Achilles_2
Regular Advisor

Mount CD with Long file name

Hi there,

Do anyone know how to mount the CD which has long file name?

Thanks
24 REPLIES 24
Joseph Loo
Honored Contributor

Re: Mount CD with Long file name

hi,

try this:

# mount -F cdfs -o cdcase /device_name /CDROM

regards.
what you do not see does not mean you should not believe
Arunvijai_4
Honored Contributor

Re: Mount CD with Long file name

Two ways,

1) #nohup /usr/sbin/pfs_mountd &
#nohup /usr/sbin/pfsd &
#pfs_mount /dev/dsk/c0t0d0 /cd

2) mount -F cdfs -o rr /dev/dsk/c0t0d0 /cd

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Achilles_2
Regular Advisor

Re: Mount CD with Long file name

Hey man,

I had already used those methods, but the filename are still incorrect and show the uppercase
Yogeeraj_1
Honored Contributor

Re: Mount CD with Long file name

hi,

please try the attached script that i had once down from here itself.

use the script to both mount and unmount your cds/dvds


regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: Mount CD with Long file name

script attached.
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Arunvijai_4
Honored Contributor

Re: Mount CD with Long file name

Yogee, Your script also uses pfs_mountd and pfsd .. Author says he already used those methods. So, lets wait for his feedback

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: Mount CD with Long file name

A link from IBM about mounting a CD drive on HP-UX with long file names (point #6)

http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/tins_hpuxmount.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Dave Unverhau_1
Honored Contributor

Re: Mount CD with Long file name

Maybe this is too basic, but do you have the Rock Ridge patches installed? (didn't notice which o/s version you're running, but if it's 11.11 or 11.0, these are needed)

(swlist -l product|grep -i -e "rock ridge")

If not installed, you'll need:

PHCO_25841, PHKL_26269, PHKL_32035 (for 11.11)
PHCO_26449, PHKL_26450, PHKL_28060 (for 11.0)

Best Regards,

Dave
Romans 8:28
Achilles_2
Regular Advisor

Re: Mount CD with Long file name

If it's 11.23 in my system, does it need to have the Rock Ridge patches installed?

Best Regards,
Arunvijai_4
Honored Contributor

Re: Mount CD with Long file name

Don't think so, 11.23 has built in capability to handle the Rock Ridge. My 11.23,

# swlist -l product|grep -i -e "rock ridge"
#

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Achilles_2
Regular Advisor

Re: Mount CD with Long file name

Yes, I got the same result of swlist -l product|grep -i -e "rock ridge". Also I run the following commands

In /etc/pfs_fstab file,
#/dev/dsk/c0t0d0 /cd pfs-rrip ro,hard
#nohup /usr/sbin/pfs_mountd &
#nohup /usr/sbin/pfsd &
pfs_mount /cd

The output is :
pfs_mount: /dev/dsk/c0t0d0 on /cd: not rrip.
pfs_mount: giving up on /cd
Yogeeraj_1
Honored Contributor

Re: Mount CD with Long file name

hi again,

see Merijn's site at : http://www.cmve.net/~merijn/faq.html

the section on: My CD-ROM doesn't show what I expect

hope this helps!
regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Joseph Loo
Honored Contributor

Re: Mount CD with Long file name

hi,

if u r doing it from pfs_fstab, try this:

1. create file, /etc/pfs_fstab
2. add entry to /etc/pfs_fstab
# "device name" /cdrom pfs-rrip xlat=unix 0 0
3. run pfs daemon at the background
# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
4. start nfs server
# /sbin/init.d/nfs.server start
5. mount and unmount file system
# pfs_mount /cdrom
# pfs_umount /cdrom

regards.
what you do not see does not mean you should not believe
RAC_1
Honored Contributor

Re: Mount CD with Long file name

fstyp -v /dev/dsk/cxtxdx

What type of fs is on CD??
There is no substitute to HARDWORK
Achilles_2
Regular Advisor

Re: Mount CD with Long file name

# fstyp -v /dev/dsk/c0t0d0
Here is the output
cdfs
f_bsize: 2048
f_frsize: 2048
f_blocks: 14997
f_bfree: 0
f_bavail: 0
f_files: 18446744073709551615
f_ffree: 0
f_favail: 0
f_fsid: 520093696
f_basetype: cdfs
f_namemax: 37
f_magic: 0
f_featurebits: 0
f_flag: 0
f_fsindex: 2
f_size: 14997
RAC_1
Honored Contributor

Re: Mount CD with Long file name

Do as follows and post.

mount -F cdfs -o cdcase,rr /dev/dsk/cxtxdx /mount_point

Assuming that you have require rock ridge patches.
There is no substitute to HARDWORK
Achilles_2
Regular Advisor

Re: Mount CD with Long file name

RAC,

I follow your method but the output doesn't print out the long file name. Also I checked my system doesn't have rock ridge patches

Bharat Katkar
Honored Contributor

Re: Mount CD with Long file name

hi,
can you try this with pfs mount:

1. Run PFS daemons as below:
/usr/sbin/pfsmountd &
pfsd 1 &
touch /etc/pfs_fstab

2. Now mount the iso image using pfs_mount command:
pfs_mount -t iso9660 -o

Hope that works.
Regards,

You need to know a lot to actually know how little you know
Achilles_2
Regular Advisor

Re: Mount CD with Long file name

what is the content of /etc/pfs_fstab?
RAC_1
Honored Contributor

Re: Mount CD with Long file name

swlist -l patch | grep -i rock

Yuo already should have rock ridge patches as you are on 11.23. Else you will have to install those before you can mount it.

Also what exactly is this CD??
There is no substitute to HARDWORK
Bharat Katkar
Honored Contributor

Re: Mount CD with Long file name

No contents ...just touch that file. It will only check it's presence.

Regards,
You need to know a lot to actually know how little you know
Piergiacomo Perini
Trusted Contributor

Re: Mount CD with Long file name

Hi all,

/etc/pfs_fstab file for
RockRidge format,in my opinion
must have an entry like this :

/dev/dsk/c1t2d0 /SD_CDROM pfs-rrip xlat=unix 0 0


hih

regards
pg
Arunvijai_4
Honored Contributor

Re: Mount CD with Long file name

If nothing works, use NFS or Samba to access CD from Windows to HP-UX..

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Bill Hassell
Honored Contributor
Solution

Re: Mount CD with Long file name

There are many CDROM formats, ISO9660, RockRidge, Joliet, etc. The RockRidge patches will enable the -orr option but since the pfs_mount (NEVER use pfs in a production system, especially 11.00 and later) says "not rrip" which means the CD is not in Rock Ridge Interchange Protocol. So the first question is: how was this CD created? Joliet is a a common PC format but is mostly incompatible with non-PC platforms. That's why CDR burning programs ask the question about creating a common, interchangeable format (always pick that option). Also, never try to use piecemeal CDs (drag and drop) as they require special software to read these CDs.


Bill Hassell, sysadmin