LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
LinkBack Search this Thread
Old 09-07-2007, 01:25 PM   #1
Freex
LQ Newbie
 
Registered: Oct 2006
Location: Belgium, Europe
Distribution: OpenSUSE 11.3 KDE, PCLinuxOS 2010 KDE
Posts: 29

Rep: Reputation: 16
partition resizing doesn't change available space


Hi,
When I originally installed PCLinuxOS 2007 Test 2 back in March (I think), I only reserved 10 GB for the system partition, thinking that would be quite sufficient. However, because pclos is such a great OS I kept on using it and installing more stuff, so my partition became quite full. I then resized the ext2 partition using gparted from a puppy linux livecd. Before the resizing operation gparted reported only 40 MB free. After the resizing (increased the partition size to 25 GB)gparted still reported 40 MB free, instead of the 15 GB I reported. I ran e2fsck both before and after. Does anyone know how I can make the system know enough space is available? Right now I often get messages like "You don't have enough free space in /var/cache/apt/archives/" when, for example, installing a new program using apt-get. However, when counting file sizes using konqueror it appears only 10 GB of space is occupied. And I know the filesystem was successfully resized. Does anyone know a way out of this mess?
 
Old 09-07-2007, 03:22 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268

Rep: Reputation: 83
Quote:
Originally Posted by Freex View Post
Hi,
When I originally installed PCLinuxOS 2007 Test 2 back in March (I think), I only reserved 10 GB for the system partition, thinking that would be quite sufficient. However, because pclos is such a great OS I kept on using it and installing more stuff, so my partition became quite full. I then resized the ext2 partition using gparted from a puppy linux livecd. Before the resizing operation gparted reported only 40 MB free. After the resizing (increased the partition size to 25 GB)gparted still reported 40 MB free, instead of the 15 GB I reported. I ran e2fsck both before and after. Does anyone know how I can make the system know enough space is available? Right now I often get messages like "You don't have enough free space in /var/cache/apt/archives/" when, for example, installing a new program using apt-get. However, when counting file sizes using konqueror it appears only 10 GB of space is occupied. And I know the filesystem was successfully resized. Does anyone know a way out of this mess?
What you are saying is self contradictory. You say that you know the file system was successfully resized. Yet konqueror and various error messages say otherwise. You can use the df command as yet another check on whether the filesystem was resized or not.

There have been various bugs in gparted relating to resizing filesystems. If it turns out that gparted told you that it successfully resized the filesystem but df, konqueror, etc. say otherwise then I suggest that you try to resize again, except this time try using the resize2fs command.


---------------------
Steve Stites
 
Old 09-07-2007, 03:35 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,406

Rep: Reputation: 212Reputation: 212Reputation: 212
Here is a link to gparted documentation 'How to resize a partition'. http://gparted.sourceforge.net/larry...e/resizing.htm. You may want to verify your procedure by reading this document.
 
Old 09-07-2007, 05:12 PM   #4
Freex
LQ Newbie
 
Registered: Oct 2006
Location: Belgium, Europe
Distribution: OpenSUSE 11.3 KDE, PCLinuxOS 2010 KDE
Posts: 29

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jailbait View Post
What you are saying is self contradictory. You say that you know the file system was successfully resized. Yet konqueror and various error messages say otherwise. You can use the df command as yet another check on whether the filesystem was resized or not.

There have been various bugs in gparted relating to resizing filesystems. If it turns out that gparted told you that it successfully resized the filesystem but df, konqueror, etc. say otherwise then I suggest that you try to resize again, except this time try using the resize2fs command.


---------------------
Steve Stites
THe problem being that gparted USED resize2fs (I studied the logs, and no, I didn't save them). Also, gparted, konqueror and what else are telling me the partition actually is 25 GB in size. So at least some part of the resizing process worked. Which means (since it's filled up all the available space now) that if I want to resize again I'll have to decrease the size of the partition such as it's being detected. Which means for all I know I may be losing data or the app may say it's not possible at all

Quote:
Here is a link to gparted documentation 'How to resize a partition'. http://gparted.sourceforge.net/larry...e/resizing.htm. You may want to verify your procedure by reading this document.
That's exactly how I did it.

THis may clarify the situation:
http://img267.imageshack.us/img267/8089/spacert7.png
 
Old 09-07-2007, 08:51 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,461

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
Looks like the partition resizing worked, but not the filesystem resizing.
Resize2fs run against that fs (unmounted) should expand it to fill the partition. Try it from a terminal (i.e. CLI) from a liveCD.
 
Old 09-08-2007, 04:38 AM   #6
Freex
LQ Newbie
 
Registered: Oct 2006
Location: Belgium, Europe
Distribution: OpenSUSE 11.3 KDE, PCLinuxOS 2010 KDE
Posts: 29

Original Poster
Rep: Reputation: 16
Thanks, that seems to have done the trick :-)
 
  


Reply

Tags
ext2, gparted, partition, resizing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing a boot partition to free more space harlikoen Linux - Hardware 4 05-06-2007 11:00 AM
Running out of space - resizing my existing Linux partition gljubuncic Linux - Software 7 07-01-2006 09:48 PM
Getting low on Windows disk space...need partition resizing help. phekno General 12 04-03-2006 01:29 PM
Problem Resizing Linux Partition From Partition magic John_Emad Suse/Novell 5 02-16-2005 12:42 PM
deleting/resizing swap partition / increasing hd space saranga2000 Linux - Hardware 1 12-09-2004 10:03 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration