LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
Search this Thread
Old 01-13-2004, 03:06 PM   #1
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
success: resizing ext3 partition


I just succeeded in doubling the size of my ext3 / partition. I am
writing this both to share my joy and to ask whether there is anything
else that needs to be done. (I had tried "parted" on one or two rescue
CDs, but it didn't work for me.)

Before the operation, my disk looked like this:

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1566 12578863+ 7 HPFS/NTFS
/dev/hda2 1567 1697 1052257+ 82 Linux swap
/dev/hda3 1698 2348 5229157+ 83 Linux

As you can see, most of it was unused. After booting the Slackware CD,
I performed a series a 3 steps:

(1) I used fdisk to enlarge my / partition.
This is what my disk looked like afterward:

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1566 12578863+ 7 HPFS/NTFS
/dev/hda2 1567 1697 1052257+ 82 Linux swap
/dev/hda3 1698 3005 10506510 83 Linux

(2) I ran "e2fsck -f /dev/hda3" (I tried to go to step 3 without
it, but got a message saying that it needed to be done).

(3) I ran "resize2fs /dev/hda3"

That was it!
 
Old 01-17-2004, 07:12 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Good Job!! That is exactly how the man pages said it should be done.
Quote:
(2) I ran "e2fsck -f /dev/hda3" (I tried to go to step 3 without
it, but got a message saying that it needed to be done).
I did some research and could not find anything specific, I guess it's just an
fdisk thing.....LOL......
 
Old 01-17-2004, 12:03 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Original Poster
Rep: Reputation: 165Reputation: 165
Hey! I thought this post was lost in the dungeons. Yeah, it's all in the man pages, except that I wasn't sure it would work on ext3 -- but, it did,
 
Old 01-18-2004, 05:44 AM   #4
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
resize and move an fs on-the-fly?

Hmmmm..........glad I found this post

<edit>Moved the rest of the reply here since I'm asking a related but slightly different question and it would be more appropriate in a separate thread. </edit>

Last edited by thegeekster; 01-18-2004 at 06:34 AM.
 
  


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
Resizing an ext3 LVM Partition PenguinPwrdBox Linux - Software 1 09-04-2005 03:34 AM
Resizing/reformatting ext3 partition mark.johnson Linux - Hardware 3 04-25-2005 02:48 PM
Resizing Ext3 partition to replace XP Sigmund Linux - General 7 01-26-2005 11:48 AM
Resizing a running Ext3 partition Dee-ehn Linux - Software 11 01-24-2005 06:38 PM
Resizing a partition (ext3) herc Linux - Hardware 1 12-26-2003 05:17 PM


All times are GMT -5. The time now is 09:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration