Disk full, unable to login. I need help [SOLVED]

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
klmn
Level 1
Level 1
Posts: 6
Joined: Sun Sep 10, 2017 5:06 am

Disk full, unable to login. I need help [SOLVED]

Post by klmn » Sun Sep 10, 2017 5:27 am

Hello,

I have a problem and after following various tutorial and forums in the last 2 days I realize I need help.

While retrieving some files from a "dead" HDD I managed to get my SSD full. On this SSD I have root, home, you name it...and just 1 partition.
Now I cannot login, I get a message that "MDM did not managed to write the authorization file..."

I booted from a Live USB trying to delete some files with sudo command but it seems that it does not help and the drive is still full even if I successfully delete the files and I cannot find them after a restart.
My "home" folder is encrypted... Otherwise I would save all the files I need from Live session and start a new installation, it would be less time consuming.
Do you have any advice for any of the following situation:
- how can I free up some space in order to log in (from current session or Live USB)
- how can I decrypt the home folder to save the files I need then I can reinstall Mint

Thank you.
Last edited by klmn on Mon Sep 11, 2017 6:28 am, edited 1 time in total.

User avatar
Pjotr
Level 21
Level 21
Posts: 13252
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Disk full, unable to login. I need help

Post by Pjotr » Sun Sep 10, 2017 6:27 am

In the Grub bootloader menu, select the Advanced section. Boot into Recovery and hopefully you can clean enough to be able to log in normally afterwards.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
kc1di
Level 14
Level 14
Posts: 5269
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Disk full, unable to login. I need help

Post by kc1di » Sun Sep 10, 2017 6:32 am

old kernels take lots of space so if you have them remove any that are not being used.
also do the following

Code: Select all

sudo apt-get autoclean && sudo apt-get clean
also run

Code: Select all

sudo apt-get autoremove
you can find which kernel your currently using with the command

Code: Select all

uname -r
do not remove that one.
And here is a good article on what you can clean safely That may be good to look at.
https://itsfoss.com/free-up-space-ubuntu-linux/
Easy tips : https://easylinuxtipsproject.blogspot.com/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

klmn
Level 1
Level 1
Posts: 6
Joined: Sun Sep 10, 2017 5:06 am

Re: Disk full, unable to login. I need help

Post by klmn » Sun Sep 10, 2017 7:44 am

I cannot access Grub boot loader. From bios screen computer loads directly Linux Mint ... even if I press shift key all the time since I am powering up.
Can I edit Grub menu from Live session in order to see it?

User avatar
michael louwe
Level 10
Level 10
Posts: 3297
Joined: Sun Sep 11, 2016 11:18 pm

Re: Disk full, unable to login. I need help

Post by michael louwe » Sun Sep 10, 2017 8:24 am

@ klmn, .......

Try the Esc key, as per ... viewtopic.php?f=46&t=249335&p=1341676#p1341676

User avatar
kc1di
Level 14
Level 14
Posts: 5269
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Disk full, unable to login. I need help

Post by kc1di » Sun Sep 10, 2017 9:07 am

Some times the tab key works also.
Easy tips : https://easylinuxtipsproject.blogspot.com/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

klmn
Level 1
Level 1
Posts: 6
Joined: Sun Sep 10, 2017 5:06 am

Re: Disk full, unable to login. I need help

Post by klmn » Sun Sep 10, 2017 9:12 am

Tapping fast the ESC key helped me to get to Grub menu. From start-up this key takes me to a menu where I choose the boot device, after I select the SSD I had to tap it again.
The options from recovery menu helped me to remove around 40 MB. However it does not help to login normally and it still shows me that the drive is full.

I managed to use command "sudo ecryptfs-recover-private" to mount encrypted home folder. It asks for a passphrase otherwise I get the message "Unwrapping passphrase and inserting into the user session keyring failed [-5]"
Where can I find this passphrase?

User avatar
kc1di
Level 14
Level 14
Posts: 5269
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Disk full, unable to login. I need help

Post by kc1di » Sun Sep 10, 2017 9:20 am

This ask ubuntu page may be of help to you.
https://askubuntu.com/questions/562046/ ... ord/562070

also 40mb is not nearly enough you should be able to remove a few GBs at the least.
what does the command in the terminal show

Code: Select all

df
how big is the drive?
Easy tips : https://easylinuxtipsproject.blogspot.com/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

User avatar
michael louwe
Level 10
Level 10
Posts: 3297
Joined: Sun Sep 11, 2016 11:18 pm

Re: Disk full, unable to login. I need help

Post by michael louwe » Sun Sep 10, 2017 11:01 am

@ klmn,.......

The passphrase should be the one you used to encrypt your files.

klmn
Level 1
Level 1
Posts: 6
Joined: Sun Sep 10, 2017 5:06 am

Re: Disk full, unable to login. I need help

Post by klmn » Sun Sep 10, 2017 2:24 pm

@ kc1di - my SSD has 120 GB. I already deleted manually all the deb files I have found in a folder, more than 1 GB was there. I do not understand this ext4 file system, it still shows that I have 0 space available. I deleted a mozilla folder that had over 100 MB and it still shows that I do not have space available.

