Migrate ubuntu to another partition

Sasha Tsykin stsykin at gmail.com
Sat Mar 4 08:30:04 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Duncan Anderson wrote:
> On Saturday, 4 March 2006 00:47, Filip Ruymen wrote:
>> Hi all,
>>
>> I want to migrate my installation from one partition to another.
>> currently it is on hdb1 and I want to move it to hdb3.
>>
>> How can this be done without reinstalling everyting?
>>
>> any help or tips on how to do it?
> 
> Yes. You can do this fairly easily. I assume you have created a file system 
> on /dev/hdb3. Mount the empty /dev/hdb3 partition. Make an exact copy of the 
> existing root file system on /dev/hdb3, then edit /etc/fstab 
> and /etc/lilo.conf on the new partition so that every reference to hdb1 is 
> changed to hdb3. 
> 
> Once you have done this, open a root console window and then
> 
> chroot /<hdb3's mountpoint> /bin/sh
> su -
> lilo
> exit 
> exit
> reboot
> 
> Well, that is the general idea. Some of the Ubuntu boffins can point out the 
> finer points. I am not familiar enough with Ubuntu to explain it step by 
> step.
> 
> 
> cheers
> Duncan
> 
> 		
> ___________________________________________________________ 
> To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
> 
> 
Obviously you would ahve to do it differently if you were using grub
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFECVAL9+Hk2mIApygRAowKAKCeXrgxGNvNLZpE/vMI0IauKPlOjQCgiJKV
RwOpKz7a6wXKw2VZQTVuRJY=
=q2Ws
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list