LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Resizing root and /home partitions (https://www.linuxquestions.org/questions/suse-opensuse-60/resizing-root-and-home-partitions-505100/)

sas_tk 11-26-2006 07:59 PM

Resizing root and /home partitions
 
Hi All,

Using Suse 10.1. Have not enough space on "/" and "/home". Decided to resize. Next partition on the hard after root and /home is fat32. Decided to kill fat partition and use this space for root and home.

- downloaded Knoppix Live cd
- started Knoppix, did partimage to backup / and /home
- deleted partitions
- created new / and new /home partitions using fdisk
- restarted
- did mkreiserfs to create filesystem
- restored data to / and /home using partimage
- modified /etc/fstab to reflect new partitions
- rebooted from HDD
- started Suse.

Questions:
Why df -h still shows old space
I tried to go to software installation to add some packages and still got message that don't have enough space

- when I go to LVM or Partitioner - they show the right space for / and /home

What I did wrong?

syg00 11-26-2006 08:38 PM

You resized the partition, but neglected to adjust the filesystem. I don't use reiser, but believe resize_reiserfs should do what you want.
Check the manpage.

sas_tk 11-27-2006 08:04 PM

Thank you
 
Thank you

- booted from Live cd
- did resize_reiserfs
- it did fix the issue

Thank you for your help

syg00 11-27-2006 10:01 PM

I should have mentioned, that the reason you had this problem was the use of an "image" file for backup/restore.
Despite creating the new filesystem in the resized partitions (which did as you wanted), the restore of the image file "restored" the filesystem to its prior state - only now inside the larger partition.
Glad it all worked out o.k.
Something like the gparted liveCD should do it all for you if needed in future.


All times are GMT -5. The time now is 11:44 AM.