[Solved] login possible only as root

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

[Solved] login possible only as root

Postby JJF » Jun 23rd, '19, 07:10

After upgrade to Mageia 7 RC from beta 3, I am able to login only as root. Boot ends in text mode asking for root password, after which I can "startx" and continue as root in graphical mode.
The environment is: Mageia 7 RC VirtualBox installed inside Windows 7.
Please advice
JJF
Last edited by JJF on Jun 26th, '19, 06:20, edited 2 times in total.
JJF
 
Posts: 201
Joined: Feb 13th, '14, 11:42

Re: login possible only as root

Postby doktor5000 » Jun 24th, '19, 18:39

JJF wrote: Boot ends in text mode asking for root password

Are you sure you don't end up in a emergency shell ? This can happen due to filesystems that require an fsck (filesystem check) or if they are corrupt.
You should check the logs as advised in that emergency shell via journalctl, to find out the reason why you are dropped to an emergency shell.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15670
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: login possible only as root

Postby JJF » Jun 25th, '19, 06:59

Yes indeed I could boot only as root in emergency state.
I am unable to decipher the meaning of the journalctl report which I partially attach below.


Code: Select all
tail --lines=600 /root/jrnl.tmp | grep 'Jacob'
 

    tail --lines=600 /root/jrnl.tmp | grep 'Jacob'
    Jun 25 07:04:27 localhost systemd[1]: Mounting /mnt/Jacob...
    -- Subject: A start job for unit mnt-Jacob.mount has begun execution
    -- A start job for unit mnt-Jacob.mount has begun execution.
    Jun 25 07:04:28 localhost kernel: CIFS: Attempting to mount //10.0.2.2/Jacob
    Jun 25 07:04:28 localhost systemd[1]: mnt-Jacob.mount: Mount process exited, code=exited, status=32/n/a
    -- An n/a= process belonging to unit mnt-Jacob.mount has exited.
    Jun 25 07:04:28 localhost systemd[1]: mnt-Jacob.mount: Failed with result 'exit-code'.
    -- The unit mnt-Jacob.mount has entered the 'failed' state with result 'exit-code'.
    Jun 25 07:04:28 localhost systemd[1]: Failed to mount /mnt/Jacob.
    -- Subject: A start job for unit mnt-Jacob.mount has failed
    -- A start job for unit mnt-Jacob.mount has finished with a failure.

Also attached is the fsck output
Code: Select all
cat /root/fsck.txt

which was aborted with error
Code: Select all
  e2fsck 1.45.2 (27-May-2019)
e2fsck: Cannot continue, aborting.


I'll appreciate if you can help me
JJF
 
Posts: 201
Joined: Feb 13th, '14, 11:42

Re: login possible only as root

Postby doktor5000 » Jun 25th, '19, 18:24

It's pretty obvious, your system fails to mount a CIFS share (/mnt/Jacob from //10.0.2.2/Jacob) and it's probably not marked with _nofail, hence the system does not continue to boot.
Can you please share your /etc/fstab (please replacedetails like username or password if present with placeholders). For the moment you can comment it out (prefix the line with the mount with a #) in /etc/fstab so you can boot normally.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15670
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: login possible only as root

Postby JJF » Jun 26th, '19, 06:18

Solved
I Commented the 3 lines within fstab pointing to external links and this solved the problem. I can now boot as a "standard" user.
Thanks doktor5000
JJF
 
Posts: 201
Joined: Feb 13th, '14, 11:42


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest

cron