Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resizing ext3 partitions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Twiggy794
Guru
Guru


Joined: 21 Jun 2004
Posts: 321
Location: Hershey, PA

PostPosted: Thu Aug 04, 2005 12:21 pm    Post subject: Resizing ext3 partitions Reply with quote

I know this has been posted a number of times, but I can't seem to find a solid answer and don't want to risk ruining my installation.

I'm trying to resize the ext3 partition with my / on it. I've scoured the forums and found this solution:
Code:
# tune2fs -O ^has_journal /dev/hda2
# e2fsck -f /dev/hda2
# resize2fs /dev/hda2 40G
# tune2fs -O has_journal /dev/hda2


This is for downsizing from a 60gb partition to the 40gb that I want on my ext3. Now, df -h gives me this:
Code:
/dev/hda2              40G   20G   19G  52% /


But when I look in fdisk it still reads it as a single, 60gb partition. I noticed that a number of the guides in this forum all said to use fdisk after you resize the partition, but afaik, wouldn't using fdisk format the partition? Is it even possible using only Linux tools to resize this?

TIA
_________________
"Subtraction: Addition's tricky pal." --David Letterman
http://ferg.ath.cx == teh bL0g
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Aug 04, 2005 2:15 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Duplicate Threads.
See here: https://forums.gentoo.org/viewtopic-t-361417-highlight-resizing+ext3+partitions.html

And no, fdisk doesn't format the partition, it just updates the partition table.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum