LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need to save the data and reinstall? (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-save-the-data-and-reinstall-4175418286/)

sam_nyc 07-23-2012 03:39 PM

need to save the data and reinstall?
 
Hi,

One of system keeps running out of space. The install was not done correctly. I have lot of space but it's in wrong directory. How do I fix this. I was thinking of backing the data and re-install then restore. Please advise.
Below you will see the current system df -h data. As you can see / was created with very little space. Every day / file system comes to 100% full.

Code:

/dev/sda6            981M  963M    0 100% /
/dev/sda7            143G  6.4G  130G  5% /dk1
/dev/sda3              48G  7.5G  38G  17% /usr
/dev/sda2              48G  562M  45G  2% /var
/dev/sda1              99M  32M  62M  34% /boot
tmpfs                983M    0  983M  0% /dev/shm


adowl2001 07-23-2012 04:15 PM

it seems like you have a lots of space but you wrongly partitioned your Harddisk.
i can see that you have only 6.4G, or less, worth of user data in your home folder.
My recommendation will be that you backup only your personal files from your /home ("dk1" in this case) folder to a usb disk. A 4GB will do.
After creating the backup you need to repartition your harddisk. You don't have to create each directory in a seprete partition. Just create the ones that are necessary. Rest directories will be automatically mounted in "/."
here is what i think. delete all the partitions. now create a partition of about 10-15G and mount it as "/."
now create another partition as swap space. i can see your system works fine without swap but it's recommended that you create a swap space which is equal to your RAM.
now you need to create a /home directory which will store your all personal data and is preservable across installations. You can give it all the space which is left in your harddisk.
Ok you're done. this is a very stable configuration.

P.S. you can also create a 1G /boot partition. this *MIGHT* fasten your booting.
Let me know how it's going.

TobiSGD 07-23-2012 06:17 PM

Backup your important data (which you should do anyways periodically), then start from a GParted live-CD and start GParted.
Shrink the partition /dev/sda7 from the front about 1 or 2GB, then add the now free space to your partition /dev/sda6.
Gparted will take care of the rest, like resizing file-systems, if you apply the changes. After you have done that reboot the system and hope that it still works (which it should normally). If it doesn't work, re-install.

sam_nyc 07-24-2012 11:12 AM

Thank you so much. I will backup my data first then try the gparted. If nothing works, I will reinstall.

I only upgraded the system few months ago, I can't believe I made the / file system very small.


All times are GMT -5. The time now is 02:35 PM.