View previous topic :: View next topic |
Author |
Message |
simucal n00b
Joined: 21 Jun 2004 Posts: 65
|
Posted: Thu Jun 24, 2004 8:03 am Post subject: resize mounted ext3 partition |
|
|
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 |
|
|
saccory Apprentice
Joined: 18 Feb 2004 Posts: 176 Location: Göttingen, Germany
|
Posted: Thu Jun 24, 2004 11:11 am Post subject: |
|
|
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 |
|
Back to top |
|
|
hds Advocate
Joined: 21 Aug 2004 Posts: 2629 Location: Sprockhoevel [GER]
|
Posted: Sun Apr 03, 2005 11:39 am Post subject: |
|
|
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 |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Sun Apr 03, 2005 6:19 pm Post subject: |
|
|
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 |
|
|
hds Advocate
Joined: 21 Aug 2004 Posts: 2629 Location: Sprockhoevel [GER]
|
Posted: Sun Apr 03, 2005 7:18 pm Post subject: |
|
|
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 |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Sun Apr 03, 2005 8:26 pm Post subject: |
|
|
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 |
|
|
hds Advocate
Joined: 21 Aug 2004 Posts: 2629 Location: Sprockhoevel [GER]
|
Posted: Sun Apr 03, 2005 8:37 pm Post subject: |
|
|
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 |
|
|
hds Advocate
Joined: 21 Aug 2004 Posts: 2629 Location: Sprockhoevel [GER]
|
Posted: Tue Apr 05, 2005 2:07 pm Post subject: |
|
|
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
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
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 |
|
|
|