Low Disk Space

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
michale
Level 1
Level 1
Posts: 9
Joined: Mon Dec 10, 2018 7:20 am

Low Disk Space

Post by michale » Mon Dec 10, 2018 7:47 am

Hi!

At the installation I split my disk into two parts - one for home (sda3), another one for the root(sda2). (It wasn't the best decision)
There are around 60 GB on my system root. It's less then a month of me running Linux Mint and I got this message:
(see Screenshot_1.png)
Screenshot_1.png
For some reason, I cannot load Disk Usage Analyzer. It is stuck loading forever (see Screenshot_2.png)
Screenshot_2.png

gm10
Level 17
Level 17
Posts: 7484
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low Disk Space

Post by gm10 » Mon Dec 10, 2018 8:30 am

Always include the output of this terminal command when asking for help:

Code: Select all

inxi -Fxz
The likely problem is you've either got a misconfigured Timeshift or runaway log files. To check which one it is (post the output):

Code: Select all

sudo du -hs /timeshift /var/log
I can't say what the problem is for Disk Usage Analyzer,.
Last edited by gm10 on Mon Dec 10, 2018 10:40 am, edited 1 time in total.

Charlie
Level 4
Level 4
Posts: 321
Joined: Sun Jul 09, 2017 10:09 am
Location: Eng-er-land

Re: Low Disk Space

Post by Charlie » Mon Dec 10, 2018 9:51 am

Whenever I get this message the culprit is usually old kernels after several updates. Unless I have been downloading videos of course. I let Mint take care of partitioning during install.

deepakdeshp
Level 14
Level 14
Posts: 5271
Joined: Sun Aug 09, 2015 10:00 am

Re: Low Disk Space

Post by deepakdeshp » Mon Dec 10, 2018 9:59 am

You should keep only a couple of kernels, the rest should be removed
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19.1 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

HaveaMint
Level 5
Level 5
Posts: 614
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Low Disk Space

Post by HaveaMint » Mon Dec 10, 2018 10:27 am

gm10 wrote:
Mon Dec 10, 2018 8:30 am

Code: Select all

sudo du -hs /home/timeshift /var/log
I can't say what the problem is for Disk Usage Analyzer,.
Is the log location a typo or meant to be, mine is in /var/log/timeshift/
"Tune for maximum Smoke and then read the Instructions".

gm10
Level 17
Level 17
Posts: 7484
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low Disk Space

Post by gm10 » Mon Dec 10, 2018 10:31 am

Guys, his installation is less than a month old, there's no way he collected 50+GB worth of kernels in that time (or any time really).
HaveaMint wrote:
Mon Dec 10, 2018 10:27 am
Is the log location a typo or meant to be, mine is in /var/log/timeshift/
Nope, entirely how I meant it to me, I'm not worried about timeshift logs.

HaveaMint
Level 5
Level 5
Posts: 614
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Low Disk Space

Post by HaveaMint » Mon Dec 10, 2018 10:35 am

gm10 wrote:
Mon Dec 10, 2018 10:31 am
Guys, his installation is less than a month old, there's no way he collected 50+GB worth of kernels in that time (or any time really).
HaveaMint wrote:
Mon Dec 10, 2018 10:27 am
Is the log location a typo or meant to be, mine is in /var/log/timeshift/
Nope, entirely how I meant it to me, I'm not worried about timeshift logs.
OH sorry, reason I asked is I ran it and nothing was there. So I assume your assuming his is misconfiged. Never learn unless I ask questions . :)
"Tune for maximum Smoke and then read the Instructions".

gm10
Level 17
Level 17
Posts: 7484
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low Disk Space

Post by gm10 » Mon Dec 10, 2018 10:36 am

HaveaMint wrote:
Mon Dec 10, 2018 10:35 am
OH sorry, reason I asked is I ran it and nothing was there. So I assume your assuming his is misconfiged. Never learn unless I ask questions . :)
I think you possibly mistyped? Because something must be there. If I run it:

Code: Select all

$ sudo du -hs /var/log
9.2M	/var/log

HaveaMint
Level 5
Level 5
Posts: 614
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Low Disk Space

Post by HaveaMint » Mon Dec 10, 2018 10:39 am

gm10 wrote:
Mon Dec 10, 2018 10:36 am
HaveaMint wrote:
Mon Dec 10, 2018 10:35 am
OH sorry, reason I asked is I ran it and nothing was there. So I assume your assuming his is misconfiged. Never learn unless I ask questions . :)
I think you possibly mistyped? Because something must be there. If I run it:

