LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2012, 04:39 PM   #1
sam_nyc
Member
 
Registered: Aug 2009
Posts: 73

Rep: Reputation: 1
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
 
Old 07-23-2012, 05:15 PM   #2
adowl2001
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 07-23-2012, 07:17 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
1 members found this post helpful.
Old 07-24-2012, 12:12 PM   #4
sam_nyc
Member
 
Registered: Aug 2009
Posts: 73

Original Poster
Rep: Reputation: 1
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Save a downloaded (purchased) product for a later reinstall heffo_j Ubuntu 2 06-25-2011 06:04 AM
need to reinstall linux-how to save files(burner not working) shamimkhaliq Linux - Desktop 7 05-11-2009 03:11 PM
How to reinstall kubuntu without loosing data? AVD_ZM Ubuntu 2 03-27-2007 09:59 AM
reinstall and save home directory IraB Debian 4 03-22-2006 09:50 AM
Vim: ftp save no longer works after reinstall GreenPenInc Linux - Software 0 06-14-2005 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration