Operating System - HP-UX
1821245 Members
2683 Online
109632 Solutions
New Discussion юеВ

device busy when mounting cdrom

 
SOLVED
Go to solution
James Ellis_1
Super Advisor

device busy when mounting cdrom

When I try to mount the cdrom using:

mount /dev/dsk/c0t1d0 /cdrom

I get the error message:
/dev/dsk/c0t1d0: Device Busy

I checked and did not see any cd in the cdrom. I forgot what caused this device busy.

Any suggestion on what to look at?
Thanks.
"In the middle of difficulty lies opportunity" -Einstein
13 REPLIES 13
Jeff Schussele
Honored Contributor

Re: device busy when mounting cdrom

Hi James,

Are you, or anyone, sitting in /cdrom?
DO a fuser -u /cdrom to tell
Is /cdrom still mounted?
Do a bdf to tell

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Uday_S_Ankolekar
Honored Contributor

Re: device busy when mounting cdrom


Hello,

See with fuser command if anybody using cdrom

fuser -cu /cdrom

If not

Try mounting with pfs_mount

nohup /usr/sbin/pfs_mountd &
nohup /usr/sbin/pfsd &
/usr/sbin/pfs_mount -t rrip -x unix /dev/dsk/devname /cdrom

-USA..
Good Luck..
James Ellis_1
Super Advisor

Re: device busy when mounting cdrom

I'll check to see if anyone is using /cdrom, but I doubt it bec BDF does not show /cdrom as mounted. Let me check and see. Thanks. I'll get back in a few minutes.
"In the middle of difficulty lies opportunity" -Einstein
MANOJ SRIVASTAVA
Honored Contributor

Re: device busy when mounting cdrom

I think /dev/dsk/c0t1d0 is not a cdrom , please do a ioscan -fnC cdrom and check for the device file , also ensure that no one is in /cdrom directory . This you may try by mounting the device on some other directory.


Manoj Srivastava
James Ellis_1
Super Advisor

Re: device busy when mounting cdrom

I did the fuser, and there are no one using the cdron, and I was sitting in the / directory.

Uday, I did what you suggested, except for the last line/command. I remember running the command you suggested when I was working with Oracle dba...BUT I used to be able to mount/umount /dev/dsk/c0t1d0 without any problems. Do I need to start using the pfs_mountd command?

Right now, I din't see any cdrom drive when I do a BDF. Why?

Thanks.
"In the middle of difficulty lies opportunity" -Einstein
Sajid_1
Honored Contributor

Re: device busy when mounting cdrom

hello,

first make sure that you not in the directory /cdrom:
# pwd
# cd /
then give the mount command.
Check 'fuser' and see anybody using /cdrom.
Check and find out the correct device name for CD drive:
# ioscan -fnC disk
learn unix ..
steven Burgess_2
Honored Contributor
Solution

Re: device busy when mounting cdrom

James

Eject the cd-rom then re-insert and try another mount

HTH

Steve
take your time and think things through
James Ellis_1
Super Advisor

Re: device busy when mounting cdrom

Manoj,

I was not able to get anything when I did
ioscan -fnC cdrom but

ioscan -fnC disk brought up a list of disks, and under DVD-ROM is shows the device as /dev/dsk/c0t1d0.

Thanks.
"In the middle of difficulty lies opportunity" -Einstein
Sajid_1
Honored Contributor

Re: device busy when mounting cdrom

hi again,

Did you find out the device file for the CD drive (ioscan)? May be the device file you are trying is wrong!
learn unix ..
Pete Randall
Outstanding Contributor

Re: device busy when mounting cdrom

James,

I think Manoj is right c0t1d0 is not normally a cdrom drive. Check your ioscan:

# ioscan -kfnCdisk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 8/0/19/0.5.0 sdisk CLAIMED DEVICE SEAGATE ST34520W
S
/dev/dsk/c1t5d0 /dev/rdsk/c1t5d0
disk 1 8/0/19/0.6.0 sdisk CLAIMED DEVICE QUANTUM VIKING2-
4WS
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0
disk 2 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM X
M-5701TA
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0


In this one you can see the Toshiba CD-ROM is at /dev/dsk/c2t2d0.

Pete

Pete
Pete Randall
Outstanding Contributor

Re: device busy when mounting cdrom

Disregard, then.

Pete

Pete
Sajid_1
Honored Contributor

Re: device busy when mounting cdrom

hi again,

okay, now you found it's c0t1d0. Check what will be the output of this:
# diskinfo /dev/rdsk/c0t1d0
This should give you the details of the CD inside the drive (size), if there is a CD there.
learn unix ..
James Ellis_1
Super Advisor

Re: device busy when mounting cdrom

Case is closed! Removing the CD and re-insterting did the trick! Oh well...thanks guys.
"In the middle of difficulty lies opportunity" -Einstein