Help, something has really screwed up!

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
Neilz
Level 1
Level 1
Posts: 9
Joined: Tue Nov 08, 2016 6:47 am

Help, something has really screwed up!

Postby Neilz » Thu Nov 09, 2017 4:23 am

Hi guys. I have a PC which I dual boot into either Mint or Win8.1. One day I shut down, then when I restarted both my Linux and Win users were screwed, I couldn't get either to work properly. With Windows, I eventually managed to fix the issue by creating a new user and transferring all my user data over, and now eventually everything is running back to normal. But with Linux, it's really screwed, and I have no idea how to go about fixing it. Here's what happens:

When I boot, first I get this message:

"Press F to attempt to fix the erros, I to ignore, S to skip mounting, or M for manual recovery"

At this point I generally press I to ignore, as none of the other options seem to achieve anything.

Next I either get to the Mint login screen, and when I login, I get this:

"MDM could not write to your authorisation file. This could mean that you are out of disk space or that your home directory could not be opened for writing"

or this (or a combination of both):

"Could not start the X server (your graphical environment) due to some internal error"

If I reboot, this goes round in circles, but on rare occasions I have actually been able to login successfully. That seems to be getting rarer though, today I can't get in at all.


Please, any suggestions on what's gone wrong or how I can fix this would be really appreciated!


Edit: the other message I see regurlarly on the console is: "Error in locking authority filee /home/neilz/.Xauthority"

Lysander666
Level 2
Level 2
Posts: 84
Joined: Mon Apr 10, 2017 7:06 am

Re: Help, something has really screwed up!

Postby Lysander666 » Thu Nov 09, 2017 9:31 am

You need to tell us exactly what you did beforehand [i.e. which file(s) you messed with] in order for this error to occur. Do not say "I didn't do anything" because these errors are symptomatic of someone changing something within important system-level files.
Debian 9.2 Stretch + Ubuntu 16.04 / Solus 1.2.1 / Mint 18.1 / Slackware 14.2

Neilz
Level 1
Level 1
Posts: 9
Joined: Tue Nov 08, 2016 6:47 am

Re: Help, something has really screwed up!

Postby Neilz » Thu Nov 09, 2017 9:45 am

The honest truth is I have no idea. Turned off one night, then turned on the next day. Only thing I can think of is, I may have turned off the power before the system had shut down properly, but it's just a guess.

I'm suspecting my hard drive might have issues, and considering a whole new build.

Lysander666
Level 2
Level 2
Posts: 84
Joined: Mon Apr 10, 2017 7:06 am

Re: Help, something has really screwed up!

Postby Lysander666 » Thu Nov 09, 2017 10:22 am

Neilz wrote: Only thing I can think of is, I may have turned off the power before the system had shut down properly, but it's just a guess.


You would have likely received a different message if that had caused a problem.

Neilz wrote:I'm suspecting my hard drive might have issues, and considering a whole new build.


I don't think that's necessary at this stage [not unless SMART comes up with a tonne of reallocated sectors]. I would recommend Googling the error message

Error in locking authority file /home/neilz/.Xauthority

Permissions for X have changed and need be reverted.

Try

https://askubuntu.com/questions/165921/ ... -04/166115
https://bbs.archlinux.org/viewtopic.php?id=73552
https://unix.stackexchange.com/question ... ty-file-ho
Debian 9.2 Stretch + Ubuntu 16.04 / Solus 1.2.1 / Mint 18.1 / Slackware 14.2

User avatar
Termy
Level 3
Level 3
Posts: 141
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Help, something has really screwed up!

Postby Termy » Thu Nov 09, 2017 10:23 am

Sounds like the permissions are messed up, for some reason. Did you run a chmod command recently? Well, looks like someone beat me to it. :P
Here to help.

User avatar
WharfRat
Level 19
Level 19
Posts: 9902
Joined: Thu Apr 07, 2011 8:15 pm

Re: Help, something has really screwed up!

Postby WharfRat » Thu Nov 09, 2017 10:25 pm

Neilz,

The message "Press F to attempt to fix the erros, I to ignore, S to skip mounting, or M for manual recovery" will occur when a partition cannot be mounted

Since you also get "MDM could not write to your authorisation file. This could mean that you are out of disk space or that your home directory could not be opened for writing" is it possible that you setup a separate /home partition :?:

Boot to the live media and paste back the results of sudo blkid
Image ImageImage

Lysander666
Level 2
Level 2
Posts: 84
Joined: Mon Apr 10, 2017 7:06 am

Re: Help, something has really screwed up!

Postby Lysander666 » Fri Nov 10, 2017 6:20 am

Neilz wrote:I may have turned off the power before the system had shut down properly.


Considering that systemd shuts the OS down in a matter of seconds, I don't see how this is possible.
Debian 9.2 Stretch + Ubuntu 16.04 / Solus 1.2.1 / Mint 18.1 / Slackware 14.2

User avatar
prestonR
Level 5
Level 5
Posts: 705
Joined: Wed Jan 07, 2015 12:24 pm
Location: Harare

Re: Help, something has really screwed up!

Postby prestonR » Fri Nov 10, 2017 7:02 am

It's worth checking if your linux partition is out of space. This may have happened due to some error that has caused some log files to drastically increase in size.

- boot a Mint LiveUSB
- run Gparted and have a look at the linux partition

Mute Ant
Level 12
Level 12
Posts: 4084
Joined: Tue Sep 03, 2013 7:45 pm

Re: Help, something has really screwed up!

Postby Mute Ant » Fri Nov 10, 2017 9:40 am

"At this point I generally press I to ignore." Linux has detected Something Horrible (TM) in the file system and can't fix it without your help... your approval to delete the damaged parts really. If you are all backed up, you can try F and just say 'Yes' to any questions it asks. If there's something you need to rescue, a Live Session is the friendly Point-&-Click method if there's no encryption involved.

The "xauthority" and "xserver" errors are a symptom of ignoring the warning from Linux, which has mounted the root file system as Read-Only. It won't risk writes until the Something Horrible is fixed. With a read-only /home folder and a read-only /tmp folder it just can't start Xorg.
Armageddon only happens once, you know. They don’t let you go around again until you get it right.


Return to “Newbie Questions”

Who is online

Users browsing this forum: cogsncogs, ralplpcr and 23 guests