LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2016, 11:14 PM   #1
RvBVakama
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Rep: Reputation: Disabled
Need to clone HDD to SSD


Hi, I just bought a ssd and would like to use it to replace my hdd. I deleted 1.5tb the other day so its down to 403gb ish and the ssd is 490gb. Now due to insufficient cables inside my PC I can't wire up all 3 disks at a time so I am wondering what software is best to clone my hdd disk contents onto the ssd from a live linux usb.
Thanks for any replies
 
Old 10-22-2016, 12:47 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
build in DD can do the job if you know what you are doing, beware that Ssd is not operating the same way Hdd does and that you will need to re-install grub after cloning OS.
 
Old 10-22-2016, 03:22 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I have done numerous clone transfers from spinning SATA hard drive to SATA SSD, and I have never had to reinstall grub as a result. I detail how to use dd for this situation here:

http://www.linuxforums.org/forum/new...ost983273.html
 
Old 10-22-2016, 04:08 PM   #4
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
>>>"Now due to insufficient cables inside my PC I can't wire up all 3 disks at a time"

Could you please explain this. Even a cheap motherboard will have more than 3 SATA controllers. If you need more SATA cables buy them, they are $4-5 in stores, less than $2 online.

>>>>"I deleted 1.5tb the other day so its down to 403gb ish and the ssd is 490gb"

You didn't have to do this either. You could just copy the directories you needed from the larger HDD to the smaller SSD such as with rsync and leave the rest where they are. These days it is common to have a small SSD with OS and applications and a spinning drive for larger media files.

Last edited by tofino_surfer; 10-22-2016 at 04:31 PM.
 
Old 10-22-2016, 11:03 PM   #5
RvBVakama
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tofino_surfer View Post
>>>"Now due to insufficient cables inside my PC I can't wire up all 3 disks at a time"

Could you please explain this. Even a cheap motherboard will have more than 3 SATA controllers. If you need more SATA cables buy them, they are $4-5 in stores, less than $2 online.

>>>>"I deleted 1.5tb the other day so its down to 403gb ish and the ssd is 490gb"

You didn't have to do this either. You could just copy the directories you needed from the larger HDD to the smaller SSD such as with rsync and leave the rest where they are. These days it is common to have a small SSD with OS and applications and a spinning drive for larger media files.
I currently have a boot ssd and a hdd. I bought a ssd 490gb and deleted 1.5 tb of useless files: such as movies and video and pictures and steam installed games (800gb) to shrink it down to be able to be cloned over. the cables in my system only allow for 2 hdd/sdd to be plugged in at a time so that is fine with me, besides i dont want to touch anything in my pc if it is not necessary due to all the cables being tied down with cable ties which allow for good air flow. Also I don't trust my 2tb seagate anymore due to it disappearing now and then. plus hard disk sentinal says it has 60% health left also it makes lots of unhealthy sounds, so i'd rather just use 2 sdds.
 
Old 10-23-2016, 07:09 AM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I don't know about the OP's specific situation, but I personally have numerous computers with only 2 SATA headers, and a few which are limited by extremely limited power supply connectors.

But in any case, what's the big deal? It's straightforward enough to solve the stated problem, and the ability to attach a third hard drive doesn't really have anything to do with it. The OP is likely unaware that you can do a traditional GNU/Linux install on a USB drive just like a hard drive install (it's typically slower because USB thumbdrives tend to have very slow read/write compared to hard drives, but it's fully functional).

I didn't bother with going off onto a tangent about that, since the tools required will be available in any live USB anyway. Just gparted and plain old dd will do.

Copying directories will get you halfway there, assuming a simple single booting install. But the other half is making the SSD boot. If you know what you're doing, it's not that hard to do. But it's not so simple for someone who's not familiar with how the boot process works and how to repair it. And the instructions for making it work vary with bootloader, distribution, etc.
 
Old 10-23-2016, 07:37 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Hmmm ...
dd is insensitive to file system errors. If you are setting up a new system you really want to know about file system errors. The worst option IMHO.

