LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2009, 03:21 AM   #1
galapogos
Member
 
Registered: May 2008
Posts: 227

Rep: Reputation: 30
changing partition size.


hi,
i have several partitions on a hard drive, let's call it sdb. I want to copy them all to a larger drive, let's call it sdc. I want to expand sdb1/sdc1 to fill up the remaining space while keeping sdb2-8 exactly the same. sdb1 is the boot partition with Linux installed on an ext2 filesystem.

I've managed to recreate the partitions on sdc as per my requirements, and I've dd'ed sdb2-8 to sdc2-8. I've also dd'ed the MBR from sdb to sdc, then modified the MBR partition table values to keep it consistent with the actual partitions, and fdisk recognizes the updated sdc paritions correctly. However, when I dd sdb1 to sdc1, this also seems to change the partition size of sdc1 to that of sdc1 when I mount sdc1 and check it with df.

How do I change the partition size of sdc1 while having the contents of sdb1?
 
Old 06-17-2009, 04:49 AM   #2
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 142

Rep: Reputation: 32
I would recommend clonezilla and gparted. Clonezilla is a tool which will clone a partition either onto the same disk or a different. Gparted is a really easy graphical tool to use which will let you resize a partition. The process does take a while depending on how fast your computer is but it is by far the easiest and safest way to do it
 
Old 06-17-2009, 04:51 AM   #3
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
Does clonezilla support the automatic resizing of partitions if the source and destination partitions are different in size?

I've tried using gparted, but I wasn't able to get the accuracy I need. I need to be able to resize down to sector sizes, but gparted only lets me resize in terms of MB.
 
Old 06-17-2009, 06:50 AM   #4
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 142

Rep: Reputation: 32
you could use parted from the command line or create the partition from scratch with fdisk. clonezilla only copies one partition over to another. so you will have to make sure the destination partition is big enough first
 
Old 06-17-2009, 08:21 AM   #5
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
Thanks. Yup the destination partition will be big enough. In fact it is about 4x as big as the source. I've already created those partitions with fdisk from scratch. I just want to make sure that clonezilla will be smart enough to clone it such at the destination partition is expanded to its entire capacity, coz dd wasn't that smart.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing the /home size of partition adamf4i Linux - Newbie 14 08-07-2006 04:06 AM
Changing partition size agentchange SUSE / openSUSE 4 06-06-2006 05:44 AM
changing the size of an existing swap partition toolmania1 Linux - Newbie 5 06-16-2005 07:20 PM
Changing size of Partition in Linux? wardialer Linux - Newbie 4 04-22-2005 05:51 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:02 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