1 |
On Sunday 01 May 2011 14:08:36 Alex Schuster wrote: |
2 |
> Mick writes: |
3 |
> > On Sunday 01 May 2011 00:48:38 Alex Schuster wrote: |
4 |
> > > The lazy unmount was Thomas' hint already and worked, the partition is |
5 |
> > > no longer mounted. But I cannot fsck it, it is still in use. cryptsetup |
6 |
> > > luksClose works neither. |
7 |
> > > It's no big trouble, but still I'm curious why this is. |
8 |
> > |
9 |
> > Asking the obvious: could this message be there because this partition |
10 |
> > is still mounted? |
11 |
> |
12 |
> I grepped /proc/mounts for it and saw no references. I'm pretty sure I did |
13 |
> not overlook something. And it's already the second time I tried this, one |
14 |
> month ago the same had happened, but I did not care about it then. |
15 |
> |
16 |
> > Did you check that this partition has been unmounted |
17 |
> > from all mount points, both original mount point and bind-mount? |
18 |
> |
19 |
> The partition only has one mount point, but others were mounted inside it: |
20 |
> |
21 |
> /dev/mapper/32 on /32 type ext3 (rw,noatime) |
22 |
> /dev on /32/dev type none (rw,bind) |
23 |
> /proc on /32/proc type none (rw,bind) |
24 |
> /home on /32/home type none (rw,bind,noatime) |
25 |
> /var/portage on /32/var/portage type none (rw,bind,noatime) |
26 |
> |
27 |
> /var/portage has another file system inside for the portage tree. When I |
28 |
> want to unmount /32/var/portage, I have to unmount /32/var/portage/tree |
29 |
> first. All except /32/dev could be unmounted, for /32/dev I needed the -l |
30 |
> option to mount. Then /32 itself could be unmounted. But things like fsck |
31 |
> or 'cryptsetup remove' failed, /dev/mapper/32 was in use. |
32 |
> |
33 |
> Then I rebooted, but I had forgotten to save my changes to fstab, so all |
34 |
> those things were again mounted. I tried again anyway, and this time there |
35 |
> was no problem. I had to use umount -l for /32/dev again, and this time |
36 |
> also for /32/proc (that was not necessary the last time), but after |
37 |
> unmounting /32, I could fsck its partition and shrink it. |
38 |
> |
39 |
> I have no idea why it did not work the last times I tried. I'll try to |
40 |
> reproduce this from time to time, maybe after some more uptime and work on |
41 |
> this partition it will happen again. |
42 |
|
43 |
Yes, you've done the right thing, unmounting directories from the lower to the |
44 |
higher, before you try to unmount the top of the tree. I would think that |
45 |
/dev and /proc would be accessed by the OS in real time, every time you |
46 |
read/write to a device/memory/acpi, etc. so trying to umount them could be |
47 |
more troublesome. Perhaps immediately after rebooting there was not much |
48 |
activity from previous actions and that's why you were able to unmount them |
49 |
without too much trouble. |
50 |
|
51 |
-- |
52 |
Regards, |
53 |
Mick |