[clug] Moving the contents of / to a new filesystem on, Ubuntu?

Scott Ferguson prettyfly.productions at gmail.com
Mon Jul 26 19:15:00 MDT 2010


 On Tue, 27 Jul 2010 00:10:59 +1000 Michael Still <mikal at stillhq.com>
wrote:
> To: "'linux at lists.samba.org'" <linux at lists.samba.org>
> Subject: [clug] Moving the contents of / to a new filesystem on
> 	Ubuntu?
> Message-ID: <4C4D9773.3040406 at stillhq.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi.
>
> I don't spend a lot of time doing really low level disk admin these 
> days, so I apologize for the noob question.
>
> I have a root file system at home on a disk which is failing. I also 
> have a RAID file system on this machine on disks which aren't failing [1].
>
> Is there a nice tool in Ubuntu which will support moving the contents of 
> / to this file system without a reinstall? I could do it manually, but 
> its fiddly to do while remote from the machine, which I will be for the 
> next 10 days.
>
> Thanks,
> Mikal
>
> 1: Pairs of software RAID mirrored disks, concatenated with LVM if that 
> matters.
>
>
> ------------------------------

To move the existing root try "find / -xdev | cpio -pvmd /where_ever"
(in single user mode).
NOTE: if you are going to move /boot to the LVM you will (probably) need
to increase the ram disk size for your boot loader. lvmcreate_initrd
will tell you the required size.
 



More information about the linux mailing list