Partition resizing.
Hello,
Am new on this forum and in Linux and this is my firts post. Here's the problem am posting for: I was trying to resize a partition and I used the following steps: 1. I ran the following: # tune2fs -O ^has_journal /dev/sda2 2. then I checked the file system: # e2fsck -f /dev/sda2 3. Run: # resize2fs -d 27 -p /dev/sda2 3G 4. Now run e2fsck again # e2fsck -f /dev/sda2 5. Then I added my journal back: # tune2fs -j /dev/hda3 when I run # df -h /dev/sda2, the size is well 3.0 Gig Code:
[root@beretta ~]# df -h but when I used parted with the print option, the size seems to have not shrunk at all. the result is as follows: Code:
[root@beretta ~]# parted /dev/sda I am using RHEL4. Any tips? Tanks in advance. |
Hi adomi and wellcome to LQ,
you'll have to reboot your computer between repartitioning and creating a filesystem. Markus |
Quote:
|
Quote:
|
Thank you Syg00 for your reply, particularly for the precisions you gave me regarding what I truly did. I'll try and download gparted and use it for my operation. Will let you how it went.
|
All times are GMT -5. The time now is 05:55 AM. |