Re: umount question : can i force umount ???



noi ance wrote:
On Mon, 27 Aug 2007 14:58:21 -0400, sysadmin typed this message:


Hi here is my question :


root@mailserver# umount -f /mnt/forage umount2: Device or resource busy
umount: /mnt/forage: device is busy


how can i umount such a filesystem . It is shared through nfs with a lot
of other directories, but i can't stop my nfs server .


Thanks
Franck


umout /mnt/forage -L for lazy unmount

something is using a file on the mounted device keeping it from unmounting, like maybe you're in a folder on the device when trying to umount. 1
Noi Ance,


Should not this be:

umount -l /mnt/forage


Does not the give problems when you try to mount the filesystem before the umount process has ended? In the background the umount still starts some cleaning tasks that will run as soon as the device becomes available.


Best regards,


Jan Gerrit Kootstra
.



Relevant Pages

  • Re: the umount() saga for regular linux desktop users
    ... I love linux and all the wonderfull ... > The following comments and suggestions about umount() stem from ... when attempting to umounta filesystem I receive ... > behaviour of the linux kernel. ...
    (Linux-Kernel)
  • Re: ext3 corruption
    ... Someone else may run samba on a single ... It seems that unmounting the filesystem fails with a "device busy" error. ... So stop samba before attempting to umount. ... The halt script tries "umount" three times, ...
    (Linux-Kernel)
  • [Full-disclosure] [ GLSA 200509-15 ] util-linux: umount command validation error
    ... A command validation error in umount can lead to an escalation of ... When a regular user mounts a filesystem, ... Security is a primary focus of Gentoo Linux and ensuring the ...
    (Full-Disclosure)
  • Re: Help tracking down problem --- endless loop in __find_get_block_slow (now with the patch)
    ... > using the blocksize handed down from the filesystem via sb_bread. ... > struct as the holder which, given that the filesystem to be mounted is ... > create a new superblock and the mount attempt will use that one. ... > umount will continue, destroying the old superblock and setting the ...
    (Linux-Kernel)
  • Re: Help tracking down problem --- endless loop in __find_get_block_slow
    ... > using the blocksize handed down from the filesystem via sb_bread. ... > struct as the holder which, given that the filesystem to be mounted is ... > create a new superblock and the mount attempt will use that one. ... > umount will continue, destroying the old superblock and setting the ...
    (Linux-Kernel)