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 :) |
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.
|
Quote:
|
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 |
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.. |
OKay this is starting to get annoying... cmon slackers - give us a hand :eek:
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? |
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.
|
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. |
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. |
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! |
All times are GMT -5. The time now is 08:12 AM. |