Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Moving OS from one HD to another

  1. #1
    Join Date
    Aug 2009
    Beans
    36

    Moving OS from one HD to another

    Here's the idea ...

    I want to move a 250GB IDE hard drive from a PC and repalce it with a smaller 40GB IDE HD. Currently the 250 GB drive is dual loaded with WinXP and Ubuntu desktop.

    This PC is a kiosk style touch screen that I use as a home stereo and some other entertainment and household tasks. I have some hardware (touch screen, USB headset, wireless LAN card, sound card) that are proving to be problematic under Ubuntu. Currently this box is very usable under windows and I would like to just continue using the current build but with the new smaller HD.

    I want to move that 250GB drive (along with several others) to a cluster and make a shared network space for file storage, music streaming, etc. but that's a project for another day.

    The windows forums say don't do it or buy something or try Linux. Can this be done? Is it more trouble than it's worth?

    Ziz

  2. #2
    Join Date
    Jun 2007
    Location
    Hikkaduwa, Sri Lanka
    Beans
    3,449
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Moving OS from one HD to another

    You should be able to clone the Windows partition using dd:

    http://www.linuxquestions.org/questi...ommand-362506/

  3. #3
    Join Date
    Mar 2010
    Location
    ρθΦ=000
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Moving OS from one HD to another

    I'd give Clonezilla a try. Resize your partitions so they fit on the smaller drive, then clone each partition over to your new drive after you set up the partition table.

  4. #4
    Join Date
    Aug 2009
    Beans
    36

    Re: Moving OS from one HD to another

    Thanks!

    Clonezilla-live bootable CD created.

    a simple test:
    I have duplicated my laptop drive on to a spare of the same size. A complete bootable replica of the drive. Pretty cool.

    Now, Things are going to get a bit more difficult. Moving an OS from a bigger drive to a smaller drive will also require me to re-size the partitions, something I've never done.

    If I understand I want to shrink the windows partition on the larger drive to the same size as the smaller drive. I'm trying to keep it fairly simple, so I'll just use the entire smaller drive when I'm done.

    Off to find tools to resize a partition.

  5. #5
    Join Date
    Oct 2007
    Beans
    62

    Re: Moving OS from one HD to another

    Quote Originally Posted by C.S.Cameron View Post
    You should be able to clone the Windows partition using dd:

    http://www.linuxquestions.org/questi...ommand-362506/
    Thank you for pointing this out, very useful guide! although not exactly beginner friendly, but sure is useful!

  6. #6
    Join Date
    Jun 2007
    Location
    Hikkaduwa, Sri Lanka
    Beans
    3,449
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Moving OS from one HD to another

    Quote Originally Posted by ZizzerZuz View Post
    Thanks!

    Clonezilla-live bootable CD created.

    Off to find tools to resize a partition.
    Try Partition Editor, (gparted), from the Live CD.

  7. #7
    Join Date
    Mar 2010
    Location
    ρθΦ=000
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Moving OS from one HD to another

    Quote Originally Posted by ZizzerZuz View Post
    Off to find tools to resize a partition.
    Before you resize the partitions, I strongly suggest making an image of the entire disk and saving it somewhere in case something goes wrong.

    You should be able to resize the Windows partition with qtparted or gparted (see this link, the bottom of the page).

    You can also use non-free proprietary software (only including it here because it's what I use at work for Windows machines and it works great)

    As for your Ubuntu partition, simply boot off a Ubuntu LiveCD and use GParted.

    I'd condense all partitions so you have just under your target size, and one massive (250-40=210GB) unallocated partition, then you should be able to clone each partition over to the new drive one at a time (I'd say do them all at once if the drives were the same size, but unfortunately since they are not, you don't have a lot of options)

  8. #8
    Join Date
    Aug 2009
    Beans
    36

    Re: Moving OS from one HD to another

    Quote Originally Posted by dbzkid View Post
    Thank you for pointing this out, very useful guide! although not exactly beginner friendly, but sure is useful!
    Booting with the Clonezilla-live CD worked well for the laptop back up.

    To help safe guard my experiment I need to back up the 250GB drive to another identical drive before I go resizing partitions. I will try this with dd and reply with a comparison on the process.

    Once the 250gb drive is backed up I'll get back to resizing the partition to fit on the smaller drive.

  9. #9
    Join Date
    Aug 2009
    Beans
    36

    Re: Moving OS from one HD to another

    Quote Originally Posted by dbzkid View Post
    Thank you for pointing this out, very useful guide! although not exactly beginner friendly, but sure is useful!
    Wow ... I'm a bit lost trying to figure this out. I'm thinking that I'll go back and try with Clonezilla.

    I read the article top to bottom and I'm still not sure how to copy a 250GB drive to another 250GB drive.

    Clonezilla is moving the data now.

  10. #10
    Join Date
    Jun 2007
    Location
    Hikkaduwa, Sri Lanka
    Beans
    3,449
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Moving OS from one HD to another

    Code:
    Sudo dd if=/dev/sda of=/dev/sdb
    Where sda is the drive you wish to clone and sdb is the target drive.

    The process might take a while with 250GB drives.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •