aptosid.com

Installation - Copying installation to a new drive

finotti - 25.03.2011, 15:02
Post subject: Copying installation to a new drive
Dear all,

I've just received a new SSD to replace my HD, which has an up to date aptosid installation. (In a Thinkpad T510.)

Is it possible to just rsync the root partitions (with an external enclosure for the new SSD)? (homes are in a different one.) I'd certainly have to edit fstab, but would there be anything else?

I could install, but then I'd have to reconfigure everything. It is not too bad, but if the above works, it would be easier.

Thanks,

Luis
bfree - 25.03.2011, 16:07
Post subject: RE: Copying installation to a new drive
Yes you can rsync across the data and then you will probably only have to fix up your fstab and grub config then install grub on the mbr of the new drive so it can boot it.
DeepDayze - 25.03.2011, 16:37
Post subject: RE: Copying installation to a new drive
You can use the latest aptosid live cd for doing the copying over and fixing things up
browe - 25.03.2011, 20:02
Post subject: RE: Copying installation to a new drive
Imagine the trouble you'd have if you tried that with windows! Sounds like a good job for LuckyBackup.
clubex - 25.03.2011, 20:25
Post subject: RE: Copying installation to a new drive
I recently moved a whole installation over to a bigger drive using Clonezilla. Afterwards I only had to resize a partition and attend to grub.

Might be easier to backup and do a fresh install but not so much fun.
DeepDayze - 25.03.2011, 20:31
Post subject: Re: RE: Copying installation to a new drive
      clubex wrote:
I recently moved a whole installation over to a bigger drive using Clonezilla. Afterwards I only had to resize a partition and attend to grub.

Might be easier to backup and do a fresh install but not so much fun.


Maybe the only time I'd do a fresh install is if the install's quite old and has accumulated some cruft, or if something got messed up along the way that could not be resolved
grefabu - 26.03.2011, 07:08
Post subject: RE: Re: RE: Copying installation to a new drive
This week I moved one off my system to a new hardware (thinkpad sl510),

It tooks me ~2h.
Start the new system with a actual aptosid-cd, made the same partitions like the old system, copy the system via usb from old harddisk to new (this took the most time), then I fix the grub.conf and fstab, using the live-cd to write grub to the new drive and start the system on the new laptop.

I wonder every time, how easy it is,...

Gregor
finotti - 28.03.2011, 12:05
Post subject:
Dear all,

Copying the old installation worked great! (Or so it seems so far!)

If anyone wants to attempt this at some point, here is what I've
done. (Disclaimer: It *seems* to have worked for *me*. Be careful
and "your mileage my vary", as usual.)

I had to exclude "/media/*", "/mnt/*", "/lib/init/rw/*", "/sys/*",
"/dev/*", and "/proc/*" in rsync, and also "/home/*", as I have it in
a different partition. Then, rsync'ed /home/ to the proper partition
of the new drive. (I've used "mount" to see what partitions I should
exclude in rsync.)

Edited fstab so the the UUID would correspond to the ones in the new
disk and chroot'ed to the new root partition (I had the new
disk connected to my laptop with an external enclosure) and
reinstalled grub-pc as described in the manual. (Just be careful to
not get it write to your original disk! Make sure to select only the
new drive.)

Made a few minor modification to optimize for SSD (scheduler and
swappiness), rebooted from the (new) SSD connected still to USB, and
all was fine. Installed it and it seems to be working perfectly.

Thanks all for your help!

Luis
DeepDayze - 28.03.2011, 13:19
Post subject:
Good idea to hold onto the old hard drive for a bit just in case you do run into issues. Some missing files which were excluded from the rsync do get regenerated on boot or when you start some application. Maybe something like this should be in the wiki?
All times are GMT - 12 Hours
Powered by PNphpBB2 © 2003-2010 The Zafenio Group
Credits