Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: shuiend on 27 February 2003, 06:58

Title: ext3 resizing
Post by: shuiend on 27 February 2003, 06:58
how do i resize my ext3 partition? I would like a tool with a gui but command line is ok if that is all you can use.
Title: ext3 resizing
Post by: TheKnifeThrower on 27 February 2003, 19:59
Try partition magic 8. Yes I know you need windows but it's great.
Title: ext3 resizing
Post by: Refalm on 27 February 2003, 20:28
Nah, Partition Magic 8 sucks... it doesn't work!

I tried CFDisk in Linux, but I couldn't find anything that would resize a partition...
Title: ext3 resizing
Post by: Master of Reality on 27 February 2003, 21:01
the program which you use is called "resize2fs" but you must first make your partition bigger using fdisk.
Using fdisk (or cfdisk i guess) delete the partition, then remake the partition (starting at the same spot) ending later on the harddrive. Then fdisk will show you how many blocks it is i think.
Then use resize2fs to resize the filesystem to that size. check the man page for resize2fs "man resize2fs"

edit: that was assuming you are making it bigger... its a little different if you want to make it smaller.

[ February 27, 2003: Message edited by: The Master of Reality / Bob ]

Title: ext3 resizing
Post by: shuiend on 27 February 2003, 22:29
thanks but i wanted to make it smaller. I just ended up reformatting it so it doesent really matter now.
Title: ext3 resizing
Post by: Master of Reality on 28 February 2003, 00:28
to make it smaller you use resize2fs to make the filesystem smaller then use fdisk and delete the partit.... etc.. but instead of making the end farther you make it shorter.
Title: ext3 resizing
Post by: mobrien_12 on 28 February 2003, 07:10
Just download a new version of GNU parted.

It will resize ext2 and ext3.
Title: ext3 resizing
Post by: Calum on 3 March 2003, 20:38
quote:
Originally posted by The Master of Reality / Bob:
[QB]the program which you use is called "resize2fs" but you must first make your partition bigger using fdisk.
Using fdisk (or cfdisk i guess) delete the partition, then remake the partition (starting at the same spot) ending later on the harddrive. Then fdisk will show you how many blocks it is i think.
Then use resize2fs to resize the filesystem to that size. check the man page for resize2fs "man resize2fs"

edit: that was assuming you are making it bigger... its a little different if you want to make it smaller.


won't this erase all the data?
Title: ext3 resizing
Post by: solo on 4 March 2003, 00:36
nah it wont delete data, it just removes it from the partition table. the data is saved. thats why if you directly make partitions with fdisk you must do mke2fs before you can use it
Title: ext3 resizing
Post by: TheQuirk on 5 March 2003, 06:17
http://www.mandrakelinux.com/diskdrake/ (http://www.mandrakelinux.com/diskdrake/) is graphical. And no, it's not Mandrake-specific (the only reason I'm bringing this up is because he wanted a GUI one).