LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-23-2006, 02:33 AM   #1
miner49er
Member
 
Registered: Feb 2006
Location: Bristol, UK
Distribution: Debian
Posts: 76

Rep: Reputation: 15
how to move root parition to a larger partition


Hi there!

I've installed Gentoo onto a 4Gig partition, and although ti does everything I want it to do (almost) I want to duplicate the entire thing for testing purposes AND also make more space by duplicating it into a larger partition (7Gig).

However, I tried this by making an image using partimage (excellent program otherwise) and I have the duplicated partition running fine except the extra space is not used (the 7Gig partition now appears as a 4Gig!!!)

Is there something I am doing wrong here? Well, there obviously is but what?

any help would be great!

miner49er
 
Old 04-23-2006, 03:27 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The only drawback to PartImage that keep me from using it is that it requires the two partitions (source and target) to be the same size. If the target is larger than the source, PartImage will truncate the target partition to the same size as the source partition.

You could try cfdisk to edit the target partition after transfer to try to increase the size of that partition.

Otherwise, you could reformat the target, increase the size, then use tar to make an archive of the source partition, then pipe it through tar to unpack it in the target partition.

Sorry, but I don't remember the correct syntax. I beleive you can find is somewhere in the LQ forums.
 
Old 04-23-2006, 03:38 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by bigrigdriver
The only drawback to PartImage that keep me from using it is that it requires the two partitions (source and target) to be the same size. If the target is larger than the source, PartImage will truncate the target partition to the same size as the source partition.
Not true - the partition is unaffected.
The filesystem is however copied as-is. Most filsystems have a resize command that by default expands the (target) filesystem to the size of the partition. Works fine on expand - shrinking can be a totally different matter.

I agree tar or cp is a better option ...

For gentoo, for space relief it is usually sufficient to move the directories most heavily used ny portage to other partition(s).
 
  


Reply



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
How to move to larger drive.... bishoptf Linux - Hardware 2 08-27-2005 04:37 PM
Making the Fedora Partition larger RedRaven Fedora 11 04-29-2005 07:34 AM
when install additional distros, can they all share same parition? (other then root) sirpelidor Linux - Newbie 2 05-02-2004 01:51 PM
Move space from one ext3 parition to another Tyir Linux - General 3 12-17-2003 10:23 PM
copy root partition to a larger one? idiosynthetic Linux - General 2 12-14-2003 05:53 PM

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

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

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