LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-16-2004, 07:31 PM   #1
dogsbody
LQ Newbie
 
Registered: Apr 2004
Location: UK
Distribution: Was Redhat, then Slackware, now CentOS
Posts: 9

Rep: Reputation: 0
Unhappy Simple question: Growing an ext2 partition


Hi,

I wonder if you can help me, I feel I am so close but so far

I had a 20Gb drive in my machine with Slackware 9.1 which I wanted to replace with a new 120Gb drive. This bit went fine, I installed the 120Gb drive, booted into knoppix, did a "dd if=/dev/hda of=/dev/hdb" and removed the old 20Gb drive.

This works great, boots straight up and no data lost but obviously I have the old partition sizes...

Code:
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          63      506016   82  Linux swap
/dev/hda2   *          64        1184     9004432+  83  Linux
/dev/hda3            1185        2491    10498477+  83  Linux
So now I just want to grow /home (hda3) into all that lovely fresh space :-)

I must be googling for the wrong things, could anybody please tell me how to do the last bit??

Thank you very much in advance.

Dan
 
Old 08-16-2004, 07:52 PM   #2
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 454

Rep: Reputation: 30
First the disclaimer. Except resizing my NTFS partition to install Linux i have never done this. Usually if I add HD space to a system I mount the new drive to replace an existing partiion or partitions.

OK, now that we have that over with the first answer that comes to mind is parted. http://www.gnu.org/software/parted/

There are also a few other projects out there (goggled for "resize ext2 partition", already knew about parted.) but parted seems to be the mainstay for this kind of thing outside of commercial software.

Last edited by Mephisto; 08-16-2004 at 07:55 PM.
 
Old 08-16-2004, 09:05 PM   #3
dogsbody
LQ Newbie
 
Registered: Apr 2004
Location: UK
Distribution: Was Redhat, then Slackware, now CentOS
Posts: 9

Original Poster
Rep: Reputation: 0
Yeah, I saw a lot of talk on "parted" but i can't get it to compile!! I have no idea why.

I think I'm getting somewhere with using fdisk to create a bigger partition and then installing "ext2resize" to do the resize.

So far so good.

Thank you for the help.

Regards, Dan
 
Old 08-16-2004, 09:25 PM   #4
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 454

Rep: Reputation: 30
If you don't mind using precompiled packages parted is available on linuxpackages.net. But ext2resize should do the job as well.

EDIT: If you have the official CD set it is also in the extras directory on CD3 it seems.

Last edited by Mephisto; 08-16-2004 at 09:27 PM.
 
Old 08-16-2004, 10:41 PM   #5
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 307

Rep: Reputation: 30
You can also get an official package here .
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple partition table question... breezewax Linux - General 5 10-21-2004 06:34 AM
How To Format A Partition Into Ext2 ? Help lemon_hou Linux - Hardware 1 04-27-2004 04:30 AM
ext2 partition screwed? LGBR Linux - General 4 08-03-2003 08:27 PM
how to resize a ext2 partition? Thievery Linux - Newbie 3 03-21-2002 05:19 AM
Resizing an Ext2 partition PuterFreaK Linux - General 8 03-15-2002 12:21 AM


All times are GMT -5. The time now is 06:49 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration