11-13-2003 06:16 AM
When I try to mount I get an error...
# mount /dev/cdrom
mount: /dev/cdrom was either ignored or not found in /etc/fstab
What am I missing...
I have the cd in the cdrom
I am logged in as root.
I did not think I needed to add the cdrom to the fstab, if so what would the options be?
Solved! Go to Solution.
11-13-2003 06:21 AM
FOr example, on my server:
lrwxrwxrwx 1 root sys 15 Mar 7 2001 /dev/cdrom -> /dev/dsk/c0t1d0
11-13-2003 06:24 AM
# ioscan -fnC disk
Check for CD devices and it's device name (/dev/dsk/cxtydz)
# mkdir /cdrom
# mount /dev/dsk/cxtydz /cdrom
11-13-2003 07:43 AM
There is never a devicefile called /dev/cdrom in standard HP-UX. You can create one, perhaps to match some other flavor of Unix, but it is better sysadmin technique to learn the typical naming conventions in each flavor.
11-13-2003 07:31 PM
(1) look for the device file of the cdrom
# ioscan -nfCdisk
disk 2 10/12/5.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 6x/32x
(2) create a directory as cdrom mount point
# mkdir /cdrom
# mount /dev/dsk/c4t2d0 /cdrom
(4) check whether it's mounted
you shoulkd get something similar to the line below:
2457600 2457600 0 100% /cdrom
you cna now access the cd content via mountpoint /cdrom
# umount /cdrom
--> make sure you are not in the mount point when you run the command.
# pwd --> to check where you are and cd .. to leave this mount point before you umount.
If you want to add the cdrom mount point as permanent mount point, here's the steps:
# vi /etc/fstab
--> add in the line below:
/dev/dsk/c4t2d0 /cdrom cdfs ro,cdcase 0 0
save this file and this will mount the CD automatically during reboot.
*note* c4t2d0 is just an example.
11-14-2003 02:32 AM
I also have the option in fstab so you can read CDs which have RockRidge extensions.
my fstab has
For this to work you might need some patches.
I had to add PHKL_26450, PHKL_28060 and PHCO_26449. These might have been superceded by now of course.