LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No hard disk space where I have 150gb unused in /dev/sda5 (https://www.linuxquestions.org/questions/linux-newbie-8/no-hard-disk-space-where-i-have-150gb-unused-in-dev-sda5-4175413834/)

Angoni6 06-29-2012 04:17 AM

Quote:

Originally Posted by ewalter (Post 4714802)
Sorry du -sh /dev/sda5/*

du: cannot access `/dev/sda5/': Not a directory

catkin 06-30-2012 02:36 AM

Quote:

Originally Posted by Angoni6 (Post 4714829)
du: cannot access `/dev/sda5/': Not a directory

That's expected. /dev/sda5 is the device (partition) of the file system, not where it is mounted. And anyway /dev/sda5 is for the / file system, not /home.

To find the large files on the /home file system:
Code:

find /home -size +100M
If that lists too many files to be useful, increase the 100.

EDDY1 06-30-2012 04:03 AM

Quote:

Originally Posted by Angoni6 (Post 4714686)
df -h output
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 151G 8.5G 135G 6% /
tmpfs 990M 520K 989M 1% /dev/shm
/dev/sda1 194M 23M 162M 13% /boot
/dev/sda2 77G 72G 1.9G 98% /home

/home is almost full, you will need to resize
/ is only 6% full
You can take almost 90% of / & not hurt it

The suggestion at post #10 I made earlier was not correct, use this 1
Quote:

If everything on /home is important use gparted-live & shrink sda5 from the left, also shrink the extended sda4 from the left, then move sda3 to the right & grow sda2

Angoni6 06-30-2012 11:26 AM

Quote:

Originally Posted by EDDY1 (Post 4715574)
/home is almost full, you will need to resize
/ is only 6% full
You can take almost 90% of / & not hurt it

The suggestion at post #10 I made earlier was not correct, use this 1

Sorry yo bother you Eddy. How do I take the 90% of / thats what I am interested in. Sorry once again am new to linux

EDDY1 06-30-2012 11:50 AM

gparted is a live-cd or usb you have to boot to it to use it
http://www.youtube.com/watch?v=5Uaa546TmTM
http://gparted.sourceforge.net/
installation instructions
http://gparted.sourceforge.net/livecd.php/

chrism01 07-01-2012 08:32 PM

The point is, you've got a physical disk which has 250GB of 'space'.
This you have broken down into multiple partitions as shown by 'df -h' & 'fdisk -l'
Each partition is effectively its own disk.

Code:

df -h output
Filesystem Size Used Avail Use% Mounted on
/dev/sda5  151G 8.5G 135G 6%    /
tmpfs      990M 520K 989M 1%    /dev/shm
/dev/sda1  194M  23M 162M 13%  /boot
/dev/sda2    77G  72G 1.9G 98%  /home

Try to use code tags when posting output https://www.linuxquestions.org/quest...do=bbcode#code

As above
1. your /home partition is nearly full, which is what the msg is in fact saying if you read it

2. you don't need 150Gb for root partition (aka '/'); ideally you should probably re-partition to use e.g. 50GB for '/' and the rest for home.
(in actual fact the programs, cfgs etc stored in '/' should fit inside 10 (maybe 20 ) GB, but as it sits, you're also going to have all your logs under there as well.

ewalter 07-04-2012 02:46 AM

Am also now experiencing the same problem here is my output for
Quote:

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 874G 173G 657G 21% /
tmpfs 3.8G 0 3.8G 0% /lib/init/rw
udev 10M 10M 0 100% /dev
tmpfs 3.8G 0 3.8G 0% /dev/shm
/dev/md0 93M 38M 50M 43% /boot

I cannot use live-cd gparted as the server is off-shore is there any alternative.

sixathome 07-04-2012 02:00 PM

I had a low disk space warning come up too. I thought it was too many pictures and tried rmoving them. When it kept happening I figured i better try something else. I found a post that said the logs may not be purging the old reports.
I down loaded Bleach bit from package manager and ran it from root, I found my logs were way too many!
I used bleach bit to clean and I regained about 30 GB of space! There are languages that come with packages that you do not need and just take up space. It can be configured to keep only your preferred languages.
Try it it may help. All files can be previewed so you do not delete something you need.

catkin 07-05-2012 03:07 AM

Quote:

Originally Posted by ewalter (Post 4718841)
Am also now experiencing the same problem here ...

Better you start you own thread ewalter otherwise it will be confusing if people are advising you and the OP in the same thread.


All times are GMT -5. The time now is 03:46 AM.