Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

umount cdrom problems

SOLVED
Go to solution
Lars Karlsson
Occasional Visitor

umount cdrom problems

Hi all, I'm new in this forum and aswell a newbie in HP UX . The other day I installed a "patch package" on our hp box and after that I have had some small issus.
One of them is that I can't mount or unmount the cdrom on it. I have tried umount /cdrom that does not work , I have also tried to do pfs_umount /cdrom - gives an error saying block device required.
Another thing is that if I run bdf i can't see that there is any cdrom mounted at all , but if I do cd /cdrom i dont get any error I can then do pwd and it shows /cdrom if then do a ls it does find anything (there is a cd in the cdrom).
My hp ux is not that big so I would appreciate all help I can get.

Many thanks
Lars. K.
Lars
12 REPLIES
Lars Karlsson
Occasional Visitor

Re: umount cdrom problems

sorry the last rows in my query should be

if then do a ls it doesn't find anything (though there is a cd in the cdrom).
My hp ux SKILLS are not that big so I would appreciate all help I can get.

Lars
Ruediger Noack
Valued Contributor

Re: umount cdrom problems

Hi,

what means: umount /cdrom does not work? Any error message?

Ruediger


Lars Karlsson
Occasional Visitor

Re: umount cdrom problems

This is what get when run umount



# umount /cdrom
umount: cannot find /cdrom in /etc/mnttab
cannot unmount /cdrom
Lars
Darrell Allen
Honored Contributor
Solution

Re: umount cdrom problems

Hi Lars,

The cd may not be mounted on /cdrom. Use "ioscan -fnkC disk" to identify the device name for your cdrom drive. Then use bdf (or mount) to see where that device is mounted. Then use "fuser -c /xxxx" where /xxxx is the mount point of the cdrom. If any processes are listed then the cdrom is in use and can't be umounted. If no processes are listed, then umount /xxxx.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Ruediger Noack
Valued Contributor

Re: umount cdrom problems

I remember, may be your CD isn't mount yet, but you aren't able to open the tray.
If it is so, you have to mount following umount your CD.
mount /dev/dsk/cxtydz
umount /dev/dsk/cxtydz
/dev/dsk/cxtydz is your appropriate device file.

Hope this helps

Ruediger
Lars Karlsson
Occasional Visitor

Re: umount cdrom problems

Hello Allen,
Downbelow is the output I get when running the "scan" and from mount, bdf
# ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 8/0.5.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
# mount
/ on /dev/vg00/lvol3 log on Tue Jan 15 12:16:35 2002
/stand on /dev/vg00/lvol1 defaults on Tue Jan 15 12:16:38 2002
/var on /dev/vg00/lvol8 delaylog,nodatainlog on Tue Jan 15 12:16:46 2002
/usr on /dev/vg00/lvol7 delaylog,nodatainlog on Tue Jan 15 12:16:47 2002
/tmp on /dev/vg00/lvol4 delaylog,nodatainlog on Tue Jan 15 12:16:47 2002
/opt on /dev/vg00/lvol6 delaylog,nodatainlog on Tue Jan 15 12:16:47 2002
/home on /dev/vg00/lvol5 delaylog,nodatainlog on Tue Jan 15 12:16:47 2002

bdf gives

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 86016 22897 60252 28% /
/dev/vg00/lvol1 67733 30469 30490 50% /stand
/dev/vg00/lvol8 512000 381267 126516 75% /var
/dev/vg00/lvol7 671744 440455 218314 67% /usr
/dev/vg00/lvol4 32768 1187 29675 4% /tmp
/dev/vg00/lvol6 413696 161039 238119 40% /opt
/dev/vg00/lvol5 1880064 164096 1628197 9% /home

I'm not sure what to do , maybe something got totaly screwed up when I installed the "patch" package and I??have to reinstall the whole kit ...

Lars
Lars
Ruediger Noack
Valued Contributor

Re: umount cdrom problems

This means your CD isn't mounted yet.
Where is your problem?

Ruediger


Lars Karlsson
Occasional Visitor

Re: umount cdrom problems

Well if I try to mount the cdrom it doesn't work

if i run
mount -o cdcase /dev/dsk/c1t2d0 /cdrom

it just sits there waiting for something ...nothing happens...

I've tried psf_mount aswell nothing happens ..

I think someting is really became screwed up after I applied the patch patch package. It worked before I installed it.
Lars
Darrell Allen
Honored Contributor

Re: umount cdrom problems

Hi again,

Try:
mount -F cdfs -o cdcase /dev/dsk/c1t2d0 /cdrom

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Stefan Saliba
Trusted Contributor

Re: umount cdrom problems

From the output of the ioscan and bdf it seems that you never really mounted the CDROM. Check if you can open the tray. If yes then it is not mounted.

to mount a cd simply type

mount -r /dev/dsk/c1t2d0 /cdrom. Be sure though that the directory cdrom EXISTS in the root directory.

simply do an ls / and see if a directroy cdrom exists.
if not type mkdir /cdrom.

to unmount type umount /cdrom.

good luck stefan
Ruediger Noack
Valued Contributor

Re: umount cdrom problems

Hi Lars,

where do you wait for if you say:
"Well if I try to mount the cdrom it doesn't work".
Are you back in the prompt after mount command without output? Then your command was succesful.
Or do you get any error message?

Ruediger


Uday_S_Ankolekar
Honored Contributor

Re: umount cdrom problems

Hi,

If you want to mount a cdrom follwo these steps.

if you dont't have a cdrom directory create it by

mkdir /cdrom

Then follow these steps:
Follow these steps sequentially to mount a oracle cd

# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &

/usr/sbin/pfs_mount -t rrip -x unix /dev/dsk/c1t2d0 /cdrom

For other CD's
mount -F cdfs -r -o cdcase /dev/dsk/c1t2d0 /cdrom

Goodluck,
-USA..



Good Luck..