Your foot, your gun.
 
Old 10-23-2016, 08:40 AM   #8
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
My experience is that dd will indeed fail in a perfectly sensible way on file write errors. I have had to deal with partially bad destination drives - one spinning hard drive with bad regions in the middle, and a USB thumbdrive which was bad around 5GB in. dd would fail at the same spot every time, and I had to use gparted to shrink my source partition(s) to fit within the good regions to get everything to work properly.

So, not only did dd fail (as it should) on bad sectors, it failed in a way that provided useful feedback to let me work around the problem.
 
Old 10-23-2016, 08:47 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I think syg00 meant errors on source drive filesystem.
 
Old 10-23-2016, 08:58 AM   #10
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
If there are any file system errors in the source, gparted would have caught them because it does a file system check before shrinking it.

The OP specified removing files to make it fit in 490GB, but did NOT mention anything about shrinking the actual partition. That's why I specified using gparted if necessary to shrink the source partition(s). The common tools for shrinking the partition would first do a file system check.

And even if there were no file system check...then so what? The cloned file system would be in the same state, and the next file system check will find and deal with errors just the same as it would have done for the source file system.
 
Old 10-24-2016, 12:10 AM   #11
RvBVakama
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the replies everyone but dd seems a it unsafe to me, I'm just gonna use Macirum PE.
Now how to close a thread?
 
Old 10-24-2016, 12:26 AM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Come on, millions of sysadmins use dd daily and ruin their systems permanently ... err, I wanted to say they fix their systems permanently.
 
Old 10-24-2016, 01:47 AM   #13
RvBVakama
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Come on, millions of sysadmins use dd daily and ruin their systems permanently ... err, I wanted to say they fix their systems permanently.
ahhh no, I am PC DESTROYING prone so I want something an idiot can use
 
Old 10-24-2016, 08:32 AM   #14
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Or, you could read the linked tutorial discussion thread on JustLinux and see how reliable the described dd method is. I've personally used it dozens if not hundreds of times, with spectacular success. The only failures have been due to the destination drive having bad sectors, and that's easy enough to work around.

Seriously. It's the best most reliable method of cloning any OS (even multi-boot!) if you're not an expert at what you're doing. In particular, it will clone the bootloader as well as all UUIDs, file systems, file system types, file system options EXACTLY. You don't need to be an expert in how the bootloader you're using works, or configuration of the boot process. The dd method will simply clone everything precisely.

I use the dd method for all operating systems, including weird Windows XPE kiosk systems. The Windows based cloning software doesn't always work with these. But the dd method always works.

I don't really understand why some people just want to be unhelpful. People come to LinuxQuestions and other Linux forums for help. So, what's wrong with just providing some help and explaining a solution to their problem? I notice that I'm the ONLY person who actually answered the question with a solution. And it's a solution I have personally used and proven reliable with first hand experience over many years.

What's wrong with you people?
 
2 members found this post helpful.
Old 10-24-2016, 09:39 AM   #15
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Yes I have used dd for many years and cannot recall a case it went wrong. But you definitely need to pay attention to what you are doing. Sorry if my joke was inappropriate. It was just funny someone not using the knife because it is sharp.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Linux in Toshiba u940 series with 32gb ssd and 750gb hdd I would like to have boot code in ssd only cvkchary Linux - Laptop and Netbook 4 08-31-2016 04:26 PM
[SOLVED] Shrink the hard drive to accommodate a SSD clone. ArtKautz Linux - Hardware 11 04-02-2016 01:18 PM
New Clone SSD Drive Will Not Boot doctorcisco Linux - Software 1 05-07-2012 11:58 PM
Clone to Sandforce SSD anhume Linux - Hardware 7 01-11-2011 06:35 PM
[SOLVED] Using both SSD/HDD for partitioning or is it better to just get external HDD? Switch7 Linux - Hardware 16 10-26-2009 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration