LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Moving to a larger drive (https://www.linuxquestions.org/questions/linux-general-1/moving-to-a-larger-drive-508266/)

eric_marsh 12-07-2006 12:50 PM

Moving to a larger drive
 
I want to move my system drive to a larger drive and change partition sizes when I do so. Is there some special utilities I can use or should I just partition the drive and use something like dd to copy each partion as I go?

kilgoretrout 12-07-2006 01:41 PM

I wouldn't use dd to transfer to a larger partition. It will transfer the data but linux will continue to see the new partition as the same size as the old partition. The extra space will not be accessible from within linux. See my post here on how to use tar and a live cd to make the transfer to a new hard drive. It's a well known tar trick:

http://www.linuxquestions.org/questi...partition+size

josenj 12-07-2006 02:11 PM

Check out:
http://pittman.ws/articles/howto/partimage.html

You can get away with putting both drives in a master/slave config instead of doing it over the network.

Good Luck!

pixellany 12-07-2006 02:21 PM

I would partition the new drive, re-install the operating system(s) and copy the data in the normal fashion. First, of course, backup any critical data.

Of academic interest only:
I don't understand why you cannot clone to a new drive and then create more partitions. You would have to of course clone ALL of the drive, so you would have the partition tables. When fdisk gives you the parameters for a drive, it does not get the drive total size from any partition table. What then stops you from later adding more partitions?

eric_marsh 12-07-2006 09:38 PM

Quote:

Originally Posted by pixellany
I would partition the new drive, re-install the operating system(s) and copy the data in the normal fashion. First, of course, backup any critical data.

I'm kinda hoping to be not have to reinstall the OS. Guess I can't just copy it from one partition to the next?

pixellany 12-07-2006 10:08 PM

You cannot copy the whole OS by just copying files. You also have to copy the partition information.
The cloning option has been discussed here, but you may want to search more at LQ. (This has come up before)

homey 12-07-2006 10:32 PM

Quote:

I'm kinda hoping to be not have to reinstall the OS. Guess I can't just copy it from one partition to the next?
Sure you can. What does the output of fdisk -l look like on your system?


All times are GMT -5. The time now is 01:05 AM.