Code: Select all

$ sudo du -hs /var/log
9.2M	/var/log
This one is different than your above post and it works, I'm lazy I copy/paste
"Tune for maximum Smoke and then read the Instructions".

gm10
Level 17
Level 17
Posts: 7484
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low Disk Space

Post by gm10 » Mon Dec 10, 2018 10:41 am

HaveaMint wrote:
Mon Dec 10, 2018 10:39 am
This one is different than your above post and it works, I'm lazy I copy/paste
Oh lol, now I see it, I did indeed accidentally put the wrong location, but not for the logs, that's what had thrown me off looking just at your correction. Thanks for noticing, sorry and fixed. ;)

HaveaMint
Level 5
Level 5
Posts: 614
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Low Disk Space

Post by HaveaMint » Mon Dec 10, 2018 10:44 am

gm10 wrote:
Mon Dec 10, 2018 8:30 am
Always include the output of this terminal command when asking for help:

Code: Select all

inxi -Fxz
The likely problem is you've either got a misconfigured Timeshift or runaway log files. To check which one it is (post the output):

Code: Select all

sudo du -hs /timeshift /var/log
I can't say what the problem is for Disk Usage Analyzer,.
LOL you left /timeshift in there on the fix. I think i'll duck now before I get slapped.
"Tune for maximum Smoke and then read the Instructions".

gm10
Level 17
Level 17
Posts: 7484
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low Disk Space

Post by gm10 » Mon Dec 10, 2018 10:45 am

HaveaMint wrote:
Mon Dec 10, 2018 10:44 am
LOL you left /timeshift in there on the fix. I think i'll duck now before I get slapped.
That's correct now though (see his borked Disk Usage Analyzer output). I just had the wrong timeshift path before for some reason.

But it's intentional that I want to check both paths for timeshift and the logs, as I had said initially, it's likely either of them that's filling the partition.

HaveaMint
Level 5
Level 5
Posts: 614
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Low Disk Space

Post by HaveaMint » Mon Dec 10, 2018 10:47 am

gm10 wrote:
Mon Dec 10, 2018 10:45 am
HaveaMint wrote:
Mon Dec 10, 2018 10:44 am
LOL you left /timeshift in there on the fix. I think i'll duck now before I get slapped.
That's correct now though (see his borked Disk Usage Analyzer output). I just had the wrong timeshift path before for some reason.

But it's intentional that I want to check both paths for timeshift and the logs, as I had said initially, it's likely either of them that's filling the partition.
Ahhh there's a space tween. Thanks!

Code: Select all

sudo du -hs /timeshift /var/log
du: cannot access '/timeshift': No such file or directory
8.9M	/var/log
"Tune for maximum Smoke and then read the Instructions".

michale
Level 1
Level 1
Posts: 9
Joined: Mon Dec 10, 2018 7:20 am

Re: Low Disk Space

Post by michale » Wed Dec 12, 2018 7:15 am

Thank you guys for the feedback.

One thing I forgot to mention:
My timeshift was on root partition. Then, I got the same message, but it said there were 300 Mb left. I checked timeshift folder and it was around 14 GB. So, I decided to change snapshots to the home partition. (Was a bad decision again, since, I believe I lost all my pervious snapshots(they are not accessible via the app)). After that, the message said there are 900 MB left and I wrote this post.

@gm10 (does it work? How do I tag users?)
I am attaching my inxi log.

Hovewer, when I run sudo du -hs /timeshift /var/log nothing happens. It just stuck.

I ran sudo du -hs /var/log and the output is 227M /var/log

And when I run sudo du -hs /timeshift nothing happens as with the code you sent.



