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?
- --
Ron Johnson, Jr.
Jefferson LA USA
"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-18-2008, 10:39 PM
"Eugene V. Lyubimkin"
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.
07-18-2008, 10:57 PM
Ron Johnson
Device busy, but lsof doesn't help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/18/08 17:39, Eugene V. Lyubimkin wrote:
[snip]
>>
> To ensure that /data/03 is /dev/sda1.
Ah, ok.
> May be, try lazy unmount?
I want to know what's happening. Lazy umount is, to me, distateful
except when using network services like nfs.
- --
Ron Johnson, Jr.
Jefferson LA USA
"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-19-2008, 01:49 PM
Bob Cox
Device busy, but lsof doesn't help
On Fri, Jul 18, 2008 at 17:38:21 -0500, Ron Johnson (ron.l.johnson@cox.net) wrote:
> # mount | sort
> /dev/hda1 on /boot type ext3 (rw)
> /dev/hda2 on / type ext3,ext2 (rw,errors=remount-ro)
Is this ok? ^^^^^^^^^
Just a thought. It looks a bit odd to me (in my very limited
experience).
--
Bob Cox. Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-19-2008, 04:10 PM
Ron Johnson
Device busy, but lsof doesn't help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/19/08 08:49, Bob Cox wrote:
> On Fri, Jul 18, 2008 at 17:38:21 -0500, Ron Johnson (ron.l.johnson@cox.net) wrote:
>
>> # mount | sort
>> /dev/hda1 on /boot type ext3 (rw)
>> /dev/hda2 on / type ext3,ext2 (rw,errors=remount-ro)
>
> Is this ok? ^^^^^^^^^
>
> Just a thought. It looks a bit odd to me (in my very limited
> experience).
Yep. It makes a searchlist. First try wit ext3, then try ext2,
them fail.
- --
Ron Johnson, Jr.
Jefferson LA USA
"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-19-2008, 04:21 PM
Bob Cox
Device busy, but lsof doesn't help
On Sat, Jul 19, 2008 at 11:10:52 -0500, Ron Johnson (ron.l.johnson@cox.net) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 07/19/08 08:49, Bob Cox wrote:
> > On Fri, Jul 18, 2008 at 17:38:21 -0500, Ron Johnson (ron.l.johnson@cox.net) wrote:
> >
> >> # mount | sort
> >> /dev/hda1 on /boot type ext3 (rw)
> >> /dev/hda2 on / type ext3,ext2 (rw,errors=remount-ro)
> >
> > Is this ok? ^^^^^^^^^
> >
> > Just a thought. It looks a bit odd to me (in my very limited
> > experience).
>
> Yep. It makes a searchlist. First try wit ext3, then try ext2,
> them fail.
Many thanks. I like to learn at least something new every day.
--
Bob Cox. Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
07-19-2008, 07:30 PM
Andrew Sackville-West
Device busy, but lsof doesn't help
On Fri, Jul 18, 2008 at 05:57:42PM -0500, Ron Johnson wrote:
> On 07/18/08 17:39, Eugene V. Lyubimkin wrote:
> [snip]
> >>
> > To ensure that /data/03 is /dev/sda1.
>
> Ah, ok.
>
> > May be, try lazy unmount?
>
> I want to know what's happening. Lazy umount is, to me, distateful
> except when using network services like nfs.
maybe cd out od /data/03? maybe you have a session somewhere with a
PWD of /data/03/*?
A
07-19-2008, 09:29 PM
Ron Johnson
Device busy, but lsof doesn't help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/19/08 14:30, Andrew Sackville-West wrote:
> On Fri, Jul 18, 2008 at 05:57:42PM -0500, Ron Johnson wrote:
>> On 07/18/08 17:39, Eugene V. Lyubimkin wrote:
>> [snip]
>>> To ensure that /data/03 is /dev/sda1.
>> Ah, ok.
>>
>>> May be, try lazy unmount?
>> I want to know what's happening. Lazy umount is, to me, distateful
>> except when using network services like nfs.
>
> maybe cd out od /data/03? maybe you have a session somewhere with a
> PWD of /data/03/*?
lsof would have shown that...
SESSION 1:
me@haggis:~$ cd /data/03
me@haggis:/data/03$
SESSION 2:
$ lsof | grep /data/03
lsof: WARNING: can't stat() ext3 file system /dev/.static/dev
Output information may be incomplete.
bash 4892 me cwd DIR 8,1 4096
2 /data/03
- --
Ron Johnson, Jr.
Jefferson LA USA
"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)