dslreports logo
 
    All Forums Hot Topics Gallery
spc
Search similar:


uniqs
1152

dellsweig
Extreme Aerobatics
MVM
join:2003-12-10
Campbell Hall, NY

dellsweig

MVM

Help cloning SSD on an Ubuntu 12 laptop

I 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??

orion940
Attractive like a magnet
Premium Member
join:2001-12-23
Windsor, CT

1 recommendation

orion940

Premium Member

It would be just as easy, if not easier, to install Ubuntu fresh. The clone will be funky with the free space etc.

O.

shdesigns
Powered By Infinite Improbabilty Drive
Premium Member
join:2000-12-01
Stone Mountain, GA

1 recommendation

shdesigns to dellsweig

Premium Member

to dellsweig
I have done things similar to this:

»www.linuxjournal.com/con ··· or-drive

boog
Premium Member
join:2000-07-24
Trenton, OH

1 recommendation

boog to dellsweig

Premium Member

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.

Black Box
join:2002-12-21

Black Box to shdesigns

Member

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

dellsweig
Extreme Aerobatics
MVM
join:2003-12-10
Campbell Hall, NY

1 recommendation

dellsweig to boog

MVM

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
mich64
join:2008-08-30

mich64 to dellsweig

Member

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
 

dellsweig
Extreme Aerobatics
MVM
join:2003-12-10
Campbell Hall, NY

dellsweig

MVM

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
join:2008-08-30

mich64

Member

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.

dellsweig
Extreme Aerobatics
MVM
join:2003-12-10
Campbell Hall, NY

1 recommendation

dellsweig

MVM

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.

shdesigns
Powered By Infinite Improbabilty Drive
Premium Member
join:2000-12-01
Stone Mountain, GA
(Software) pfSense
ARRIS SB6121

shdesigns

Premium Member

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.

billaustin
they call me Mr. Bill
MVM
join:2001-10-13
North Las Vegas, NV

billaustin to mich64

MVM

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.

rexbinary
MOD King
Premium Member
join:2005-01-26
Plano, TX
·Frontier FiberOp..

rexbinary to dellsweig

Premium Member

to dellsweig
Clones are bad