LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2006, 09:34 PM   #1
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
After re-sizing partition KDE still reports old size?


HI All, So i have resized one of my partitions and KDE still reports the old size. Is there a file i should edit or a 'update' util that will adjust its records - It does not seem to pol the hardware to check this information.
I saved an image to a spare part with partimage - i then deleted my logical linux partition and re-created it with a larger size..
I then restored the partimage dump back to the new volume and KDE still seems to think i have 9GB when it should be 18GB

If i check the size again with fdisk or cfdisk they both report the correct size.
what have i done wrong here??... thanks
 
Old 04-15-2006, 09:43 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Unlike Windows, resizing a GNU/Linux partition requires two steps. One is the physical partition resizing and the second is resizing the file system. Take a look at the e2fsck -v and resize -fp commands. The first command will display the block size info and you use the latter command to adjust the file size based upon the info reported with e2fsck.
 
Old 04-15-2006, 10:21 PM   #3
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Woodsman
Unlike Windows, resizing a GNU/Linux partition requires two steps. One is the physical partition resizing and the second is resizing the file system. Take a look at the e2fsck -v and resize -fp commands. The first command will display the block size info and you use the latter command to adjust the file size based upon the info reported with e2fsck.
OK thanks for the info. I guess i need to do this with the device unmounted.. I will come back later, cheers!
 
Old 04-15-2006, 10:32 PM   #4
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Original Poster
Rep: Reputation: 31
Hmmm - this does not seem to be doing the trick for me I used e2fsck -v /dev/hdx after loading a boot cd and it gave me the block count..
However, 'resize' does not seem to relate to disks. It looks like something for the screen or something?
root@Slack700m:~# resize
COLUMNS=82;
LINES=19;
export COLUMNS LINES;

if i use resize -fp they are invalid switches
 
Old 04-16-2006, 01:15 AM   #5
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Original Poster
Rep: Reputation: 31
hmmmm surely this cant be very hard but i seem to be stumped.
I see there is a 'resize' option within the parted program.. this lets you resize a partition & its filesystem... when i try this however it says that this is a strange ext2 filesystem and it cannot go any further? weird..
 
Old 04-16-2006, 03:06 AM   #6
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Original Poster
Rep: Reputation: 31
OKay this is starting to get annoying... cmon slackers - give us a hand
I have since backed up the whole partition again. deleted it, re-created it again, used mkfs to create ext2 filesystem - i then restored the image back and still the same thing happens... says 9GB in KDE
cfdisk and fdisk both say 19GB..
Soo.... How do i resize an existing ext2 filesystem then?... so as to make it match the partition size?
 
Old 04-17-2006, 01:03 AM   #7
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
Are you certain that you are using ext2fs, as the slack default is to use reiserfs If so, you need to run the command resize_reiserfs. See man resize_reiserfs for how to do this.If you are certain that you are using ext2fs, then the command resize2fs is what you need. Again, man resize2fs explains the steps to take.
 
Old 04-17-2006, 01:53 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Parted is, ummmm how can I put this .... less than promised.
I have never been successful using it for resizing -others have. I generally tar off a backup, rebuild the filesystem and partition as I wish, and restore.
You may have some luck with resize2fs - or you may lose you filesystem. That's a crapshoot I choose not to participate in.
 
Old 04-18-2006, 03:32 AM   #9
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Original Poster
Rep: Reputation: 31
UH OH! here we go

OKay i am pretty sure it is ext2, well everything to date has indicated that it is.. and i do mount it as a ext2 system ... fdisk and cfdisk indicate that it is ext2....
I dont remember telling slack installer to use anything different however so kinda stumped there..

I am going to go this resize a go now as i have spent so long trying to do something that i would consider normal computer orperation - starting to drive me crazy!

I have a partimage dump saved - so all is apples.
 
Old 04-18-2006, 06:11 AM   #10
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Original Poster
Rep: Reputation: 31
Okay thanks for your help - Slack lords!
I am happy that the issue is now resolved (almost ) and i have learnt a great deal about linux filesystems and partition types in the process - which i am also happy about.
I used resize2fs /dev/hdax which gave me a default setup based on the partition i beleive. It has worked and i am logged into slack now................ however, it has set the size to 16,2GB - 16,554MB - even though it should be 17,914MB , so i have lost 1 GB....
I think if i had manually specified the block size as a pose to letting resize2fs query the partition then this would not have happened but i think i will just remember this for next time.

Thanks again!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Is KDE not sizing menus right? Krimson714 Slackware 3 10-17-2005 07:57 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Re-sizing a full EXT3 Part with Partition Magic problems VexSky General 3 09-10-2003 07:23 PM
Mandrake 9.1 Installation Problems : Partition Sizing moothecow2k Linux - Newbie 3 08-04-2003 05:57 PM
Partition sizing dummy Linux - Newbie 4 11-04-2002 08:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:12 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