Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ext3 problem.. i did a little boo boo.. Need some help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Mandr4ke
Apprentice
Apprentice


Joined: 25 Jul 2002
Posts: 214
Location: Chicago, IL

PostPosted: Fri Dec 06, 2002 9:13 am    Post subject: ext3 problem.. i did a little boo boo.. Need some help Reply with quote

Hi, i'm using ext3, for my root.. it was originally 4 gig's... after getting a new hd hooked up and working i moved some stuff over and earased a partition and added the free space over to my root ext3 parition.. so it went from 4 gig's with 600 megs free... to 14 gig's bit it's still only showing 4 gig and 600 megs free when i boot up to it.. it looks like it doesn't automatically update the journal or something.. doh! anyhow is there a way i can fix the journal to see all 14 gigs now instead of the original 4 gig's.. without loosing all my root parition's files????? please help..

I've tried tunefs2 -j but all i get is a message saying i already have a journal.. i'm wary of trying mke2fs -j on it becasue i think i'll lose everything... ieeee

Thanks
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Fri Dec 06, 2002 9:20 am    Post subject: Reply with quote

Trying to resize an ext2/ext3 filesystem? Use resize2fs. Altering the partition table is the first step, I believe.

The journal is merely a log of events that will occur, or is occuring. After the event has occurred, it's log entry is erased.

man resize2fs:
Code:

The resize2fs program will resize ext2 file systems.  It can be used to enlarge or shrink an ext2 file system located on device so that it will
       have size blocks.  If the size parameter is not specified, it will default to the size of the partition.   The  size  parameter  may  never  be
       larger than the size of the partition.

       The resize2fs program does not manipulate the size of partitions.  If you wish to enlarge a filesystem, you must first make sure you can expand
       the size of the underlying partition first.  This can be done using fdisk(8) by deleting the partition and recreating it with  a  larger  size.
       When  recreating  the  partition, make sure you create it with the same starting disk cylinder as before!  Otherwise, the resize operation will
       certainly not work, and you may lose your entire filesystem.

Back to top
View user's profile Send private message
Mandr4ke
Apprentice
Apprentice


Joined: 25 Jul 2002
Posts: 214
Location: Chicago, IL

PostPosted: Fri Dec 06, 2002 9:27 am    Post subject: Reply with quote

zhenlin wrote:
Trying to resize an ext2/ext3 filesystem? Use resize2fs. Altering the partition table is the first step, I believe.

The journal is merely a log of events that will occur, or is occuring. After the event has occurred, it's log entry is erased.

man resize2fs:


cool thanks man.. just what i was looking for.. dam i'm tired.. eheh
Back to top
View user's profile Send private message
Mandr4ke
Apprentice
Apprentice


Joined: 25 Jul 2002
Posts: 214
Location: Chicago, IL

PostPosted: Fri Dec 06, 2002 9:41 am    Post subject: Reply with quote

zhenlin wrote:
Trying to resize an ext2/ext3 filesystem? Use resize2fs. Altering the partition table is the first step, I believe.

The journal is merely a log of events that will occur, or is occuring. After the event has occurred, it's log entry is erased.



Hmmm i seem to have a small problem.. resize2fs does seem to work when the drive is mounted of course.. but when i boot up off of the 1.2 gentoo cd, (what i'm using at the moment) i don't seem to have access to resize2fs.. any ideas? it's my root partition... so it's a little hard to unmount it..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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