LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-15-2020, 01:49 AM   #1
Janus84
Member
 
Registered: Sep 2019
Location: New Zealand
Distribution: Debian, Mint
Posts: 61

Rep: Reputation: Disabled
black screen after filling up HDD to 100% by accident


Debian 10 KDE
I've been carrying some large files to transfer, when I needed to do a wireshark capture. The HDD filled up to 0b free space. I have then deleted a VM that I don't need anymore and got extra 30GB. The laptop was fine, closed it and woke up few times, then I got message that unlocking screen is broken and I won't be able to log into the DE. I have rebooted, entered encryption key, the system boots up through GRUB into black screen with a mouse cursor.

Because I could not move on, I entered tty and removed temporary files
Code:
find /tmp -type f -delete
I don't think this is an issue with insufficient space anymore though.
I have Timeshift installed and have few restore points. Tried one from earlier today but getting the same black screen.
Been looking up this problem but didn't find anything useful.
Thanks for looking

edit
I just tried to run neofetch from tty and I get
Code:
/usr/bin/neofetch: line 48: cannot create temp file for here-document: No space left on device
edit
so the startx won't launch because
Code:
xauth: unable to write authority file /tmp/serverauth.IPK......
xauth: unable to write authority file /home/jan/.Xauthority-n
when I do
Code:
df -k
I get /dev/dm-0 used 100%

I keep removing bunch of large files and I still have 0b avalable free space on /dev/dm-0

Code:
$ df -k
Filesystem      1K-blocks       Used   Available  Use%   Mounted on
udev              8018688          0     8018688    0%   /dev
tmpfs             1610560       9600     1600960    1%   /run
/dev/dm-0       473461232  454527316           0  100%   /
tmpfs             8052784          0     8052784    0%   /dev/shm
tmpfs                5120          4        5116    1%   /run/lock
tmpfs             8052784          0     8052784    0%   /sys/fs/cgroup
/dev/loop1          99456      99456           0  100%   /snap/core/9289
/dev/loop0          98944      98944           0  100%   /snap/core/9436
/dev/loop2           1664       1664           0  100%   /snap/modem/-manager/426
/dev/nvme0n1p1     306584       5224      301360    2%   /boot/efi
tmpfs             1610556          0     1610556    0%   /run/user/1000

Last edited by Janus84; 07-15-2020 at 03:10 AM.
 
Old 07-15-2020, 03:13 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Please show the output of
Code:
sudo du -hd1 /var|sort -hr|head

Last edited by shruggy; 07-15-2020 at 03:14 AM.
 
1 members found this post helpful.
Old 07-15-2020, 03:21 AM   #3
Janus84
Member
 
Registered: Sep 2019
Location: New Zealand
Distribution: Debian, Mint
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Please show the output of
Code:
sudo du -hd1 /var|sort -hr|head
Code:
$ sudo du -hd1 /var|sort -hr|head
2.3G   /var
1.2G   /var/cache
942M   /var/lib
16M    /var/backups
11M    /var/tmp
44K    /var/spool
32K    /var/snap
4.0K   /var/opt
4.0K   /var/mail
 
Old 07-15-2020, 03:28 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Hmm, not much to see there. Let's do the same for /boot and /opt.
Code:
sudo du -hd1 /boot /opt|sort -hr|head
 
1 members found this post helpful.
Old 07-15-2020, 03:34 AM   #5
Janus84
Member
 
Registered: Sep 2019
Location: New Zealand
Distribution: Debian, Mint
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Hmm, not much to see there. Let's do the same for /boot and /opt.
Code:
sudo du -hd1 /boot /opt|sort -hr|head
Code:
$ sudo du -hd1 /boot /opt|sort -hr|head
1.4G    /opt
321M    /opt/Signal
286M    /opt/Citrix
249M    /opt/brave.com
239M    /opt/google
237M    /opt/slimjet
88M     /boot
69M     /opt/teamviewer
13M     /boot/grub
5.2M    /boot/efi
 
Old 07-15-2020, 03:37 AM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Not much either. Well, then it's likely something under $HOME that takes all the space.
 
