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

Notices


Reply
  Search this Thread
Old 03-26-2022, 03:49 AM   #1
slacnovitz
Member
 
Registered: Feb 2022
Posts: 36

Rep: Reputation: 5
can't access tty; job control turned off /# _


Hello again

yesterday I made a kernel-update:

when I now boot in generic, I get this

PHP Code:
no kernel modules found for Linux 5.15.27

...
mount:mounting /dev sda5 on /mnt failed:No such device
ERROR
:  No /sbin/init found on rootdev (or not mounted). 
Trouble aheadYou can try to fix ittype 'exit' when things are done.


/
bin/shcan't access tty; job control turned off
/# _ 
I can't see that I can type a single letter

but I can boot in huge recovery mode (5.15.27 x86_64 (tty1)

has somebody an advise for me how to handle with this issue?

Thanx

Last edited by slacnovitz; 03-26-2022 at 04:05 AM. Reason: more info
 
Old 03-26-2022, 04:01 AM   #2
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 462

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Was a new initrd.gz made for the 5.15.27 kernel?
 
Old 03-26-2022, 04:31 AM   #3
slacnovitz
Member
 
Registered: Feb 2022
Posts: 36

Original Poster
Rep: Reputation: 5
Quote:
Was a new initrd.gz made for the 5.15.27 kernel?
I have to confess, I haven't had the time to read me the doc'syet,...
would I have to consider something in advance?

well when I was supposed to do this init.gz manually, than obviously not...
was this a point in the Beginners guide?
 
Old 03-26-2022, 04:38 AM   #4
slacnovitz
Member
 
Registered: Feb 2022
Posts: 36

Original Poster
Rep: Reputation: 5

I have to update grub... is it this?
 
Old 03-26-2022, 04:45 AM   #5
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 462

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by slacnovitz View Post
would I have to consider something in advance?

well when I was supposed to do this init.gz manually, than obviously not...
was this a point in the Beginners guide?
I can't remember exactly what document it's in off the top of my head.

The good news is, it's a fairly straightforward fix. Go ahead and boot with the huge kernel. Then, run $(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r /boot/vmlinuz-generic) as root. This will make a new initrd for 5.15.27 at /boot/initrd.gz.

It's possible to customize initrd further (the mkinitrd_command_generator man page is a good resource for that), but that'll get you up and running for the time being.
 
Old 03-26-2022, 04:56 AM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
With grub you would have to update grub
Code:
grub-mkconfig -o /boot/grub/brub.cfg
Or to check that the /boot/grub/brub.cfg has the right numbers and paths.
 
Old 03-26-2022, 05:17 AM   #7
slacnovitz
Member
 
Registered: Feb 2022
Posts: 36

Original Poster
Rep: Reputation: 5
Thanks for your answers

while you wrote them I run
Quote:
sudo grub-mkconfig -o /boot/grub/grub.cfg
And now I can't any longer restart the normal way:
when I klick [Log Out) the options [Restart] and [Shut Down]are greyed.
When I press [Log Out] there is a promt :
Quote:
...-GObject.CRITICAL **: 11:08:40.796: g_object_unref:assertion 'G_IS_
This Critical looks very ugly to me

shall I still reboot?
 
Old 03-26-2022, 05:51 AM   #8
slacnovitz
Member
 
Registered: Feb 2022
Posts: 36

Original Poster
Rep: Reputation: 5
Quote:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r /boot/vmlinuz-generic) as root. This will make a new initrd for 5.15.27 at /boot/initrd.gz.
No such file or directory


BTW: can not enable Network, USB are not shown, but foppy (not mounted yet)
 
Old 03-26-2022, 05:58 AM   #9
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 462

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
ls /boot?
 
Old 03-26-2022, 06:06 AM   #10
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,962

Rep: Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573
You installed the system from a dvd or a usb stick? Use it to boot. You get a message telling:
Code:
...
In a pinch, you can boot your system from here with a command like:

boot: huge.s root=/dev/sda1 initrd= ro

In the example above, /dev/sda1 is the / Linux partition.
...
Then you can build the initrd. The instructions in the Slackware Security Advisory for the kernel 5.15.27 update give this command:
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.27 | bash

Last edited by Petri Kaukasoina; 03-26-2022 at 06:10 AM.
 
Old 03-26-2022, 06:09 AM   #11
slacnovitz
Member
 
Registered: Feb 2022
Posts: 36

Original Poster
Rep: Reputation: 5
I decided to be brave enough to logout and login as root just to reboot:

Quote:
This file will self-destruct in five minutes.
MOTD is with me! MOTD by itself is worth this trouble

in case I crash my system now, I still have my boot stick
 
Old 03-26-2022, 06:51 AM   #12
slacnovitz
Member
 
Registered: Feb 2022
Posts: 36

Original Poster
Rep: Reputation: 5
I am able to boot:

MOTH:
PHP Code:
I have great fath in fools -- self confidence my friends call it.
              -- 
Edgar Allen Poe 


but I can't boot generic, so to build the initrd:
can I run this commands
PHP Code:
huge.s root=/dev/sda5 initrdro 
and
PHP Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.27 bash 
in my normal terminal? or shall I use my install-usb?

PS: network works and my usbs are shown again. floppy is gone

Last edited by slacnovitz; 03-26-2022 at 06:54 AM.
 
Old 03-26-2022, 07:07 AM   #13
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,962

Rep: Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573
You don't need 'huge.s root=/dev/sda5 initrd= ro'. It's not a command but it's something you can give as a kernel command line if you have to boot the install usb.
Quote:
Originally Posted by slacnovitz View Post
can I run
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.27 | bash
in my normal terminal?
Yes.
 
1 members found this post helpful.
Old 03-26-2022, 07:30 AM   #14
slacnovitz
Member
 
Registered: Feb 2022
Posts: 36

Original Poster
Rep: Reputation: 5
I ran the command

Quote:
bash: /usr/share/mkinitrid_command_generator.sh: No such file or directory
I forgot an mkinitrd...

Last edited by slacnovitz; 03-26-2022 at 07:34 AM.
 
Old 03-26-2022, 07:44 AM   #15
slacnovitz
Member
 
Registered: Feb 2022
Posts: 36

Original Poster
Rep: Reputation: 5
the boot initrid .gz is created

now it sais :
PHP Code:
Be sure to run lilo again if you us it 
how?
 
  


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] Ubuntu can’t boot. Error: /bin/sh: can’t access tty: job control turned off vpappasmet Ubuntu 2 08-04-2013 06:54 AM
Can't install Feisty - can't access tty; Job control turned off Steel Shepherd Ubuntu 4 04-27-2007 09:16 PM
can't access tty; job control turned off johnnybezak Linux - General 4 02-21-2004 10:49 PM
sh: can't access tty, job control turned off tgardner Linux - Software 1 06-07-2003 12:39 AM

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

All times are GMT -5. The time now is 10:11 AM.

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