Page 1 of 1

[Solved] login possible only as root

PostPosted: Jun 23rd, '19, 07:10
by JJF
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

Re: login possible only as root

PostPosted: Jun 24th, '19, 18:39
by doktor5000
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.

Re: login possible only as root

PostPosted: Jun 25th, '19, 06:59
by JJF
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

Re: login possible only as root

PostPosted: Jun 25th, '19, 18:24
by doktor5000
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.

Re: login possible only as root

PostPosted: Jun 26th, '19, 06:18
by JJF
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