System Administration

Regarding cdrom mounting ...

 
srinu_1
Frequent Advisor

Regarding cdrom mounting ...

Hi all,

I try to mount cdrom on my server.But it's simply hanging.I am not able to kill that process also.If I type
#mount /dev/dsk/cot0d0 /cdrom
It's simply hanging.
Please find the detais below...
I am not able to kill that process also.

root@dhruva# ps -ef |grep mount
root 1038 1 0 Mar 20 ? 67:59 /usr/lib/netsvc/fs/autofs/automountd
root 2433 1 0 Mar 20 ? 0:00 /usr/sbin/rpc.mountd
root 24812 24694 0 12:49:52 pts/4 0:00 grep mount
root 24369 1 0 12:24:52 ? 0:00 mount /dev/rdsk/c0t0d0 /cdrom
root 24431 24388 0 12:27:39 ? 0:00 mount /dev/dsk/c0t0d0 /cdrom
root 24590 24515 0 12:35:44 ? 0:00 mount /dev/dsk/c0t0d0 /cdrom
root@dhruva# kill -9 24590
root@dhruva# ps -ef |grep mount
root 1038 1 0 Mar 20 ? 67:59 /usr/lib/netsvc/fs/autofs/automountd
root 2433 1 0 Mar 20 ? 0:00 /usr/sbin/rpc.mountd
root 24369 1 0 12:24:52 ? 0:00 mount /dev/rdsk/c0t0d0 /cdrom
root 24431 24388 0 12:27:39 ? 0:00 mount /dev/dsk/c0t0d0 /cdrom
root 24590 24515 0 12:35:44 ? 0:00 mount /dev/dsk/c0t0d0 /cdrom
root 24814 24694 1 12:50:01 pts/4 0:00 grep mount
root@dhruva# kill -9 24369
root@dhruva# ps -ef |grep mount
root 1038 1 0 Mar 20 ? 67:59 /usr/lib/netsvc/fs/autofs/automountd
root 2433 1 0 Mar 20 ? 0:00 /usr/sbin/rpc.mountd
root 24816 24694 0 12:50:19 pts/4 0:00 grep mount
root 24369 1 0 12:24:52 ? 0:00 mount /dev/rdsk/c0t0d0 /cdrom
root 24431 24388 0 12:27:39 ? 0:00 mount /dev/dsk/c0t0d0 /cdrom
root 24590 24515 0 12:35:44 ? 0:00 mount /dev/dsk/c0t0d0 /cdrom
root@dhruva#



Please suggest me on this?.

Regards,
srinu.
11 REPLIES 11
melvyn burnard
Honored Contributor

Re: Regarding cdrom mounting ...

#mount /dev/dsk/cot0d0 /cdrom
is the above device a typo or did you reall try to mount cot0d0?
What OS version is this, and is this definitely the correct device file?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
srinu_1
Frequent Advisor

Re: Regarding cdrom mounting ...

HI,
OS ver: B11.11i
I am trying to mount correct device.I found this device by using ioscan -funC disk command.

As a root user,I have perm. to kill all the process .But i am not able to kill this processes.
melvyn burnard
Honored Contributor

Re: Regarding cdrom mounting ...

well this thread is in the Linux forum, I will move it to the HP-UX forum.
If the mount is hanging, you cannot kill it because it is blocked on I/O, you would probably need to reboot the box.
It sounds like you may have a problem with the cd drive or media
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
srinu_1
Frequent Advisor

Re: Regarding cdrom mounting ...

Hi,
If I restart cdrom related services, will it works.
what are the services related to cdrom?.

Thanks
srinu
srinu_1
Frequent Advisor

Re: Regarding cdrom mounting ...

Hi ,

It's showing following processes.I am not able to kill this processes.Plz any suggestions from your side.

root@dhruva# ps -ef |grep mount
root 27116 1 0 14:38:22 ? 0:00 /usr/lib/netsvc/fs/autofs/automountd
root 25149 1 0 13:11:32 ? 0:00 mount /dev/dsk/c0t0d0 /cdrom
root 27108 1 0 14:37:48 ? 0:00 /usr/sbin/rpc.mountd
root 24369 1 0 12:24:52 ? 0:00 mount /dev/rdsk/c0t0d0 /cdrom
root 26909 24876 0 14:27:28 ? 0:00 mount /dev/rdsk/c0t0d0 /cdrom
root 27532 26990 0 14:55:25 ? 0:00 mount -F cdfs /dev/dsk/c0t0d0 /cdrom
root 24431 24388 0 12:27:39 ? 0:00 mount /dev/dsk/c0t0d0 /cdrom
root 28010 27976 1 15:15:50 pts/8 0:00 grep mount
root 24590 1 0 12:35:44 ? 0:00 mount /dev/dsk/c0t0d0 /cdrom
root@dhruva#

thanks
srinu.
Atul Gautam
Valued Contributor

Re: Regarding cdrom mounting ...

Srinu....

Kill all the processed identified with --
#fuser -c /mount_point

Confirm no other processes are in use in the file system with --
#lsof +D /mount_point

Issue,
#umount -f /mount_point
command to forcibly unmount the file system.

You can also try
#fuser -k /mount_point
to kill the process using the particular device.



ATUL
Raj D.
Honored Contributor

Re: Regarding cdrom mounting ...

Srinu,

Are you using correct device name:

" #mount /dev/dsk/cot0d0 /cdrom "

looks like typo problem with the device name , try with c0t0d0

cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
srinu_1
Frequent Advisor

Re: Regarding cdrom mounting ...

Hi Atul,

This fuser command is also hanging.dmesg command showing "NFS server is not responding".

Thanks
srinu.
melvyn burnard
Honored Contributor

Re: Regarding cdrom mounting ...

I am afraid it looks like your only solution is to reboot the server
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!