dellsweigExtreme Aerobatics MVM join:2003-12-10 Campbell Hall, NY |
Help cloning SSD on an Ubuntu 12 laptopI have a dell laptop running Ubuntu 12.1. Works great - the wife loves it and has asked me to "upgrade" some of her freinds Slooooow windows boxes. NICE...
Anyway I want to put an SSD in it. I bought a 128Gb Samsung - great price on amazon.
My system as a 256g drive in it and the SSD is 128G so using dd is not going to work.
The disk comes with a windows utility for doing to clone - even on diffferent size disks but its windows only so thats out. I added an SSD to my Macbook and used CC cloner with success.
Any suggestions on a tool I can use on Ubuntu?? |
|
orion940Attractive like a magnet Premium Member join:2001-12-23 Windsor, CT
1 recommendation |
orion940
Premium Member
2012-Nov-7 5:59 pm
It would be just as easy, if not easier, to install Ubuntu fresh. The clone will be funky with the free space etc.
O. |
|
shdesignsPowered By Infinite Improbabilty Drive Premium Member join:2000-12-01 Stone Mountain, GA
1 recommendation |
to dellsweig
|
|
|
boog Premium Member join:2000-07-24 Trenton, OH
1 recommendation |
to dellsweig
I second the fresh install, then you can reinstall any missing apps, and copy all of your /home/user files over to the new ssd. |
|
|
to shdesigns
Instead of cp -afv wouldn't be better sh code: tar -cpsC /absolute/path/to/source/ `ls -A /absolute/path/to/source/` | tar -xpsvC /absolute/path/to/destination/
This should handle better the hardlinks. Or maybe better: sh code: rsync -aHv /path/to/source/ /path/to/destination
|
|
dellsweigExtreme Aerobatics MVM join:2003-12-10 Campbell Hall, NY
1 recommendation |
to boog
said by boog:I second the fresh install, then you can reinstall any missing apps, and copy all of your /home/user files over to the new ssd. Thanks everyone for your advice!! I am going to listen to the pros and do a clean install. As mentioned, I can simply re-install apps and copy over any user files. Thanks again |
|
|
to dellsweig
Just cp -a . I've used it many times for similar purpose (also over NFS) and it always worked. It handles hardlinks properly as well: m@sauron:~ $ mkdir foo
m@sauron:~ $ echo foo >foo/foo
m@sauron:~ $ ln foo/foo foo/bar
m@sauron:~ $ cat foo/*
foo
foo
m@sauron:~ $ cp -a foo bar
m@sauron:~ $ cat bar/*
foo
foo
m@sauron:~ $ echo bar >bar/bar
m@sauron:~ $ cat bar/*
bar
bar
|
|
dellsweigExtreme Aerobatics MVM join:2003-12-10 Campbell Hall, NY |
said by mich64:Just cp -a . I've used it many times for similar purpose (also over NFS) and it always worked.
It handles hardlinks properly as well:
m@sauron:~ $ mkdir foo
m@sauron:~ $ echo foo >foo/foo
m@sauron:~ $ ln foo/foo foo/bar
m@sauron:~ $ cat foo/*
foo
foo
m@sauron:~ $ cp -a foo bar
m@sauron:~ $ cat bar/*
foo
foo
m@sauron:~ $ echo bar >bar/bar
m@sauron:~ $ cat bar/*
bar
bar
Please note - the OP was regarding disk cloning - not copying user data |
|
|
mich64
Member
2012-Nov-8 8:30 am
said by dellsweig:Please note - the OP was regarding disk cloning - not copying user data You can't clone a 256G drive onto a 128G one. But you can recursively copy all files while preserving their attributes, and this is exactly what cp -a is for. |
|
dellsweigExtreme Aerobatics MVM join:2003-12-10 Campbell Hall, NY
1 recommendation |
said by mich64:said by dellsweig:Please note - the OP was regarding disk cloning - not copying user data You can't clone a 256G drive onto a 128G one. But you can recursively copy all files while preserving their attributes, and this is exactly what cp -a is for. That does not help with making the drive bootable. |
|
shdesignsPowered By Infinite Improbabilty Drive Premium Member join:2000-12-01 Stone Mountain, GA (Software) pfSense ARRIS SB6121
|
said by dellsweig:That does not help with making the drive bootable.
That what the link I posted does. 1. Copy drive partitions preserving permissions and links. 2. Install grub. As I have a PC that has been running linux since '96, I have done it many times over the years. Went from IDE to SCSI to SATA drives. |
|
billaustinthey call me Mr. Bill MVM join:2001-10-13 North Las Vegas, NV |
to mich64
said by mich64:said by dellsweig:Please note - the OP was regarding disk cloning - not copying user data You can't clone a 256G drive onto a 128G one. But you can recursively copy all files while preserving their attributes, and this is exactly what cp -a is for. You can clone larger drives to smaller drives using Acronis True Image, provided the source data image is small enough to fit the destination. I've done it many times, most recently while replacing my laptop hard drive with a SSD. |
|
rexbinaryMOD King Premium Member join:2005-01-26 Plano, TX ·Frontier FiberOp..
|
to dellsweig
|
|