Inxi code: (sorry, wasn't able to attach a file, it says invalid extension)

Code: Select all

System:    Host: PC-01 Kernel: 4.15.0-42-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: Acer product: Aspire E1-572G v: V2.10 serial: N/A
           Mobo: Acer model: EA50_HW v: V2.10 serial: N/A
           UEFI [Legacy]: Insyde v: V2.10 date: 10/07/2013
Battery    BAT1: charge: 23.5 Wh 100.0% condition: 23.5/37.0 Wh (64%)
           model: SANYO AL12A32 status: Full
CPU:       Dual core Intel Core i3-4010U (-MT-MCP-) 
           arch: Haswell rev.1 cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 6784
           clock speeds: max: 1700 MHz 1: 1110 MHz 2: 1132 MHz 3: 1174 MHz
           4: 1142 MHz
Graphics:  Card-1: Intel Haswell-ULT Integrated Graphics Controller
           bus-ID: 00:02.0
           Card-2: Advanced Micro Devices [AMD/ATI] Mars [Radeon HD 8670A/8670M/8750M]
           bus-ID: 03:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting,ati,radeon (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.01hz
           OpenGL: renderer: Mesa DRI Intel Haswell Mobile
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Intel 8 Series HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Haswell-ULT HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-42-generic
Network:   Card-1: Broadcom Limited NetXtreme BCM57786 Gigabit Ethernet PCIe
           driver: tg3 v: 3.137 bus-ID: 01:00.0
           IF: enp1s0f0 state: down mac: <filter>
           Card-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
           driver: ath9k bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: <filter>
Drives:    HDD Total Size: 750.2GB (25.4% used)
           ID-1: /dev/sda model: WDC_WD7500BPVX size: 750.2GB
Partition: ID-1: / size: 55G used: 52G (99%) fs: ext4 dev: /dev/sda2
           ID-2: /home size: 628G used: 122G (21%) fs: ext4 dev: /dev/sda3
           ID-3: swap-1 size: 5.00GB used: 0.48GB (10%)
           fs: swap dev: /dev/sda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 46.0C mobo: N/A gpu: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 210 Uptime: 2:46 Memory: 1830.4/3829.1MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 

User avatar
Moem
Level 18
Level 18
Posts: 8904
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Low Disk Space

Post by Moem » Wed Dec 12, 2018 7:21 am

michale wrote:
Wed Dec 12, 2018 7:15 am
@gm10 (does it work? How do I tag users?)
You can't tag users. They'll read it, or they won't. If they've been helping you, they probably will.
Inxi code: (sorry, wasn't able to attach a file, it says invalid extension)
No worries, you did it exactly right. Inxi output is text and it can be pasted as text; you even added the code tags! Good job! 8)
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

gm10
Level 17
Level 17
Posts: 7484
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low Disk Space

Post by gm10 » Wed Dec 12, 2018 7:35 am

michale wrote:
Wed Dec 12, 2018 7:15 am
And when I run sudo du -hs /timeshift nothing happens as with the code you sent.
Nothing happens as it won't output anything and drop you back to a command prompt, or nothing happens as in you didn't have the patience for the command to finish? I guess the second one? ;)

michale
Level 1
Level 1
Posts: 9
Joined: Mon Dec 10, 2018 7:20 am

Re: Low Disk Space

Post by michale » Wed Dec 12, 2018 7:57 am

Moem, thanks for explanation!

gm10,
Screenshot from 2018-12-12 13-55-40.png
I've set a timer and it has been more than 5 min already and nothing changed. Should I wait longer?

gm10
Level 17
Level 17
Posts: 7484
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low Disk Space

Post by gm10 » Wed Dec 12, 2018 7:58 am

Yes, wait until it's done. Probably takes that long because there's actually 45 GB worth of snapshots in there.

michale
Level 1
Level 1
Posts: 9
Joined: Mon Dec 10, 2018 7:20 am

Re: Low Disk Space

Post by michale » Thu Dec 13, 2018 3:53 am

gm10,

here's the output:
35G /timeshift
244M /var/log


Did I misconfigure Timeshift? I followed these instructions:
https://youtu.be/G0AFuhVSvEk
(25:50 - 28:00)

gm10
Level 17
Level 17
Posts: 7484
Joined: Thu Jun 21, 2018 5:11 pm

Re: Low Disk Space

Post by gm10 » Thu Dec 13, 2018 4:22 am

Hmm, 35G only. That still leaves 17G unaccounted for, not all of which will be your actual system files. Those go into your snapshots, too, so Timeshift is probably not the root cause but whatever is generating the rest of the data is. Nevertheless, your Timeshift configuration can be output with

Code: Select all

cat /etc/timeshift.json
Then you can launch Timeshift and review how many snapshots you've got stored and start removing some you don't need anymore, if any. That should instantly recover you some space. Note that Timeshift uses an inefficient way to delete snapshots so this will take a long time again.

After that we'll need to find where the rest of your disk space went:

Code: Select all

sudo du / -hxd 1 -t 100M
sudo du /var -hxd 1 -t 100M
(first one will take a long time again)

Post Reply

Return to “Newbie Questions”