List Info

Thread: unmounting ext3/ext2




unmounting ext3/ext2
country flaguser name
France
2007-06-19 03:45:14
Hi,

when mounting an (clean) ext3 filesystem as ext2fs,
extracting stuff in 
it, the device keeps busy afterwards, and I can't unmount
it.  Even 
after a full logout & login.

node2# mount
/dev/wd0a on / type ffs (soft dependencies, local)
/dev/wd0e on /xendoms type ffs (soft dependencies, local)
kernfs on /kern type kernfs (local)
/dev/vnd3a on /mnt/lala type ext2fs (local)
node2# vnconfig -l
vnd0: not in use
vnd1: not in use
vnd2: not in use
vnd3: /xendoms (/dev/wd0e) inode 138245
node2# umount /mnt/lala
umount: /mnt/lala: Device busy
node2#

should I rather report this to another mailing-list (which
one, 
tech-misc?) or submit a bug report?

Thanks
Pierre-Philipp

Re: unmounting ext3/ext2
country flaguser name
France
2007-06-19 04:20:52
On Tue, Jun 19, 2007 at 10:45:14AM +0200, pierre-philipp
braun wrote:
> Hi,
> 
> when mounting an (clean) ext3 filesystem as ext2fs,
extracting stuff in 
> it, the device keeps busy afterwards, and I can't
unmount it.  Even 
> after a full logout & login.
> 
> node2# mount
> /dev/wd0a on / type ffs (soft dependencies, local)
> /dev/wd0e on /xendoms type ffs (soft dependencies,
local)
> kernfs on /kern type kernfs (local)
> /dev/vnd3a on /mnt/lala type ext2fs (local)
> node2# vnconfig -l
> vnd0: not in use
> vnd1: not in use
> vnd2: not in use
> vnd3: /xendoms (/dev/wd0e) inode 138245
> node2# umount /mnt/lala
> umount: /mnt/lala: Device busy
> node2#
> 
> should I rather report this to another mailing-list
(which one, 
> tech-misc?) or submit a bug report?

Does fstat report something about /mnt/lala ?

-- 
Manuel Bouyer <bouyerantioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la
difference
--

Re: unmounting ext3/ext2
country flaguser name
France
2007-06-19 05:30:55
Manuel Bouyer wrote:
> Does fstat report something about /mnt/lala ?

nope.  it reports about it during the extraction, and
nothing 
afterwards, accordingly.  and no process is keeping the fs
busy.

This also happens when simply stressing the filesystem, e.g.
find 
/mnt/lala | grep something.  otherwise (if not stressed
enought), it 
unmounts cleanly.

I tryed again, this time safer (ext2 only),

node2# mkdir /mnt/lili
node2# pwd
/xendoms
node2# mkdir lili
node2# cd lili
node2# dd if=/dev/zero of=lili.ext2 bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 33.354 secs (31437788
bytes/sec)
node2# vnconfig -l
vnd0: /xendoms (/dev/wd0e) inode 138245
vnd1: not in use
vnd2: not in use
vnd3: not in use
node2# mkfs.ext2 ./lili.ext2
mke2fs 1.39 (29-May-2006)
./lili.ext2 is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
128000 inodes, 256000 blocks
12800 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=264241152
8 block groups
32768 blocks per group, 32768 fragments per group
16000 inodes per group
Superblock backups stored on blocks:
         32768, 98304, 163840, 229376

Writing inode tables: done
Writing superblocks and filesystem accounting information:
done

This filesystem will be automatically checked every 22
mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to
override.
node2# vnconfig vnd3 ./lili.ext2
node2# mount_ext2fs /dev/vnd3a /mnt/lili
node2# tar xjpf /xendoms/gentoo/stage3-i686-2007.0.tar.bz2
-C /mnt/lili
node2# fstat | grep '/mnt/lili'
node2# umount /mnt/lili
umount: /mnt/lili: Device busy


Thanks
Pierre-Philipp

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )