LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-13-2009, 08:06 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 537

Rep: Reputation: 32
How to clear files to make more disk place


Hi all,

I want to install sone software on my Linux but as I unzip the zip file I got somewhat like "no place anymore". I check the disk with "df -k" and got:
Code:
[vers@s003ap02 ~]$ df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_root-lv_root
                       3096336   2639580    299472  90% /
/dev/sda1               101086     15503     80364  17% /boot
none                   3962872         0   3962872   0% /dev/shm
/dev/mapper/vg_root-lv_home
                        507748    477077      4457 100% /home
/dev/mapper/vg_root-lv_opt
                       2580272   2251472    197728  100% /opt
/dev/mapper/vg_root-lv_tmp
                        507748     58837    422697  13% /tmp
/dev/mapper/vg_root-lv_var
                       2064208   1218884    740468  63% /var
[vers@s003ap02 ~]$
We can see here the whole disk is already 90% full. And /home and /opt is even 100% full. I have to clean or backup some files under /home and /opt to get more disk place so I can install the software. But I am not sure which files should I clean or backup.

Has someone experience?
 
Old 10-13-2009, 08:24 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
First, why do you have all of those SMALL partitions?
only 500MB for /home
only 3GB for /
etc.

Please post the output of "fdisk -l" so we can see the bigger picture

I think your best solution is going to be a re-install on larger partitions.
 
Old 10-13-2009, 08:46 AM   #3
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
If you don't have more diskspace to your disposal, then I suggest you don't split up your partitions. That way, the free space will be available to all those directories. You have roughly 11 GB (out of which 3GB is shared memory, for whatever reason..). If you reinstall over one big partition of that size you should be quite better off.

-A
 
Old 10-13-2009, 08:53 AM   #4
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 537

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by pixellany View Post
First, why do you have all of those SMALL partitions?
only 500MB for /home
only 3GB for /
etc.

Please post the output of "fdisk -l" so we can see the bigger picture

I think your best solution is going to be a re-install on larger partitions.
I wonder also why the patition so small. But in the fact it is so because our Linux is installed on VMware. The disk shown here is virtual. See here.


Code:
[root@s003ap02 ~]# fdisk -l

Disk /dev/sda: 11.8 GB, 11811160064 bytes
255 heads, 63 sectors/track, 1435 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1435    11422215   8e  Linux LVM

Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         130     1044193+  82  Linux swap
[root@s003ap02 ~]#
I've asked our admin to extend the disk. It would be very simple since it's virtual.

Thanks.

Last edited by thomas2004ch; 10-13-2009 at 08:54 AM.
 
Old 10-13-2009, 09:03 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You haven't accounted for all the partitions / mountpoints listed in your first post...

Regardless, getting more space is the right answer, plus maybe not so many separate partitions.

Last edited by pixellany; 10-13-2009 at 11:02 AM.
 
Old 10-13-2009, 11:33 AM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by thomas2004ch View Post
Hi all,

I want to install sone software on my Linux but as I unzip the zip file I got somewhat like "no place anymore". I check the disk with "df -k" and got:
Code:
[vers@s003ap02 ~]$ df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_root-lv_root
                       3096336   2639580    299472  90% /
/dev/sda1               101086     15503     80364  17% /boot
none                   3962872         0   3962872   0% /dev/shm
/dev/mapper/vg_root-lv_home
                        507748    477077      4457 100% /home
/dev/mapper/vg_root-lv_opt
                       2580272   2251472    197728  100% /opt
/dev/mapper/vg_root-lv_tmp
                        507748     58837    422697  13% /tmp
/dev/mapper/vg_root-lv_var
                       2064208   1218884    740468  63% /var
[vers@s003ap02 ~]$
We can see here the whole disk is already 90% full. And /home and /opt is even 100% full. I have to clean or backup some files under /home and /opt to get more disk place so I can install the software. But I am not sure which files should I clean or backup.

Has someone experience?
Among many kinds of posts in this group, I see two particular varieties again and again:
  • In one variety, someone argues that having many partitions is a good idea, everyone does it, and so forth.
  • In the other variety, someone complains that their system has stopped working because one or more partitions has filled up while there is still plenty of room left on other partitions.

In this example, the op has plenty of space on some partitions, but none at all on others, consequently his system cannot function. This is exactly the point I make in this discussion. Please, before creating a system with a lot of small partitions, read it again.

To the OP: Back up your data, reinstall Linux with three partitions, restore your data. Here are the three partitions:
  1. System root (/), about 20 GB. This partition should include all the system directories you are having problems with now.
  2. Swap, twice the size of RAM.
  3. All the remaining space on the drive. This partition can be labeled /home, or if you prefer, just give it a generic label like /data.

Never create a system with a bunch of small partitions -- unless you like reinstalling Linux over and over again as your learning curve progresses.

Quote:
Originally Posted by thomas2004ch View Post
I've asked our admin to extend the disk.
The system administrator who designed the above scheme should be summarily demoted to newbie. Or maybe he doesn't even deserve that exalted rank.
 
  


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
make clear commande error sobo32 Red Hat 1 08-27-2009 08:55 AM
What to Delete to Clear Disk Space? PatrickW Linux - Newbie 5 05-03-2008 01:59 PM
Make HAL automount a disk to a specific place duryodhan Slackware 6 09-27-2007 07:10 AM
Clear out Linux Mandrake disk space? aaronlc Linux - Software 5 02-18-2003 07:09 PM
How to clear up disk space? graystarr Linux - Newbie 3 01-24-2002 08:44 AM

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

All times are GMT -5. The time now is 08:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration