Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Initramfs or move /usr to /, oh my...
Date: Wed, 21 Mar 2012 09:10:41
Message-Id: 20120321090848.01789473@digimed.co.uk
In Reply to: Re: [gentoo-user] Initramfs or move /usr to /, oh my... by Joshua Murphy
1 On Tue, 20 Mar 2012 22:02:31 -0400, Joshua Murphy wrote:
2
3 > 1) make backups and... 1.a) verify backups... consider this my
4 > disclaimer... 2) mkdir /mnt/root-bind/ /mnt/usr-bind/
5 > 3) mount --bind / /mnt/root-bind/
6 > 4) mount --bind /usr/ /mnt/usr-bind/
7
8 4a) mount /usr -o remount,ro
9
10 Makes sure nothing changes on /usr between starting the sync and
11 rebooting.
12
13 > 5) rsync --archive --hard-links --sparse --progress /mnt/usr-bind/
14 > /mnt/root-bind/usr/
15 > 6) edit fstab ...
16 > 7) cross fingers and reboot ...
17 > 8) rm -r /mnt/root-bind/ /mnt/usr-bind/
18
19 Create the temporary mounts points in /tmp and you save this step - since
20 I added one, it is only fair to remove one to not increase the workload :)
21
22
23 --
24 Neil Bothwick
25
26 When companies ship Styrofoam, what do they pack it in?

Attachments

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