[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Device busy, but lsof doesn't help



Ron Johnson wrote:
> On 07/18/08 17:17, Eugene V. Lyubimkin wrote:
>> Ron Johnson wrote:
>>> Hi,
>>>
>>> The standard trick, of course, is to run lsof and grep it's output.
>>>  But that didn't help.  Googling found reference to fuser, but that
>>> didn't help either.
>>>
>>> Any other ideas?
>>>
>>> # umount -v /data/03
>>> umount: /data/03: device is busy
>>> umount: /data/03: device is busy
>>>
>>> # lsof | grep sda
>>> #
>>>
>>> # lsof | grep /dev/03
>>> #
>>>
>>> # fuser -mu /dev/sda1
>>> #
>>>
>> What is output of 'mount' command?
> 
> # mount | sort
> /dev/hda1 on /boot type ext3 (rw)
> /dev/hda2 on / type ext3,ext2 (rw,errors=remount-ro)
> /dev/hda3 on /home type ext3 (rw)
> /dev/hda4 on /data/01 type ext3 (rw)
> /dev/sda1 on /data/03 type ext3 (rw)
> /dev/sdb1 on /data/02 type ext3 (rw)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
> (rw,noexec,nosuid,nodev)
> devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
> fusectl on /sys/fs/fuse/connections type fusectl (rw)
> none on /proc/bus/usb type usbfs (rw)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
> udev on /dev type tmpfs (rw,mode=0755)
> 
> But why does that matter?
> 
To ensure that /data/03 is /dev/sda1.

May be, try lazy unmount?

-- 
Eugene V. Lyubimkin aka JackYF, Ukrainian C++ developer.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: