LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-22-2011, 08:10 AM   #1
ignarus
LQ Newbie
 
Registered: Nov 2004
Posts: 17

Rep: Reputation: 0
how to copy hd to smaller ssd


I ordered a new laptop which has a conventional hd with the pre-intalled os on it. I would like to make an image of all the software that is installed on this conventional hd and move it to an ssd which I will use to replace the hd. Problem is that the conventional hd is 320GB and the ssd is only 240GB. All solutions I've found require the target partition to be at least as large as the source.

Is there any way of doing this using linux?
 
Old 05-22-2011, 08:15 AM   #2
SalmonEater
Member
 
Registered: Jun 2010
Location: Up the Big River w/o paddle
Distribution: Salent & Slackel
Posts: 131

Rep: Reputation: 19
Why use just linux, when you are most likely speaking of and using Win7? Just shrink the C:\ the required amount using built-in utility and then use clonezilla to create image to be transferred (after first making a Win7 restore disk, of course).

What brand laptop, BTW?

Last edited by SalmonEater; 05-22-2011 at 08:17 AM.
 
Old 05-22-2011, 08:23 AM   #3
ignarus
LQ Newbie
 
Registered: Nov 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the reply.

That's a possibility, but I would rather not alter the original partition before I know the copy is successful. Also I would like to use a linux live cd to do the job and I'm not sure if there are any with clonezilla included.

Laptop is a lenovo t520.
 
Old 05-22-2011, 08:31 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You can use SystemRescueCd and its FSArchiver utility
 
1 members found this post helpful.
Old 05-22-2011, 08:34 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
It is not possible to copy a large disk onto a small disk directly. You have either to shrink the source partitions, or you do a file-based copy and repair the bootloader after that.
If you want a live-CD with Clonezilla I would recommend to use the one delivered by Clonezilla.
 
Old 05-22-2011, 10:33 AM   #6
SalmonEater
Member
 
Registered: Jun 2010
Location: Up the Big River w/o paddle
Distribution: Salent & Slackel
Posts: 131

Rep: Reputation: 19
Thanks, bathory -- I did not know about FSArchiver
Quote:
it's a flexible system tool that allows you to save the contents of a file-system to a compressed archive file. The file-system can be restored on a partition which has a different size and it can be restored on a different file-system.
 
Old 05-22-2011, 12:05 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Seems to me most of the data would tar over. You'd have to copy mbr by dd.
 
Old 05-22-2011, 12:19 PM   #8
ignarus
LQ Newbie
 
Registered: Nov 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Ok thanks a lot guys for the suggestions. I think I'll first try to tar and copy the mbr afterwards. If that doesn't work, I'll try shrinking the partition and make an image.
 
Old 05-22-2011, 12:29 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If the laptop has Win7 or Vista, you could use Windows own partition editor MCC to resize the largest partition. On a new laptop, you will be able to reduce the filesystem by up to 50%. Reducing it from 300 to 240 should present no problems. Afterwards, you could use dd to copy the image to the new drive.

Using an SSD in windows, you need to disable the page file. Windows uses the page file heavily, and that will quickly reduce the life of the drive.

Also disable read filestamp updates. Some updates to the registry (such as auditing) may be unnecessary.

An image copy of a hard drive copied to an SSD drive may cause some inefficiencies due to the geometry of the drives. To write to an SSD device, an entire section is read, then updated in normal memory, and the entire section is written back. If there is a geometry mismatch, this could result in the need read/modify/write two sections when writing to certain sectors. You may want to perform a Google search for SSD geometry for details.

Last edited by jschiwal; 05-22-2011 at 12:41 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSD InvRa Linux - Hardware 1 04-05-2011 10:23 AM
SSD hydraMax Linux - Hardware 4 01-09-2011 12:09 PM
Copy boot partition to smaller partition Quakeboy02 Linux - Kernel 3 01-11-2007 01:44 AM
Free disk space in '/' getting smaller and smaller. simjii SUSE / openSUSE 5 12-16-2005 11:24 AM
smaller compiled kernel, will it copy? kola Fedora 3 12-04-2004 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:01 PM.

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