cloning mixed Linux - Win xp on new SSD for laptop
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
cloning mixed Linux - Win xp on new SSD for laptop
I have a multi-boot system in my MSI Wind netbook that includes Win xp home, Ubuntu, and another Linux distro. The internal HD is 160gb, but most of it isn't used. I just bought a 60gb SSD, and would like to use it as the primary disk in my netbook. I would like to clone the Win xp and Ubuntu volumes to the SSD, which would leave me plenty of space, even if I added another distro later. With gparted, I can see that there is an initial logical volume of about 4gb (dev/sda1) with 775mb used, and by mounting and checking it I can see that it has a boot folder in it. It is formatted as ext3 (no flags). I don't understand the MBR concept very well, so I'm wondering if this is where the MBR is stored. The next volume is my Windows volume and is formatted NTFS with a boot flag. Subsequent volumes are clearly Linux volumes, including swapfile volumes. I have already formatted the SSD as NTFS, but as of yet haven't added any partitions.
My question:
(1) How do I clone the volumes I want onto the SSD? (Presumably with dd or a similar utility).
(2) Does the destination volume have to be initially set to be the same as the source volume?
(3) Do I need that first partition or would a new one automatically be created if I reinstall Ubuntu or any Debian-based distro from scratch or use a utility to fix the MBR?
If you clone, the disk being used needs to be the same as the disk being copied. Windows is not as portable as the unices.
You're better off doing a new install of XP on the disk on a pre-set size partition formatted ntfs.
When I was a kid they used to say GIGO. Garbage in garbage out. That was a LONG time ago and still holds true.
I am not a fan of cloning unless the system is exactly the same hardware and I use only base installs for images. Too many oddities can happen later or with changes. For example the linux distro might have a deal about ssd's somewhere.
Two basic tasks are either to file based copy or bit based copy.
When I do clone I tend to use g4u which is dd and have used to up-size and down-size drives.
File based you might look at any number of apps from live cd's to partimage and clonezilla and OEM software.
Thanks for both of your replies. I ended up using a hybrid approach. I cloned the Windows xp volume, the small bootloader volume and the UNR 9.10 volume with dd, one at a time after first making a partition on the SSD large enough to hold each volume. The Windows and UNR had a lot of work put into them, and I didn't want to lose that. I also wanted grub, not grub2 as the bootloader, so after I verified that the Windows partition worked, I reinstalled CrunchBang 9.04 from scratch. The grub that resulted had all three OSes on the menu, and all worked.
Bootup time saving with Win xp and CrunchBang was spectacular. XP booted up in about 50 seconds on my netbook, a saving of more than a minute. CrunchBang and UNR used to take 55 sec to a minute to boot up to a working desktop (including wireless connection) on the old HD. The SSD cut that in about half for CrunchBang, and took off about 10 sec for UNR. I wonder if Jefro's point explains the bigger saving in CB, since it was installed from scratch and UNR wasn't. It won't matter - as soon as UNR 10.04 is released, I'll be replacing 9.10.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.