Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] separate / and /usr to require initramfs 2013-11-01
Date: Mon, 30 Sep 2013 10:22:40
Message-Id: 20130930112214.32cb6f63@digimed.co.uk
In Reply to: Re: [gentoo-user] separate / and /usr to require initramfs 2013-11-01 by Hinnerk van Bruinehsen
1 On Mon, 30 Sep 2013 12:01:27 +0200, Hinnerk van Bruinehsen wrote:
2
3 > > mount /usr -o remount,ro
4 > > mkdir /newusr
5 > > rsync -a /usr/ /new/usr/
6 > > Comment out /usr line in /etc/fstab
7 > > mv /usr /oldusr
8 > > mv /newusr /usr
9 > > reboot
10 > > rmdir /oldusr
11 > >
12 > > What you do with the old partition is up to you. In this case the
13 > > discussion was about /usr on LVM, so you just delete it and allocate
14 > > the space elsewhere when needed.
15
16 > You can even leave out the step of creating a new directory and moving
17 > it later if you bind-mount you rootfs somewhere, e.g. /mnt/gentoo.
18
19 Good point.
20
21 > You may want to add some parameters to the call to rsync, though (e.g.
22 > those that preserve permissions, xattrs (especially for SELinux or
23 > XT-PaX) and owner/group (should be -pogX),
24
25 -a covers most if not all of those.
26
27 > possibly -x aswell (if you
28 > have other filesystems under /usr (e.g. a discrete FS for the portage
29 > tree).
30
31 Another good point, one of those things you think of immediately after
32 hitting Send :(
33
34
35 --
36 Neil Bothwick
37
38 Middle-age - because your age starts to show at your middle.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-user] Re: separate / and /usr to require initramfs 2013-11-01 Jonathan Callen <jcallen@g.o>