Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.