@ michael louwe - I did not saved this passphrase, I do not even remember this step when I installed Mint. Can I find a back-up on current drive somewhere of this passphrase?

User avatar
Flemur
Level 17
Level 17
Posts: 7090
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Disk full, unable to login. I need help

Post by Flemur » Sun Sep 10, 2017 2:33 pm

klmn wrote:I already deleted manually all the deb files I have found in a folder, more than 1 GB was there. I do not understand this ext4 file system, it still shows that I have 0 space available.
You not doing something right. If you delete more than 1GB you'll have more than 1GB space free.

Just thought of something - ARE YOU DELETING to the TRASH? With a file browser? That's not actually deleting anything until you EMPTY THE TRASH.

Try the "df" that kc1di suggested. After you empty the trash. And root's trash.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

User avatar
kc1di
Level 14
Level 14
Posts: 5269
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Disk full, unable to login. I need help

Post by kc1di » Sun Sep 10, 2017 2:51 pm

copy and past the output of the terminal command

Code: Select all

df -h
so we can see what's going on.
Easy tips : https://easylinuxtipsproject.blogspot.com/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

klmn
Level 1
Level 1
Posts: 6
Joined: Sun Sep 10, 2017 5:06 am

Re: Disk full, unable to login. I need help

Post by klmn » Sun Sep 10, 2017 2:59 pm

Enclosed is a picture taken after I run the suggested command.

rene
Level 11
Level 11
Posts: 3737
Joined: Sun Mar 27, 2016 6:58 pm

Re: Disk full, unable to login. I need help

Post by rene » Sun Sep 10, 2017 3:08 pm

You are still eating into the root-reserved percentage on the root filesystem (5 percent by default). You can temporarily set that percentage to 0 with

Code: Select all

sudo tune2fs -m0 /dev/sda2
If you reboot after doing that I expect you'll be able to start normally, after which you can clean up and set it back to normal with -m5 again.

User avatar
WharfRat
Level 21
Level 21
Posts: 13084
Joined: Thu Apr 07, 2011 8:15 pm

Re: Disk full, unable to login. I need help

Post by WharfRat » Sun Sep 10, 2017 3:56 pm

Just doing apt-get clean should free up enough space to get logged on.
ImageImage

rene
Level 11
Level 11
Posts: 3737
Joined: Sun Mar 27, 2016 6:58 pm

Re: Disk full, unable to login. I need help

Post by rene » Sun Sep 10, 2017 4:16 pm

WharfRat wrote:Just doing apt-get clean should free up enough space to get logged on.
5% of 110G is 5.5G; minus 2G currently free leaves a big apt cache; doubly after 1G of deb files has been manually deleted. I.e., if poster doesn't find a way of freeing up 4G or more in the current state I'd go for the tune2fs.

User avatar
Flemur
Level 17
Level 17
Posts: 7090
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Disk full, unable to login. I need help

Post by Flemur » Sun Sep 10, 2017 10:11 pm

From the console (where you ran the df), try this so we can see where the space is used:

Code: Select all

sudo du -h -d 1 /
(You'll get a few things like
"du: cannot access '/run/user/1000/gvfs': Permission denied"
but that's OK.)

You can also do

Code: Select all

sudo du -d 1 / | sort -n 
to sort the output sizes and put the biggest directories are at the end.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

klmn
Level 1
Level 1
Posts: 6
Joined: Sun Sep 10, 2017 5:06 am

Re: Disk full, unable to login. I need help

Post by klmn » Mon Sep 11, 2017 12:27 am

Thank you all for your support.
After I run the command "sudo tune2fs -m0 /dev/sda2" I managed to login.

One last question, should I increase again the system reserved and what is the recommended size?

Thank you again. Since Friday I was not able to access my files :(

rene
Level 11
Level 11
Posts: 3737
Joined: Sun Mar 27, 2016 6:58 pm

Re: Disk full, unable to login. I need help

Post by rene » Mon Sep 11, 2017 2:23 am

The reserved blocks percentage exists so a user can't completely fill the filesystem; so that root always has a bit of room left to work with. As encountered by you, not always an effective precaution. As mentioned, 5 percent is the default and you can set it back with sudo tune2fs -m5 /dev/sda2 after you have cleaned up your root partition. As to whether or not you should; I would, but YMMV: note the mentioned reason for the reservation and decide for yourself.

User avatar
kc1di
Level 14
Level 14
Posts: 5269
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Disk full, unable to login. I need help

Post by kc1di » Mon Sep 11, 2017 4:42 am

Glad you were able to get back in. Now clean that root partition of not needed stuff.
Also Though some may disagree I'd install ubuntu-cleaner and run it about once a week. It will help keep your system clean.
you can get it through their PPA here:
http://www.omgubuntu.co.uk/2016/12/free ... anitor-app
Easy tips : https://easylinuxtipsproject.blogspot.com/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

Post Reply

Return to “Newbie Questions”