Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Hi. I am running Kubuntu 7.04. I wanted to make my Linux partition bigger (the one that has the Linux filesystem). I booted from the Ubuntu CD and opened gparted. Then I deleted the partitions that were after the linux one, and resized the linux partition. The resizing gave me an error that I don't remember, but seemed to take place. Then I created a new swap partition and rebooted Kubuntu.
Now I am having the following problem: apparently my Linux system still sees the partition with the old size, so it looks like no resizing was done. But when I go to gparted, it shows that the partition is indeed bigger, but all of the added space shows as used. On the other hand, qtparted shows the partition with the correct size and used space. But neither KDE nor Gnome let me use the free space since they think that it was not added. Any help will be greatly appreciated. Thanks
Sounds like the partition got resized, but not the filesystem. What does "df -hT" show ???.
Most (all ???) filesystems should be able to be made larger. You might have to do it with a filsystem tool (directly) rather than gparted though. Next time you'd do well to take note of any error messages. They are issued for a reason.
Thanks for the response. Here is the output of "df -hT"
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext3 12G 5.0G 5.6G 48% /
So, as you suggest, it looks like the file system was not resized (the partition is about 22Gigs now). How do I resize it? What tool should I use? Thanks
resize2fs is part of the e2fsprogs package - so you should have it. See the manpage.
ext3 is merely ext2 with journalling - you may have to disable the journal first, I don't know. Probably not.
and the filesystem took all the partition. Now it works great. One more quick question: Does resize2fs turn journaling off by default? I did not do it manually, but I have no idea how to check if it's on or not. How do I check that? Thanks again
Simple answer would be to just reboot and run the "df -hT" again ...
"tune2fs -l ..." will give you some detail. If it says "has_journal" under "Filesystem features:", it is ext3.
In need, the same utility can be used to put the journal back.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.