LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 06-08-2007, 12:48 AM   #1
augu2000
Member
 
Registered: Aug 2003
Distribution: Kubuntu 7.04
Posts: 49

Rep: Reputation: 15
Problem resizing Linux partition


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

Augusto

Last edited by augu2000; 06-08-2007 at 01:26 AM.
 
Old 06-08-2007, 05:55 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 06-08-2007, 06:27 PM   #3
augu2000
Member
 
Registered: Aug 2003
Distribution: Kubuntu 7.04
Posts: 49

Original Poster
Rep: Reputation: 15
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
 
Old 06-08-2007, 08:28 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.

Need I mention my sigline before you start ???.
 
Old 06-08-2007, 11:29 PM   #5
augu2000
Member
 
Registered: Aug 2003
Distribution: Kubuntu 7.04
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks syg00!!! I run

sudo resize2fs /dev/sda2

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

Augusto
 
Old 06-09-2007, 01:31 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 06-09-2007, 01:49 AM   #7
augu2000
Member
 
Registered: Aug 2003
Distribution: Kubuntu 7.04
Posts: 49

Original Poster
Rep: Reputation: 15
This is what the line reads:

Filesystem features: has_journal resize_inode dir_index filetype needs_recovery sparse_super large_file


Is this ok? Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in booting after resizing partition rahulgup Linux - General 1 03-05-2005 10:06 AM
problem with resizing home partition drzile Linux - General 1 02-26-2005 10:33 PM
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 12:42 PM
Resizing partition problem GEEF Linux - General 2 11-18-2004 07:59 PM
partition/resizing problem wslyhbb Linux - General 1 03-13-2004 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration