public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to unmount bind-mounted /dev?
@ 2011-04-29 23:42 Alex Schuster
  2011-04-30  6:10 ` Thomas Ulrich Nockmann
  0 siblings, 1 reply; 9+ messages in thread
From: Alex Schuster @ 2011-04-29 23:42 UTC (permalink / raw
  To: gentoo-user

Hi there!

I want to shrink [*] a partition that holds a 32-bit Gentoo chroot. But
I cannot unmount it, the device is busy because proc and /dev is
bind-mounted there. And I cannot unmount this /dev, again, the device is
busy:

weird ~ # umount /32/dev
umount: /32/dev: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

lsof /32/dev gives a lot of stuff, the same that lsof /dev gives. lsof
/proc also has some lines, but I had no problem unmounting /32/proc.

I could remove the /32/dev entry from fstab and reboot, but I need the
machine up at the moment, and I'm also curious why this is a problem.
Maybe you know?

[*] BTW, I just wrote a script so automatize this. It shrinks the file
system, then reduces the logical volume. It also reduces the size of a
LUKS crypto volume on the LVM.
Enlarging also works, but that already is easy using lvresize,
cryptsetup resize and resize2fs. Shrinking is more tricky though, you
have to calculate the sizes, and things could break if the underlying
partition is made too small.

	Wonko



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-05-01 14:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-29 23:42 [gentoo-user] How to unmount bind-mounted /dev? Alex Schuster
2011-04-30  6:10 ` Thomas Ulrich Nockmann
2011-04-30  9:57   ` Alex Schuster
2011-04-30 10:15     ` Alex Schuster
2011-04-30 23:22       ` Mark Shields
2011-04-30 23:48         ` Alex Schuster
2011-05-01  7:54           ` Mick
2011-05-01 13:08             ` Alex Schuster
2011-05-01 14:42               ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox