Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
finottiOffline
Post subject: Copying installation to a new drive  PostPosted: 25.03.2011, 15:02



Joined: 2010-09-12
Posts: 316

Status: Offline
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
 
 View user's profile Send private message  
Reply with quote Back to top
bfreeOffline
Post subject: RE: Copying installation to a new drive  PostPosted: 25.03.2011, 16:07
Team Member


Joined: 2010-08-26
Posts: 255

Status: Offline
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.
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject: RE: Copying installation to a new drive  PostPosted: 25.03.2011, 16:37



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
You can use the latest aptosid live cd for doing the copying over and fixing things up
 
 View user's profile Send private message  
Reply with quote Back to top
broweOffline
Post subject: RE: Copying installation to a new drive  PostPosted: 25.03.2011, 20:02



Joined: 2010-09-12
Posts: 152
Location: Canada
Status: Offline
Imagine the trouble you'd have if you tried that with windows! Sounds like a good job for LuckyBackup.
 
 View user's profile Send private message  
Reply with quote Back to top
clubexOffline
Post subject: RE: Copying installation to a new drive  PostPosted: 25.03.2011, 20:25



Joined: 2010-09-11
Posts: 98

Status: Offline
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.
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject: Re: RE: Copying installation to a new drive  PostPosted: 25.03.2011, 20:31



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
      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
 
 View user's profile Send private message  
Reply with quote Back to top
grefabuOffline
Post subject: RE: Re: RE: Copying installation to a new drive  PostPosted: 26.03.2011, 07:08



Joined: 2010-09-15
Posts: 9

Status: Offline
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
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject:   PostPosted: 28.03.2011, 12:05



Joined: 2010-09-12
Posts: 316

Status: Offline
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
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject:   PostPosted: 28.03.2011, 13:19



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
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?
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio