1863043 Members
1073 Online
110446 Solutions
New Discussion

Re: umount problem

 
Venky_1
Frequent Advisor

umount problem

Hi ,

While umounting FS it is giving the below error message :-
umount:cannot umount : Block device required.

Any suggestions.

Thanks
Winners never quit and quitters never win
15 REPLIES 15
Steve Steel
Honored Contributor

Re: umount problem

Hi


Wrong device being used
see first char of ll

This is block

ll /dev/dsk/c0t6d0
brw-r----- 1 bin sys 31 0x006000 Dec 30 1999 /dev/dsk/c0t6d0

This is character

ll /dev/rdsk/c0t6d0
crw-r----- 1 bin sys 188 0x006000 Jun 21 1999 /dev/rdsk/c0t6d0


Always use /dev/dsk and not rdsk


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Robert-Jan Goossens
Honored Contributor

Re: umount problem

Hi,

could you post a bdf and the command you have used.

try to use the

# umount /dev/vg00/lvol10

and fill in the number for vg and lv yourself.

Robert-Jan.
T G Manikandan
Honored Contributor

Re: umount problem

First check whether the file system is mounted using the mount command.

If it is mounted then just use

#umount

Thanks
Armin Feller
Honored Contributor

Re: umount problem

It seams that the filesystem is not mounted, please check this with:

# mount | grep /

Try to mount the filesystem and re-try to umount it.

Please also check the /etc/mnttab if the filesystem is in. Try this:

# mv /etc/mnttab /etc/mnttab.old
# mount -a

Hope that helps.

Regards ...
Armin
Stanimir
Trusted Contributor

Re: umount problem

Hi!
Actually you've received an error:
[ENOTBLK] - name is not a block special device
Maybe you used a wrong FS-name?
Show results from:
#bdf
and
#cat /etc/mnttab
,please.
Rgrds.
Venky_1
Frequent Advisor

Re: umount problem

Hi,

Everything about mounting the FS was fine.
Mount was done using block device only but
by mistake it got mounted on wrong mount point.

Now it is not allowing me to umount it and in the fstab it has the correct entry. ( I mean mount point ).

Thanks
Winners never quit and quitters never win
Pete Randall
Outstanding Contributor

Re: umount problem

Unfortunately, you may have to reboot to straighten this out. If it won't unmount, there's no force option. You can try using both the mount point "umount /home" and the block device "umount /dev/vg00/lvol5", but if that doesn't do it, there's not much left to try.

Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: umount problem

Venky,

can you umount the lvol instead of the /mountpoint ?

Robert-Jan.
Marco Santerre
Honored Contributor

Re: umount problem

You should still be able to umount it, even if you used a different mount point then the one specified on your /etc/fstab. Have you tried umounting it using the LV instead of the filesystem? I get this feeling that your /etc/mnttab has a problem though, and is not seeing this file system mounted.
Cooperation is doing with a smile what you have to do anyhow.
Armin Feller
Honored Contributor

Re: umount problem

If you try to umount a filesystem and got the message "device busy" you have to check who keeps the device busy and stop/kill this processes.

You can find this processes by following commands:

# fuser (-k) /
# lsof /

'lsof' can be downloaded by following URL:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/

Only if you are not able to stop/kill the processes which keep the filesystem busy you have to reboot.
Venky_1
Frequent Advisor

Re: umount problem

Hi ,

I have already tried all the options suggested above but it doesn't work.

So, I think Pete Randall is right, I have no other option then to reboot the server.

Anyway, thanks for all the comments.
Winners never quit and quitters never win
Armin Feller
Honored Contributor

Re: umount problem

Right, if you are not able to stop/kill the processes on the filesystem you wants to umount you only have the possibility to reboot ;-(
Pete Randall
Outstanding Contributor

Re: umount problem

Armin,

He wasn't getting a "device busy".

Pete

Pete
Venky_1
Frequent Advisor

Re: umount problem

Hi Armin,

Pete is right , FS is not busy but still I had the problem.

Anyway, once I reboot it will be fine.
Lets hope we will have some soln. in future for such problems.
Winners never quit and quitters never win
monasingh_1
Trusted Contributor

Re: umount problem

can you provide your mount -v optput.

I am sure you should not have to reboot for just unmounting a filesystem and that too if it is not busy. And also, if it got mounted on the wrong mount point your application also will not use this and thus no possibility of some open system calls for this mount point.