On Sun, 29 Sep 2013 18:31:37 -0500, Daniel Campbell wrote:

> Curious; how is merging two filesystems done? I don't have a separate
> /usr and am completely unaffected by this change, but it's somewhat
> interesting to me. /usr stores some pretty important data on it, and I
> imagine you'd need to mount it somewhere else in order to move the
> files from it to /'s /usr dir. Is a Live environment recommended
> instead? How would you mitigate the leftover partition, assuming it's
> not adjacent to /'s partition?

For /usr you don't need a live CD, because the contents of /usr shouldn't
change unless you instal/remove something. You can make sure they don't
change during the merge by remounting read-only

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.


-- 
Neil Bothwick

Top Oxymorons Number 43: Genuine imitation

Attachment: signature.asc
Description: PGP signature

Reply via email to