LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   "Give root password for maintenance or press CTRL+D to continue" problem enter root password (https://www.linuxquestions.org/questions/slackware-arm-108/give-root-password-for-maintenance-or-press-ctrl-d-to-continue-problem-enter-root-password-4175595852/)

ag33k 12-21-2016 06:57 AM

"Give root password for maintenance or press CTRL+D to continue" problem enter root password
 
Hello,

I had seen this message a lot of times on Slackware and now in SlackwareARM:

"Give root password for maintenance or press CTRL+D to continue"

When I enter the root password it doesn't work! Never worked!

I think is a problem with my keyboard layout. Maybe isn't configured at that time.

In Slackware isn't a big problem.

I always have USB pen drive with Slackware on it, with me. I boot from the USB pen drive and use fsck and problem solved.

But in SlackwareARM I can't do this! Or at least I don't know how to do it.

There is any way to solve this?

Or I have to search a way to boot from an USB pen drive in my RPi just to solve this sort of things?

glorsplitz 12-21-2016 07:57 AM

"Give root password for maintenance or press CTRL+D to continue"

What was going on with your system when this message appeared. Was system in X, command line, booting?

ag33k 12-21-2016 10:41 AM

Sorry about the lack of details!

It is a problem with fsck at boot.

It started booting and checking one of my sdcard partitions but it didn't finished.
And I received that message.
I entered the root password and nothing happened!

In Slackware I already experienced the same problem with fsck. And I use a Slackware Install USB pen drive.

In SlackwareARM I removed the card and made the fsck in other computer using a micro SD card reader.

I think the problem is that the keyboard layout is not configured at the time. And because of that I can't enter my root password correctly.

BTW: This RPi is a RPi 3.

hazel 12-21-2016 11:09 AM

I notice that you're Portuguese. Presumably you use a native keymap, but at this stage the startup scripts are expecting a standard US keyboard. I can think of two possible ways round this:

1) Set the console keymap to be US but use Portuguese in X, where I assume you do most of your work.
2) Learn the US mapping of your root password and use that.

Penthux 12-21-2016 01:24 PM

Quote:

Originally Posted by hazel (Post 5644744)
I notice that you're Portuguese. Presumably you use a native keymap, but at this stage the startup scripts are expecting a standard US keyboard. I can think of two possible ways round this:

1) Set the console keymap to be US but use Portuguese in X, where I assume you do most of your work.
2) Learn the US mapping of your root password and use that.

Would specifying "kbd=pt" in the 'cmdline.txt' file before booting also achieve this? Better destructions: http://sarpi.fatdog.eu/index.php?p=preinstall

drmozes 12-21-2016 02:42 PM

Quote:

Originally Posted by Penthux (Post 5644797)
Would specifying "kbd=pt" in the 'cmdline.txt' file before booting also achieve this? Better destructions: http://sarpi.fatdog.eu/index.php?p=preinstall

No because that is not an official Kernel parameter (linux-x.x.x/Documentation/kernel-parameters.txt): it's set as a helper for the installer.
Also the key map is not loaded by rc.keymap until rc.M - fsck is run in rc.S.

You could boot back in to the installer to fix this.

Penthux 12-21-2016 06:07 PM

Quote:

Originally Posted by drmozes (Post 5644823)
No because that is not an official Kernel parameter (linux-x.x.x/Documentation/kernel-parameters.txt): it's set as a helper for the installer.
Also the key map is not loaded by rc.keymap until rc.M - fsck is run in rc.S.

You could boot back in to the installer to fix this.

Ah, my bad. I must admit I've got installers on the brain lately. :doh:

louigi600 12-23-2016 03:19 AM

On slackwarearm rc.keymap is executed from rc.M and it defaults to UK map while the fsck stuff is done from rc.S.
I suppose you could force a
Code:

/usr/bin/loadkeys pt.map
somewhere in rc.S before the fsck stuff is done.

ag33k 01-04-2017 07:45 PM

The easiest solution that I could find:

Get an US keyboard and plug it on a USB port just for this!

Unplugged it after the fsck is done!

SCerovec 01-12-2017 04:23 PM

and there are quite handy USB to wireless keyboards that fit in a pocket these days ;)
with a sweep-pad even!


All times are GMT -5. The time now is 12:58 AM.