LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-11-2010, 06:56 AM   #1
rogerdv
Member
 
Registered: Jul 2005
Location: Cuba
Distribution: redhat
Posts: 52

Rep: Reputation: 15
correct partition size not reported after resizing with gparted


I removed an ntfs partition I had in my HD and then resized my home partition with gparted to occupy all the available space. The resulting partition is supposed to be 129GB, and gparted/partition magic see that size. But the system does not, and all tools report the old partition size and the same free space I had before resizing. Any idea about how to solve this?
 
Old 01-11-2010, 07:50 AM   #2
stani
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Rep: Reputation: 0
Are you using journaling or is the filesystem ext2 or ext3? Because if you are resizing ext3 according to this fellow http://www.hermann-uwe.de/blog/resiz...ns-with-parted you have to disable and re enable journaling. This is what I think you have to do now, that you have already resized the partition.

First you'd better unmount your home partition.
So try removing the journal from your home partition, lets say it is /dev/sda4, turning it to ext2 by:
tune2fs -O ^has_journal /dev/sda4
Then check the size of the partition or maybe run fsck just to be sure everything is fine, I suppose by now it should indicate correct size. Then turn journaling back on with:
tune2fs -j /dev/sda4
 
Old 01-11-2010, 09:04 AM   #3
rogerdv
Member
 
Registered: Jul 2005
Location: Cuba
Distribution: redhat
Posts: 52

Original Poster
Rep: Reputation: 15
Nothing. fsck reports the correct size, but df reports the previous size. Seems Ill have to format.
 
Old 01-11-2010, 09:36 AM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
use a live cd like system rescue cd or parted magic for all related tasks.
 
Old 01-11-2010, 09:45 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,747

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
My experience with resizing partitions tells me that this in one of the few times that a reboot is called for. The kernel is working with the partition table that was loaded at boot time. If you make changes to partitions, reboot to load the new partition table.
 
Old 01-11-2010, 10:35 AM   #6
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 200

Rep: Reputation: 30
if it is kernel 2.6+ext3 then you could use "resize2fs -f -p <device path>" to format the partition online without losing data and restarting.
 
  


Reply

Tags
gparted, resize


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GParted resizing has corrupted a partition troy.mcclure Linux - General 1 11-16-2009 06:02 PM
Free space not showing correct after increasing root partition size with GParted. avanindra Linux - Newbie 3 08-06-2009 07:49 AM
error resizing NTFS partition with gParted live CD Nived87 Linux - Newbie 5 05-29-2006 01:53 AM
URGENT! Resizing NTFS partition size problems. rconan Linux - Software 3 09-03-2005 12:03 PM
reported partition size error jsmarshall85 Debian 4 11-06-2004 02:09 PM


All times are GMT -5. The time now is 02:21 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration