LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-07-2006, 12:50 PM   #1
eric_marsh
Member
 
Registered: Jun 2004
Posts: 31

Rep: Reputation: 15
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?
 
Old 12-07-2006, 01:41 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,981

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
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
 
Old 12-07-2006, 02:11 PM   #3
josenj
Member
 
Registered: Oct 2006
Location: New Jersey (US)
Distribution: Arch Linux
Posts: 58

Rep: Reputation: 15
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!
 
Old 12-07-2006, 02:21 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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?
 
Old 12-07-2006, 09:38 PM   #5
eric_marsh
Member
 
Registered: Jun 2004
Posts: 31

Original Poster
Rep: Reputation: 15
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?
 
Old 12-07-2006, 10:08 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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)
 
Old 12-07-2006, 10:32 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smaller drive to larger drive duplication mystery midlifecrisis Solaris / OpenSolaris 6 02-01-2006 07:23 AM
moving to larger HD musicman_ace Linux - General 4 10-17-2005 03:56 PM
How to move to larger drive.... bishoptf Linux - Hardware 2 08-27-2005 04:37 PM
Moving the system to a larger HDD LinuxSeeker Linux - General 4 07-26-2005 02:31 PM
Upgrading to a larger drive madcrutch Linux - Software 3 04-30-2002 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration