LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 10-06-2023, 10:04 PM   #1
Blitzkiller
LQ Newbie
 
Registered: Oct 2023
Posts: 1

Rep: Reputation: 0
Stuck on a problem for months because i forget the password


Good day

I was trying to install Slackware but I have a problem, when I was set up the user root and the visual interfaz I forget the password therefore I try to fix in other ways that I dont remeber good, the problem is this, I turn on the computer and the first screen is this:

GNU GRUB Version 2.06
grub>

I figured that I can boot into the system if I run this comands:

insmod all_video
set root=(hd0,gpt3);
linux /boot/vmlinuz root=/dev/sda1 nomodeset
initrd /boot/initrd.gz;
boot

After that, the screen show me this:

modprobe: ERROR: could not insert ´ext4: Exec format error
mount: mounting /dev/sda1 on /mnt failed: Invalid argument.
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
You can try to fix it. Type ´exit´ when things are done.

/bin/sh: cant acces tty: job control turned off
/#

Thing that I know:

This envioremen the system is not monted in rewrite
The problem is not in init command
The problem is at the grub boatloader

I try to restore the factory settings but was useless, do you have any idea what can I do?

Thank you beforehand
 
Old 10-07-2023, 12:35 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
You do have a grub problem but you solved it temporarily with the instructions you gave. The error messages which you then got came from the kernel, not from grub. But for some reason, the kernel couldn't load the ext4 filesystem driver module from the initrd and therefore couldn't mount the root partition.

Restoring factory settings was a waste of time; it only affects the firmware, not the bootloader on disk. In this kind of situation the usual procedure is to boot from a rescue image on a CD or memory stick and repair the system from there. You could, for example, have set a new root password that way. But as this is a completely new system, perhaps reinstalling would be easier than trying to fix it. Especially as you/we have no idea what you have done to the system "in ways you can't remember".

Writing down the root password and storing it in a safe place is also useful. Don't beat yourself up, we've all been there.

Last edited by hazel; 10-07-2023 at 12:36 AM.
 
Old 10-07-2023, 04:12 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,498

Rep: Reputation: Disabled
As suggested above, re install, & write down your passwords....
 
Old 10-07-2023, 04:31 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by Blitzkiller View Post
insmod all_video
set root=(hd0,gpt3);
linux /boot/vmlinuz root=/dev/sda1 nomodeset
initrd /boot/initrd.gz;
boot

modprobe: ERROR: could not insert ´ext4: Exec format error
That error means initrd tries to load module ext4 but the module in initrd is not compiled for the kernel version you boot. You could try to load the huge kernel which has ext4 built in. Change the linux command to
Code:
linux /boot/vmlinuz-huge root=/dev/sda3 nomodeset ro
and don't use the initrd command at all.

Edit: changed root= kernel parameter. Without initrd you need to point kernel to the correct root partition.

Last edited by Petri Kaukasoina; 10-07-2023 at 06:00 AM.
 
1 members found this post helpful.
Old 10-07-2023, 05:41 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
Thanks, Petri! You've explained the one bit of the kernel message that I couldn't understand.
 
Old 10-07-2023, 05:59 PM   #6
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
How is it with runlevel 1 in Slackware actually? In some other distroes, runlevel 1 allows you to get a root "maintenance" console without having to log in with a password, so you can change the password there. Is this also the case in Slackware?
 
Old 10-08-2023, 02:30 AM   #7
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by zeebra View Post
How is it with runlevel 1 in Slackware actually? In some other distroes, runlevel 1 allows you to get a root "maintenance" console without having to log in with a password, so you can change the password there. Is this also the case in Slackware?
No, you need to log in even in run level 1.

Instead, you could append 'init=/bin/sh' to the kernel command line to get a root command line without login. At least on systems booting without initrd.

(The OP got a similar command line of the initrd system. That does not help without access to the ext4 root disk.)

Last edited by Petri Kaukasoina; 10-08-2023 at 02:33 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] screen blinking with i915... stuck for months... about to throw away my laptop gonny95 Linux - Hardware 15 09-15-2014 04:18 AM
i forget my root password. how to login in root account with new password in red hat. balajiraja Linux - Desktop 3 08-22-2012 01:41 AM
Xwindows - Stuck At 640x480 For 2 Months :( ligerdude Linux - Newbie 8 10-11-2005 08:11 PM
cannot login because file system check fails because of bad magic number trutnev Linux - Newbie 1 03-23-2004 06:44 PM
I forget my password barDo LQ Suggestions & Feedback 1 10-26-2001 05:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration