Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
resize mounted ext3 partition
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
simucal
n00b
n00b


Joined: 21 Jun 2004
Posts: 65

PostPosted: Thu Jun 24, 2004 8:03 am    Post subject: resize mounted ext3 partition Reply with quote

How exactly do I go about resizing an ext3 partition (undestructively).

Do I have to use ext2resize? or ext2online? or parted?

What commands will I issue with whatever utility i end up using? Any help would be great.

(the partition I will be resizing is my /dev/hda3 partition and its mount point is '/')
_________________
Tranquility can best be reached through indifference to pleasure and pain.
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Thu Jun 24, 2004 11:11 am    Post subject: Reply with quote

I think it's not wise to resize a mounted ext3 filesystem. Boot from the livecd and use ext2resize.
I've never done it, so I can't tell you the exact command. I use resierfs and the reiserfs tools come with resize_reiserfs which is pretty easy to use :D
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Sun Apr 03, 2005 11:39 am    Post subject: Reply with quote

i am currently haveing the same problem..
i like to resize a mounted ext3 partition. this is a webserver, and i cant boot off from the CD ROM. the server is located in a serverfarm ;(

well, maybe something else will achive what i want:
we have a FTP server (proftpd), and i would like to limit the upload dispace. is this possible? i heard about softquota, but AFAIK this does only work if one uses proftpd with SQL, is this correct?

is there any other way to disallow uploads in proftpd, if, lets say, disspace is less then XX Gb?
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sun Apr 03, 2005 6:19 pm    Post subject: Reply with quote

Perhaps the sys-fs/ext2resize utility can help?
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Sun Apr 03, 2005 7:18 pm    Post subject: Reply with quote

codergeek42 wrote:
Perhaps the sys-fs/ext2resize utility can help?

unfortunately not. the partition is mounted!
i am unable to unmount / because i am in with ssh
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sun Apr 03, 2005 8:26 pm    Post subject: Reply with quote

hds wrote:
codergeek42 wrote:
Perhaps the sys-fs/ext2resize utility can help?

unfortunately not. the partition is mounted!
i am unable to unmount / because i am in with ssh
Hmm. Does it work if you re-mount / as read-only?
Code:
# mount -o remount.ro -t ext3 /dev/hdXY /

_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Sun Apr 03, 2005 8:37 pm    Post subject: Reply with quote

codergeek42 wrote:
hds wrote:
codergeek42 wrote:
Perhaps the sys-fs/ext2resize utility can help?

unfortunately not. the partition is mounted!
i am unable to unmount / because i am in with ssh
Hmm. Does it work if you re-mount / as read-only?
Code:
# mount -o remount.ro -t ext3 /dev/hdXY /

of course not. simply run ext2resize and see yourself?
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Apr 05, 2005 2:07 pm    Post subject: Reply with quote

i fixed my problem the following way:

disable swap (1Gb partition). mkfs swap -> ext2 (hda2 in my case)
mounted /usr/potage and /var/tmp to external partition (mount --bind)
bootstrap, emerge system on 1GB drive (the one that used to be swap)
it fits, stage1 2005.0, kernel 2.6
you will have 50MB left if you are done :lol:

ext2resize hda3 to 14GB
fdisk, delete hda3, create hda3, 15GB
ext2resize again - to 15GB this time so you waist no space

reboot back with your normal hda3 and you are done.

btw: this is not for noobs, it did work here, it will probably fail for anyone else. yes, i described it the sloppy way here <g>.
actually, the whole process took a few hours and even more couple of beers :lol: :lol:

so, if you are a noob, stay away from this. if you really really know what you are doing, feel free to ask back.

oh, btw.. you might get in trouble compiling glibc without swap. use -j1 in this case, to allow 1 instance of CC only.
phew! back to my beer now ;)
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