You are not logged in.
Hi
After a forced reboot (the computer was hanging on external HD removal), I end up with the following message on each boot:
Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.
Press Enter to continue.
I do not know what to do - please note I have LVM partitions.
I found these 2 posts in successive order:
- https://forums.bunsenlabs.org/viewtopic.php?id=3926
- https://forums.bunsenlabs.org/viewtopic … 737#p55737
but when I tried to chroot but fdisk -l returns:
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied
fdisk: cannot open /dev/mapper/dgneb--vg-root: Permission denied
fdisk: cannot open /dev/mapper/dgneb--vg-var: Permission denied
fdisk: cannot open /dev/mapper/dgneb--vg-swap_1: Permission denied
fdisk: cannot open /dev/mapper/dgneb--vg-tmp: Permission denied
fdisk: cannot open /dev/mapper/dgneb--vg-home: Permission denied
fdisk: cannot open /dev/loop0: Permission denied
Can anybody please help?
Thanks
Last edited by beng (2019-01-07 13:03:43)
Offline
your phrasing is a little unclear:
can you still use the computer, i.e. does the boot evtl. continue?
in any case, the usual first step is to compose a search phrase from the error message and start reading some.
it also asks you to read
man 8 sulogin
did you?
Last edited by ohnonot (2019-01-07 01:11:43)
Offline
Hi
No, the boot won't go any further; i cannot use the computer.
I searched the board with the message and it returned the 2 posts mentioned in my own post andbegan to proceed as reported there (chroot);
read "man 8 sulogin" @ http://manpages.org/sulogin/8 but i do not know what to make of it hence my post.
Thanks
Offline
Maybe the message before the "cannot open..." is the one to look at. If you don't see the previous messages, try editing the grub boot line to make the boot more verbose:
At the grub boot screen, select the entry you want to debug and press e
Scroll down the code to the line that starts with 'linux', and delete the word 'quiet', then press the key to boot (I forget, but it's written there).
Maybe there will be a hint in the boot messages.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Offline
Have a read of this here: https://www.freedesktop.org/software/sy … rvice.html
May help.
You should let us know what is your computer system setup - hardware/software etc?
Also in your screen shot it mentions below quote, what is the output of that if you are able to get a screen of it?
See 'systemctl status "systemd-fsck@dev...\x2d24c3024cd038.service"' for details,
And what is the output view of
journalctl -xb | tail -n 30
^ above will print tail end from the last 30 lines, you can increase the number if it helps debug, usually you can get issue info from the remainder of the output in my experience.
Last edited by S7.L (2019-01-07 15:11:01)
Offline
Hi S7.L
Thanks but how do i log in to find out what journalctl -xb returns
please?
"What is your computer system setup?"
Dell latitude laptop, 8gb ram, 320gb ssd drive..
Used as a daily runner
Offline
filesystem check (aka fsck) failed.
you should probably boot live and check your filesystems manually and see what you get.
hard disk dying?
Offline
Hi S7.L
Thanks but how do i log in to find out what journalctl -xb returns
please?"What is your computer system setup?"
Dell latitude laptop, 8gb ram, 320gb ssd drive..
Used as a daily runner
I dont know much about this but ill try to help.
I think by default when you install bunsenlabs the root account is locked out and the user does not have a choice to implement it. I could be wrong however, i haven't installed bl for awhile. So the problem could be that you are locked out of the root account so unable to login to console. You might be able to use sulogin --force when you chroot but i dont know as it may not be patched yet as per below debian bug report in link.
Offline
thanks S7.L & Bearded_Blinder
You might be able to use sulogin --force when you chroot
but how can I use it when I cannot chroot - see bottom of initial post?
Is there an option at the very first boot screen (the blueish/grey one with the 4 options, bunsenlabs, bunsenlabs recovery, bunsenlabs tty...) that will allow me some kind of access?
Alternatively from BL live?
thanks for your efforts
Last edited by beng (2019-01-08 13:07:02)
Offline
Hi Beng,
ok so if you want to allow the root account you follow up what bearded blunder mentions.
Also i think you will need to make sure keyboard is set to US otherwise you may not be able to type anything at the bash prompt.
Typed commands in red...
when grub screen appears (blueish/grey one with the 4 options, bunsenlabs) type e
then go to the end of the line with your cursor that starts with linux, the end of the line should have ro quiet after that type this init=/bin/bash then press f10
once you are at the root@(none) prompt type the following mount -n -o remount,rw /
the after that type passwd root and choose your password, make it a good one and write it down and hide it somewhere you can find it.
then type reboot -f
See how that goes and if you can get control back to further investigate.
I can confirm i was able to get root access with this method although i dont have lvm partitions so your results may vary.
Last edited by S7.L (2019-01-08 14:55:10)
Offline
I don't care what you do at home. Would you care to explain?
Offline
Hi
pressed e in grub and my linux line ends with
...root=/dev/mapper/dgneb--vg-root ro quiet
is the "ro quiet" expected here?
I'm trying to get into rescue mode so I can have a look at my fstab...
thanks
Last edited by beng (2019-01-09 09:26:37)
Offline
^the 'ro' is fine, but if you want to see more messages just remove the 'quiet' before booting.
(The change will only apply for this boot.)
But, if you want a root shell, then follow S7.L's advice and add init=/bin/bash to the end of the line.
EDIT: sorry, I forgot, if you want to make changes to your system from that root shell then either follow S7.L's instructions above or edit that 'ro' in the boot line to 'rw'.
Last edited by johnraff (2019-01-09 09:41:41)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Hi johnraff
The idea is to review the /etc/fstab as I suspect the issue could be there (it came up following the removal of an external Hard Drive); in the meantime I also found this (point 7):
https://raspberrypi.stackexchange.com/q … to-console
so, partially following S7.L instructions, I will go:
grub booting --> press "e"
at the end of the line that starts with linux, i will add:
init=/bin/bash
then press f10
once at the root@(none) I will type:
mount -n -o remount,rw /
(this will make my filesystem writable)
Here I do not want to set a password for root but merely review my fstab, so I will type:
nano /etc/fstab
review the fstab make changes if necessary
then type
reboot -f
what do you reckon - any comments?
thanks
Last edited by beng (2019-01-09 10:38:22)
Offline
^ what Johnraff said is correct also beng.
EDIT: You have to enter a password to unlock the root account, otherwise you still wont be able to access anything as it is still locked...
.
.
.
Slightly off topic...
Maybe this root account locked is something that could be mentioned in the bl-welcome or is it already, i cant recall?
Its quite a alarming hack that grub command to get into root access like that but as has been said already, you physically lose your computer its end game. This is why i would rather have encrypted usb keys and files on the hdd with anything of a sensitive nature. I generally use pretty hard to crack encryption via veracrypt using diceware style pass phrases and generate a keyfile as well.
A good password is something like "slit mountain murkiness pacific semester freebase"
but not many people could be bothered to go to that length these days and by diceware status that pass length and type is just good not excellent.
Another usefull tool is pam usb, where your system cannot be unlocked at all without the specially created usb key.
diceware= http://world.std.com/~reinhold/diceware.html
pam usb= http://www.pamusb.org/
Last edited by S7.L (2019-01-09 11:03:05)
Offline
Ok, now i have
give root password for maintenance or press ctrl+d to continue
Provuded the password creted before but how can i return to my usual system...
Offline
Ok, now i have
give root password for maintenance or press ctrl+d to continue
Provuded the password creted before but how can i return to my usual system...
So did you complete "passwd root" ?
Offline
I did
and now:
I end up with
give root password for maintenance or press ctrl+d to continue
i type in the password I created and I have $ root@dgneb
Offline
Is the @OP is asking how to start the user's graphical desktop?
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline