Operating System - HP-UX
1833589 Members
4926 Online
110061 Solutions
New Discussion

Re: unable to mount/umount cdrom

 
Joe Robinson_2
Super Advisor

unable to mount/umount cdrom

I am receiving the following error when trying to mount my cdrom:

mount: /dev/dsk/c3t2d0 on /cdrom : Device busy

There are no users in the /cdrom directory, and I've verified that automount and pfs_mountd are not running. Suggestions? This should be an easy fix, but I'm stumped at this point...
22 REPLIES 22
Rick Garland
Honored Contributor

Re: unable to mount/umount cdrom

Did you run the fuser command against the /cdrom directory?

This is a job for lsof. Find those processes that have the device/directory.



Myles McManus
Frequent Advisor

Re: unable to mount/umount cdrom

run 'mount' what's mounted right now?
There's no place like $HOME.
Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

forgot to mention that I'd run fuser on both /cdrom and /dev/dsk/c3t2d0 with no 'hangers on'.

Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

and /cdrom is NOT mounted...
Robert-Jan Goossens
Honored Contributor

Re: unable to mount/umount cdrom

Could you post the output of
# ioscan -fnkCdisk
# diskinfo -v /dev/rdsk/cxtydz

Robert-Jan
Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

Here you go, Robert.
Devender Khatana
Honored Contributor

Re: unable to mount/umount cdrom

Hi,

What does

pfs_mount -o rr /dev/dsk/c3t2d0 /cdrom

say ?

-> mount: /dev/dsk/c3t2d0 on /cdrom : Device busy

Did you really mentioed "on" in the command ?

Also try mounting to some other mount point.

HTH,
Devender
Impossible itself mentions "I m possible"
Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

here's the other one.
Robert-Jan Goossens
Honored Contributor

Re: unable to mount/umount cdrom

Joe,

Check if you can open next doc.

Document description: mount CD "device busy" --> recreate device files
Document id: KBRC00012809

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000069099078

Robert-Jan
Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

No luck, Robert. :( The command ran fine, but the result was the same.
Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

Devender,

That command returned:

pfs_mount: giving up on /cdrom

Devender Khatana
Honored Contributor

Re: unable to mount/umount cdrom

Hi,

I would try as root

#mkdir /cdrom1
#mount /dev/dsk/c3t2d0 /cdrom


& would check for latest command patches.

HTH,
Devender
Impossible itself mentions "I m possible"
Devender Khatana
Honored Contributor

Re: unable to mount/umount cdrom

Oops,

I means

#mount /dev/dsk/c3t2d0 /cdrom1

Regards,
Devender
Impossible itself mentions "I m possible"
Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

Should have mentioned I'd tried that, Devender. No go.

However, I did discover this:

pfs_umount /dev/dsk/c3t2d0
umount: /SD_CDROM: Block device required

This wasn't the mount point I'd been using. Trying to mount it as SD_CDROM failed as the other commands, above.
Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

one other thing...when I tried using 'umount /cdrom' I see 'cannot find /cdrom in /etc/fstab' 'cannot unmount /cdrom'. When I looked at /etc/fstab, I have TWO entries:

/dev/dsk/c3t2d0 /cdrom cdfs ro,suid 0 0
/dev/dsk/c3t2d0 /cdrom cdfs ro,suid 0 0

Could this be causing the problem?
Devender Khatana
Honored Contributor

Re: unable to mount/umount cdrom

Hi,

Yes, it could be as there are two entries. Try removing one entry then it should not give "not find in /etc/fstab".

Also look for option of mounting on other mount point & mounting with "mount /cdrom" as it is allready listed in /etc/fstab.

HTH,
Devender
Impossible itself mentions "I m possible"
Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

how do I refresh the mnttab (/etc/mnttab)? When I run umount /cdrom, I see 'cannot find /cdrom in /etc/mnttab'...

Devender Khatana
Honored Contributor

Re: unable to mount/umount cdrom

Hi,

It is correct only as the entry is put in mnttab when a file system is mounted. As /cdrom is not mounted currently it is not there in mnttab & giving error in unmounting.

HTH,
Devender
Impossible itself mentions "I m possible"
Robert-Jan Goossens
Honored Contributor

Re: unable to mount/umount cdrom

Joe,

I found this thread regarding a similar problem. The author called the HPH CRC and got a patch advice. The patches mentioned in this thread have been superseded by new patches. Maybe you should do the same and ask for more information regarding this problem and the patches mentioned in this thread. Iâ ve checked the info regarding these patches but I can not find any evidence of a solution.

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=235832

PHKL_29611, PHCO_29603 and PHCO_28693

Best regards,
Robert-
Joe Robinson_2
Super Advisor

Re: unable to mount/umount cdrom

In the "for what it's worth" department...

after chasing my tail today on this, I swapped in another CD, and the CD mounted fine; apparantly something happened to that CD within the last day that trashed it...not sure what, though.

Thanks for the input!
Joe
vinod_25
Valued Contributor

Re: unable to mount/umount cdrom

hi Joe

Run ioscan -fnC disk to check whether the cdrom is claimed

diskinfo -v /dev/rdsk/(cdrom device) to confirm its connected

ps -ef | grep pfs to check no pfs daemon are using this device.

fuser -cu /CDROM to check any user is accessing the /cdrom directory

try # dd if=/dev/rdsk/c1t2d0 of=/dev/null bs=1024k

If you get a size a dd can be run on the device file for the drive to see if
it can be read it, if a io error is detected either the cd is defective or the
drive is bad and needs to be replaced.

try removing relevant cdrom device files from /dev/rdsk/ and /dev/dsk/ and run "insf -e"

then try powercycling the server ...

the last and final possibility could be the connection problem or the drive faulty.

Good Luck !

Vinod
Mahesh Kumar Malik
Honored Contributor

Re: unable to mount/umount cdrom