Moving /root partition

Alan Lord lord_alan at
Tue Oct 18 01:46:09 PDT 2005


I do this procedure quite often.

My Linux machine has a partition JUST for building new LFS versions. 
Once that is finished, I them move everything over to other partitons.

Having a separate /boot partition is useful. My pc is partitoned thus:

hda1 = /boot 	(small < 100Mb EXT)
hda2 = swap
hda3 = /	(~1Gb)
hda5 = /usr	(~6Gb)
hda6 = /opt	(~4Gb)
hda7 = /home	(~4Gb)
hda8 = sources 	(~4Gb)(my source repository, normally mounted under
hda9 = /var	(~1Gb)
hda10 = lfs 	(~3Gb)(This partition is either / or /mnt/lfs depending
what I am doing)

Once my LFS and other stuff (X, Apache, MySQL, PHP...) are complete on 
hda10. I then start to copy (not move) things across to their respective

partitons. You can adjust /etc/fstab and copy just one partition at a 
time. Have both "systems" in grub so you can switch back and forth...

I would recommend keeping /home on a separate partition so you keep all 
your settings and don't have to worry about copying. Just edit fstab to 
mount /home over lfs/home - if you see what I mean.

I use cp -a and have not encountered any problems with moving files.
Obviously you can't/don't want to move /proc /sys or /dev (if it is a
new / partiton make the required entries in /dev before rebooting)

Hope this helps.

LFS ID: 216
sunaram wrote:
>  when you are moving you should be more careful. see
> that your boot loader is updated. like, you have to
> setup ur grub in that root partition again.
>  i personally don't recommend it. 
> --- Jeremy Byron <rjjbyron at> wrote:
>>Tom wrote:
>>>I cant read that page its small ??? 
>>1) Move your mouse pointer into the middle of the
>>focused browser window
>>2) Hold CTRL
>>3) Spin your mouse wheel (or tap + if you haven't
>>Unsubscribe: See the above information page
> __________________________________________________________ 
> Yahoo! India Matrimony: Find your partner online. Go to

More information about the lfs-support mailing list