Operating System - HP-UX
1834139 Members
2153 Online
110064 Solutions
New Discussion

Re: Cannot mount cdrom - device busy

 
SOLVED
Go to solution
Adam Vollmer
Advisor

Cannot mount cdrom - device busy

First off, let me state that I am not a competant unix sysadmin, or even a sysadmin at all. I am a developer that has been roped into caring for a few machines that no one else is able to.

Currently, we have a HPUX machine that is slowly degenerating as it gets older. At the moment, I'm having a problem with being unable to mount the cdrom. It always tells me that the device is busy. I've run in to this problem before, but have been able to resolve it in the past. However, my old tricks aren't working right now.

-bash-3.2# uname -a
HP-UX falcon B.11.00 U 9000/785 2005351300 unlimited-user license

-bash-3.2# mount -F cdfs -o ro /dev/dsk/c0t0d0 /cdrom

-bash-3.2# diskinfo /dev/dsk/c0t0d0
diskinfo: Character device required


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

-bash-3.2# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 10/0/14/0.0.0 sdisk CLAIMED DEVICE Lite-On LTN483S 48x Max
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 10/0/15/1.6.0 sdisk CLAIMED DEVICE COMPAQ BF0728B26A
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0

-bash-3.2# fuser /dev/dsk/c0t0d0
/dev/dsk/c0t0d0:

This is similar to http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=207780 , although the drive is not quite the same. I am unsure of the current firmware version. Should I still try updating the firmware?

-bash-3.2# cat /etc/mnttab
/dev/vg00/lvol3 / vxfs log 0 1 1217855312
/dev/vg00/lvol1 /stand hfs defaults 0 0 1217855313
/dev/vg00/lvol8 /var vxfs delaylog,nodatainlog 0 0 1217855315
/dev/vg00/lvol7 /usr vxfs delaylog,nodatainlog 0 0 1217855315
/dev/vg00/lvol4 /tmp vxfs delaylog,nodatainlog 0 0 1217855315
/dev/vg00/lvol6 /opt vxfs delaylog,nodatainlog 0 0 1217855315
/dev/vg00/lvol5 /home vxfs delaylog,nodatainlog 0 0 1217855315
falcon:(pid721) /net ignore ro,intr,port=896,map=-hosts,indirect,dev=0000 0 0 1217855340

There is no /etc/xmnttb file.

I am not in /cdrom

There is a good CD in the drive.

-bash-3.2# fuser -cu /cdrom
/cdrom: fuser: could not find file system mounted at /cdrom.
9 REPLIES 9
Dennis Handly
Acclaimed Contributor
Solution

Re: Cannot mount cdrom - device busy

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

The most recent cause of these was the fact the CD wasn't written correctly. A windows only CD:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1229931

You could also try:
# mkdir /ctrom2
# mount -F cdfs -o ro /dev/dsk/c0t0d0 /cdrom2

That can't be busy. :-)
Adam Vollmer
Advisor

Re: Cannot mount cdrom - device busy

I have actually tried this, sorry, I forgot to mention it. I deleted /cdrom, recreated /cdrom, and tried mounting that, to no avail. I tried creating /tmp_cd and mounting there, same problem.

Additionally, the CD works correctly when inserted into a linux machine, so I'm pretty sure it is not unreadable.

Let me try another CD, just in case, but if that doesn't work, please suggest other ideas to take.
Dennis Handly
Acclaimed Contributor

Re: Cannot mount cdrom - device busy

Here is another link about a bad CD format:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1254647

>the CD works correctly when inserted into a linux machine, so I'm pretty sure it is not unreadable.

That's not the issue. Is the format understandable on HP-UX.
Try some CD you got for HP-UX installation.

Once you get it mounted, you probably need more options than just:
-F cdfs -o ro
Adam Vollmer
Advisor

Re: Cannot mount cdrom - device busy

Sorry, you were right! It turns out that both of the CDs I have for a particular version of our software do not work with the HPUX machine, but another CD I tried just in case mounts just fine.

Thanks!
Adam Vollmer
Advisor

Re: Cannot mount cdrom - device busy

Just for clarification for future users, the 2 "bad" cds were iso9660, and the "good" cd was udf. I've looked into pfs_mount, and I've got things working smoothly now. Thanks again.
Dennis Handly
Acclaimed Contributor

Re: Cannot mount cdrom - device busy

>pfs_mount instead of mount

You may want to think twice about using pfs_mount. But I'm not sure if there were any patches to fix mount on 11.00 for iso9660.
Adam Vollmer
Advisor

Re: Cannot mount cdrom - device busy

Oh? What should I be watching out for in particular? I can reburn the CDs if necessary.
Dennis Handly
Acclaimed Contributor
Adam Vollmer
Advisor

Re: Cannot mount cdrom - device busy

Alright, I'll keep an eye out. Thanks again!