public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Merging separate /usr back into / - one last time...
@ 2013-12-02 14:02 Tanstaafl
  2013-12-02 16:26 ` gottlieb
  2013-12-02 18:47 ` Thanasis
  0 siblings, 2 replies; 32+ messages in thread
From: Tanstaafl @ 2013-12-02 14:02 UTC (permalink / raw
  To: gentoo-user

Hi all,

This was discussed within a couple of threads in the last few months, 
but I wanted to ask for final clarification before I go ahead with this 
(yeah, I know, 'paranoia will destroy ya')...

I'm not afraid of an initramfs any more, but I've decided that I still 
just really don't want one, so I'm looking for the safest & simplest way 
to merge my separate /usr back into /.

The only thing I'm really unsure of is the optimal method and exact 
syntax (ie, trailing slashes? arguments?) for the actual copy of /usr.

Is rsync -a enough for my relatively simple system setup, or would using 
any or all of the other options suggested in those threads be 
safer/better? Specifically:

-a, or -axAHX, or -apogXx, or -PvasHAX

or should I go with a combined -apogsvxAHPX ?

So, here's the plan, please check me...

1. Boot off of the latest gentoo LiveDVD

2. Mount / and create new /usr directory

mount /dev/sda3 /mnt/gentoo/
mkdir /mnt/gentoo/usr

3. Mount old /usr to be moved/merged

vgscan
vgchange -a y
mount /dev/vg/usr /mnt/gentoo/oldusr

4. Copy /oldusr to /usr

rsync -a? /mnt/gentoo/oldusr/ /mnt/gentoo/usr/

Are the trailing slashes required/important/necessary?

Which arguments should I use?

5. Edit /etc/fstab and comment/remove the /usr line

nano -wc /mnt/gentoo/etc/fstab

#/dev/vg/usr       /usr        reiserfs        noatime         0 0

6. Unmount mounted filesystems

umount /mnt/gentoo/oldusr
umount /mnt/gentoo

7. Reboot into new system

Done?

I'm pretty sure that:

1. There is no need to chroot into the real system during this process,

and

2. I only need to mount / and the old /usr, no need to mount anything
    else (/proc, /sys, /var, /home, activating swap, etc)

Correct?

Thanks


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

end of thread, other threads:[~2013-12-09  9:10 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02 14:02 [gentoo-user] Merging separate /usr back into / - one last time Tanstaafl
2013-12-02 16:26 ` gottlieb
2013-12-02 16:42   ` Tanstaafl
2013-12-02 23:08     ` gottlieb
2013-12-02 18:47 ` Thanasis
2013-12-02 18:58   ` Tanstaafl
2013-12-02 19:41     ` Thanasis
2013-12-02 20:40       ` Tanstaafl
2013-12-02 21:36         ` Mick
2013-12-02 22:24           ` William Kenworthy
2013-12-03  1:02             ` Neil Bothwick
2013-12-03 11:47               ` Tanstaafl
2013-12-03 17:06                 ` Bruce Hill
2013-12-03 17:22                   ` Bruce Hill
2013-12-03  4:34             ` Jc García
2013-12-03  5:08               ` William Kenworthy
2013-12-03  6:06               ` Canek Peláez Valdés
2013-12-03 22:40                 ` Canek Peláez Valdés
2013-12-03 23:22                   ` Jc García
2013-12-04  0:05                     ` Canek Peláez Valdés
2013-12-03 13:19             ` Tanstaafl
2013-12-04 12:28               ` Tanstaafl
2013-12-04 13:07                 ` Peter Humphrey
2013-12-06 11:07                   ` Tanstaafl
2013-12-06 11:24                     ` godzil
2013-12-06 13:13                     ` Bruce Hill
2013-12-06 16:35                       ` Tanstaafl
2013-12-06 16:46                         ` Bruce Hill
2013-12-08 19:41               ` SOLVED - " Tanstaafl
2013-12-09  9:10                 ` Peter Humphrey
2013-12-02 19:25   ` Poison BL.
2013-12-02 19:35     ` Tanstaafl

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