LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Help with Parted & Resizing Partitions (https://www.linuxquestions.org/questions/linux-hardware-18/help-with-parted-and-resizing-partitions-151279/)

beley 02-27-2004 03:18 PM

Help with Parted & Resizing Partitions
 
My /usr partition was full, so I deleted the SWAP partition, resized /usr to allow for more space, and recreated a smaller swap in the free space.

I used parted, and everything seemed to complete with no errors. I also issued a 'print' command to make sure the partitions were indeed resized correctly.

Upon reboot, parted sees the resized partitions correctly, but a 'df' still shows the disk as full! TOP reports the swap is the correct new size... so why doesn't the /usr have free space?

Is there something I have to do to the filesystem to recognize the change? I appreciate any input you may have.

jailbait 02-27-2004 08:36 PM

"Is there something I have to do to the filesystem to recognize the change?"

Yes. You will have to format the partition. Back up the partition using tar. Then boot a rescue CD, format the partition, and restore the tar backup to the partition.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

beley 02-27-2004 11:42 PM

I was afriad of that... thanks, I'll do that tomorrow. I was hoping parted would do it automatically since it can move data. Thought I was going to get off easy... :)


All times are GMT -5. The time now is 08:16 PM.