Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] unmounting /usr in single user mode
Date: Mon, 19 Jul 2010 20:03:54
Message-Id: 201007192106.13328.wonko@wonkology.org
In Reply to: [gentoo-user] unmounting /usr in single user mode by Allan Gottlieb
1 Allan Gottlieb writes:
2
3 > I am unable to umount /usr in single user mode on an old system.
4 > I believe the system is baselayout-1 and is amd64.
5 > The trouble is open files, at least some of which appear to be related
6 > to bash and locale (see the files below).
7 >
8 > I use grub. On the kernel line can I specify sh instead of bash?
9 > I know sh is linked to bash, but hope that it will not use locale.
10
11 Why not use a live-cd?
12
13 > I need to umount /usr so that I can resize it (I use lvm and have
14 > already extended the logical volume). Specifically i want to execute
15 > umount /usr
16 > resize2fs /dev/vg/usr
17 > mount /usr
18
19 As long as you extend the size, resizing works online, without the need to
20 unmount a partition. That's only necessary when reducing the size. Hooray!
21
22 > (I realize I will probably need an e2fsck).
23
24 True if the partition is unmounted.
25
26 Wonko

Replies

Subject Author
Re: [gentoo-user] unmounting /usr in single user mode Allan Gottlieb <gottlieb@×××.edu>