On Mon, 30 Sep 2013 12:01:27 +0200, Hinnerk van Bruinehsen wrote:

> > mount /usr -o remount,ro
> > mkdir /newusr
> > rsync -a /usr/ /new/usr/
> > Comment out /usr line in /etc/fstab
> > mv /usr /oldusr
> > mv /newusr /usr
> > reboot
> > rmdir /oldusr
> >
> > What you do with the old partition is up to you. In this case the
> > discussion was about /usr on LVM, so you just delete it and allocate
> > the space elsewhere when needed.

> You can even leave out the step of creating a new directory and moving
> it later if you bind-mount you rootfs somewhere, e.g. /mnt/gentoo.

Good point.

> You may want to add some parameters to the call to rsync, though (e.g.
> those that preserve permissions, xattrs (especially for SELinux or
> XT-PaX) and owner/group (should be -pogX),

-a covers most if not all of those.

> possibly -x aswell (if you
> have other filesystems under /usr (e.g. a discrete FS for the portage
> tree).

Another good point, one of those things you think of immediately after
hitting Send :(


-- 
Neil Bothwick

Middle-age - because your age starts to show at your middle.

Attachment: signature.asc
Description: PGP signature

Reply via email to