Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795
Rep:
Partition resizing for Linux
I'm getting short on partition space, and I'm looking for a program that can increase the size of my partition. Problem is, I've tried using a program called BootIt, which, when I try to upsize the partition, says I need to increase the size of the FS before increasing the partition size (using resize2fs). Then, when I try to do that, resize2fs tells me that I need a bigger partition for it to resize on. Any ideas on a partition manager that can increase partitions without this hassle? Preferably for Linux, since I don't have Windows on this machine.
Basically, use fdisk to delete the partition, then recreate it with a larger size, at the same starting cylinder. (NB: This method won't let you move the start-point of the partition, and you should not try to format the new partition). Then use resize2fs.
There's a Linux program called gnuparted (try searching for it on freshmeat.net or gnu.org) that can resize partitions; though I haven't used it.
Originally posted by LavaDevil94 I've tried parted, it doesn't like my ext3 partition. The partition I want to upsize is my root partition, so I can't afford to delete it.
You will not be able to resize a partition if it's mounted in any case; you will need to use a boot disk.
Just to clarify: deleting and then immediately recreating the partition (not the filesystem) will not in itself lose you any data; it will just move the end-of-partition marker. (in theory at least; always take a backup when resizing partitions!) If you were to mount it in this state (after recreating the partition), you would have the same partition contents (and size) and some dead space on the disk.
Originally posted by LavaDevil94
<snip> it doesn't like my ext3 partition.
I use ext3 because I can change it to ext2 with
tune2fs -O ^has_journal /dev/hda10
Then I can use my favourite partition resiser (I still use Partition Magic 5.something). I can then chage it back with
tune2fs -j /dev/hda10
This is covered in detail at http://www.troubleshooters.com/linux/ext2toext3.htm
Naps
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.