Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Best way to transfer Linux to another drive...  (Read 6817 times)

0 Members and 1 Guest are viewing this topic.

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Best way to transfer Linux to another drive...
« on: March 29, 2009, 11:34:24 PM »
I think I am going to grab an unused older 40GB drive from my school for my server so I can better to remote backups...

I tried using a clone tool, more than one in fact, to get Linux onto a different drive before, however, I never really had any luck at it.

My question is: What is the best way to transfer Linux from one drive to another larger one?

Also, while I am at it: How good are software-based RAID systems (using no hardware RAID interface)?

And, my motherboard has a regular old IDE cable interface... can I connect more than two drives to it if I have a cable that is split into three, and can I use the one mainly intended for the CD-ROM drives for hard drive?


Aegis



    Expert

    Thanked: 67
    • Yes
    • Yes
    • Brian's Mess Of A Web Page
  • Experience: Experienced
  • OS: Windows 10
Re: Best way to transfer Linux to another drive...
« Reply #1 on: March 30, 2009, 12:33:03 AM »
Quote
can I connect more than two drives to it if I have a cable that is split into three

I've never seen three on an IDE cable, before.

Quote
and can I use the one mainly intended for the CD-ROM drives for hard drive?

Yes.


"For you, a thousand times over." - "The Kite Runner"

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Best way to transfer Linux to another drive...
« Reply #2 on: March 30, 2009, 08:28:24 PM »
So, I could potentially put 4 drives in my computer?

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Best way to transfer Linux to another drive...
« Reply #3 on: March 30, 2009, 08:59:30 PM »
Yes, you can put four good IDE drives on one computer. Use good quality cables. Make sue the drives are similar in quality and structure.
There is a utility often used in Linux for partition management. It can also copy portions to free space. If the disks are perfect, it works find. If the disks are flaky..er.. not so good.

Google this:
Gparted hard disk partition manager for Linux

I have it on a Bookable USB drive.  8)

banjo67xxx



    Beginner

    Thanked: 4
    • Certifications: List
    • Computer: Specs
    • Experience: Guru
    • OS: Linux variant
    Re: Best way to transfer Linux to another drive...
    « Reply #4 on: April 10, 2009, 01:57:46 PM »
    AFAIK you can only have a Master and Slave on an IDE bus, so I assume you have 2 IDE buses in which case you can connect 4 drives (i.e. 3 disk drives and 1 DVD drive)

    If you already have Linux booted on the system then you don't need to use GPartEd as you can run fdisk from linux to partition the new drive.

    There are several ways to copy the filesystems from your old drive to the new one. I think that the easiest would be to download Knoppix and use that to boot from DVD, and then use dd to copy the original boot partition to the new boot partition (its never a good idea to use dd to copy the root filesystem whilst you are booted from it, as dd has no way of keeping track of what changes occured whilst the disk is being used, and fsck might not be able to repair the copy)

    You need to ensure the destination partition is the same size or bigger than the source partition, and if you want you can grow the filesystem you can use resize2fs

    The final step is to use install-grub to make the new disk bootable, and if you're doing all this from Knoppix don't forget to mount the filesystem on /mnt and use --root-directy=/mnt

    joking



      Rookie

      Thanked: 1
      Re: Best way to transfer Linux to another drive...
      « Reply #5 on: April 14, 2009, 03:31:22 PM »
      put drive 2 on primary ide secondary.  Make sure to move jumper to secondary position before inserting drive.  Boot into linux.  Login with root.  at the # sign type in the following:

      dd if=/dev/hda of=/dev/hdb

      this will make an exact duplicate of the first drive.  do a shutdown and power off.  Change the drive jumper again to primary and you should boot off it to make sure its working before transfering it to a new case.

      warning it may take some time depending on the size of the drives involved.  also one other thing, the new drive should be as large as if not larger than the older drive.

      Mind you if there is any difference in the motherboard this drive is installed with you will need to make sure kudzu runs if it's 7.2 or newer OS, to unconfigure and configure the new motherboard's devices.

      Zylstra

        Topic Starter
      • Moderator


      • Hacker

      • The Techinator!
      • Thanked: 45
        • Yes
        • Technology News and Information
      • Certifications: List
      • Computer: Specs
      • Experience: Guru
      • OS: Windows 7
      Re: Best way to transfer Linux to another drive...
      « Reply #6 on: April 14, 2009, 05:19:11 PM »
      I use Ultimate Boot CD, anyone familiar with that at all?

      Anyways, I tried using multiple cloning tools in it, and none worked... should I assume it was a configuration problem, or something else?

      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: Best way to transfer Linux to another drive...
      « Reply #7 on: April 15, 2009, 05:24:44 PM »
      The UBCD you have may be older software.
      The free Linux partition manager is here:
      http://gparted.sourceforge.net/
      Gnome Partition Editor is also on bistros like Ubuntu.
      Try it. Is is free.
        ;D

      Aegis



        Expert

        Thanked: 67
        • Yes
        • Yes
        • Brian's Mess Of A Web Page
      • Experience: Experienced
      • OS: Windows 10
      Re: Best way to transfer Linux to another drive...
      « Reply #8 on: April 15, 2009, 06:23:00 PM »
      Pretty good food at the Ubuntu bistro ...  ;)


      "For you, a thousand times over." - "The Kite Runner"

      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: Best way to transfer Linux to another drive...
      « Reply #9 on: April 15, 2009, 06:35:01 PM »
      Quote
      Pretty good food at the Ubuntu bistro ...  Wink
      Yeah, did you see me there? O0

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Best way to transfer Linux to another drive...
      « Reply #10 on: April 15, 2009, 08:56:18 PM »
      they wouldn't let us in the VIP room. something about lacking the beak for it.  ;D
      I was trying to dereference Null Pointers before it was cool.