1 members found this post helpful.
Old 07-15-2020, 03:38 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Quote:
Originally Posted by Janus84 View Post
I keep removing bunch of large files and I still have 0b avalable free space on /dev/dm-0
That sounds like timeshift "looking after" you by keeping the files you delete in the snapshot(s). Ain't life a bitch.
You should be able to change the setup from a liveCD but I must admit I haven't tried it. An ugly solution would be to delete /timeshift (or where-ever Debian puts it), but like I said, ugly ...
 
1 members found this post helpful.
Old 07-15-2020, 03:44 AM   #8
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Not sure if the almost filled-up system will allow you to install something like bleachbit, cruft, or cruft-ng. But if yes, it's certainly worth a try.
 
1 members found this post helpful.
Old 07-15-2020, 03:48 AM   #9
Janus84
Member
 
Registered: Sep 2019
Location: New Zealand
Distribution: Debian, Mint
Posts: 61

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by shruggy View Post
Not much either. Well, then it's likely something under $HOME that takes all the space.
Thanks for your help, I've learned something.
 
Old 07-15-2020, 03:55 AM   #10
Janus84
Member
 
Registered: Sep 2019
Location: New Zealand
Distribution: Debian, Mint
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
That sounds like timeshift "looking after" you by keeping the files you delete in the snapshot(s). Ain't life a bitch.
You should be able to change the setup from a liveCD but I must admit I haven't tried it. An ugly solution would be to delete /timeshift (or where-ever Debian puts it), but like I said, ugly ...
This gave me a good laugh. I only installed Timeshift like 48 hours ago!
I see Timeshift has command to delete all snapshots, that's what I should do. Or might try deleting from latest to earliest and see how it goes.
Does this sound reasonable? I guess I won't need them if they are counter-productive atm...
 
Old 07-15-2020, 03:57 AM   #11
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Instead of installing bleachbit, you can:
Code:
sudo -i
apt-get clean
apt-get autoremove
rm -rf /tmp/* /var/tmp/* /var/cache/gdm/*
rm -f /var/cache/man/cat?/*
exit
This is basically what bleachbit does, besides removing everything in ~/.cache.
 
1 members found this post helpful.
Old 07-15-2020, 04:07 AM   #12
Janus84
Member
 
Registered: Sep 2019
Location: New Zealand
Distribution: Debian, Mint
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Janus84 View Post
This gave me a good laugh. I only installed Timeshift like 48 hours ago!
I see Timeshift has command to delete all snapshots, that's what I should do. Or might try deleting from latest to earliest and see how it goes.
Does this sound reasonable? I guess I won't need them if they are counter-productive atm...
Removing Timeshift snapshot from the time I did the wireshark capture fixed my issue. I'm back on desktop.
Much appreciated, I did not realise that I'm keeping everything I "delete" - something to remember.
 
1 members found this post helpful.
Old 07-15-2020, 04:09 AM   #13
Janus84
Member
 
Registered: Sep 2019
Location: New Zealand
Distribution: Debian, Mint
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Instead of installing bleachbit, you can:
Code:
sudo -i
apt-get clean
apt-get autoremove
rm -rf /tmp/* /var/tmp/* /var/cache/gdm/*
rm -f /var/cache/man/cat?/*
exit
This is basically what bleachbit does, besides removing everything in ~/.cache.
Thanks, noted.
I'm still learning how to properly maintain my Linux boxes...
 
Old 07-15-2020, 04:38 AM   #14
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Aren't we all ... glad you got a handle on it.
 
  


Reply



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
Started installing Linux on External HDD by Accident, Now Won't Mount Methodminus Linux - Hardware 7 01-04-2012 09:06 PM
some files are filling up my HDD zomgg Linux - General 1 08-11-2006 01:56 AM
chsh accident; big accident. shinystuffrox *BSD 3 06-06-2005 07:06 AM
ksymoops log filling disk to 100% lobo78 Linux - General 0 06-26-2004 12:04 PM
Occasionally, printing results in CUPS filling up the rest of my HDD mikeyt_333 Linux - Software 17 05-27-2004 11:53 PM

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

All times are GMT -5. The time now is 09:11 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