Computer Hope

Software => BSD, Linux, and Unix => Topic started by: Zylstra on March 29, 2009, 11:34:24 PM

Title: Best way to transfer Linux to another drive...
Post by: Zylstra 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?

Title: Re: Best way to transfer Linux to another drive...
Post by: Aegis 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.
Title: Re: Best way to transfer Linux to another drive...
Post by: Zylstra on March 30, 2009, 08:28:24 PM
So, I could potentially put 4 drives in my computer?
Title: Re: Best way to transfer Linux to another drive...
Post by: Geek-9pm 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)
Title: Re: Best way to transfer Linux to another drive...
Post by: banjo67xxx 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
Title: Re: Best way to transfer Linux to another drive...
Post by: joking 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.
Title: Re: Best way to transfer Linux to another drive...
Post by: Zylstra 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?
Title: Re: Best way to transfer Linux to another drive...
Post by: Geek-9pm 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
Title: Re: Best way to transfer Linux to another drive...
Post by: Aegis on April 15, 2009, 06:23:00 PM
Pretty good food at the Ubuntu bistro ...  ;)
Title: Re: Best way to transfer Linux to another drive...
Post by: Geek-9pm on April 15, 2009, 06:35:01 PM
Quote
Pretty good food at the Ubuntu bistro ...  Wink
Yeah, did you see me there? O0
Title: Re: Best way to transfer Linux to another drive...
Post by: BC_Programmer 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