LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-31-2023, 10:46 AM   #1
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Rep: Reputation: Disabled
Toshiba C55 Laptop not booting after install


I have a Toshiba Satellite C55 laptop into which I installed slackware 15.
It will not boot.

I followed
https://docs.slackware.com/howtos:sl..._first_install

and immediately hit a wall.

[code]
bash-5.1# chroot /mnt
chroot: failed to run command ‘/bin/bash’: No such file or directory
bash-5.1#

Code:
bash-5.1# chroot /mnt
chroot: failed to run command ‘/bin/bash’: No such file or directory
bash-5.1#
Code:
bash-5.1# cat /etc/fstab
/dev/sda2   /             ext2     defaults              1 1 
/dev/sda1   /boot/efi     vfat     defaults              1 0 
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0    /mnt/floppy   auto     noauto,owner          0 0
Here is my boot directory

Code:
bash-5.1# ls
README.initrd               config-generic-5.15.19.x64  grub         onlyblue.bmp  vmlinuz
System.map                  config-huge-5.15.19.x64     initrd-tree  onlyblue.dat  vmlinuz-generic
System.map-generic-5.15.19  efi                         initrd.gz    slack.bmp     vmlinuz-generic-5.15.19
System.map-huge-5.15.19     elilo-ia32.efi              inside.bmp   tuxlogo.bmp   vmlinuz-huge
config                      elilo-x86_64.efi            inside.dat   tuxlogo.dat   vmlinuz-huge-5.15.19
bash-5.1#

Any pointers please

Last edited by SAJM; 03-31-2023 at 12:13 PM.
 
Old 03-31-2023, 01:15 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,243

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
Did you install and configure elilo?

Did you install grub?

Have you copied a kernel to /boot/efi/EFI/Slackware ?

If you copied the generic kernel, did you copy the initrd.gz file to the above mentioned directory?

Last edited by camorri; 03-31-2023 at 01:20 PM.
 
Old 03-31-2023, 02:09 PM   #3
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
Did you install and configure elilo?

Did you install grub?

Have you copied a kernel to /boot/efi/EFI/Slackware ?

If you copied the generic kernel, did you copy the initrd.gz file to the above mentioned directory?
All I did was as detailed in my 1st message

I assumed it would all be done like back in the day when lilo was king.

I will address the points you raised
 
Old 03-31-2023, 02:22 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,243

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
Quote:
All I did was as detailed in my 1st message
Making this statement is not helpful. This help file has options, ypou need to telll us exactly what track you took. There are 2 paths, one for mbr drives with BIOS and a different one for GTP and UEFI. Which apth did you take?

Quote:
chroot /mnt
chroot: failed to run command ‘/bin/bash’: No such file or directory
bash-5.1#
This indicates you have not mounted any directorys on /mnt. This only applies to chroot command on a mbr system. If this is a UEFI and GPT setup, I don't see any mnt commands to do.
 
Old 03-31-2023, 02:35 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,391

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
The link you posted is during slackware installation configuration, before rebooting the first time. There is one of two ways to fix from the slackware installer.
1. Manually mount the partitions, mount —bind /dev /proc /sys /run to the same directories on the mounted root partition. Chroot then run grub-install or eliloconfig

Or

2. Start setup select partitions in target but do not format, skip software installation and go straight to configuration. Skip the items you don’t want to reconfigure. Before exiting out configuration open a second terminal, chroot /mnt and run grub-install. A formatted fat32 efi partition mounted on/boot/efi is needed for efi mode
 
Old 03-31-2023, 03:18 PM   #6
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
This indicates you have not mounted any directorys on /mnt.
Is that not what this is?
Code:
bash-5.1# cat /etc/fstab
/dev/sda2   /             ext2     defaults              1 1 
/dev/sda1   /boot/efi     vfat     defaults              1 0 
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0    /mnt/floppy   auto     noauto,owner          0 0
 
Old 03-31-2023, 03:30 PM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,243

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
Quote:
Is that not what this is?
No. This is a listing of fstab. After the kernel gets control, these partitions will be mounted. Without a bootloader installed and configured, this fstab is not used.

chroot is used to mount to fix non-bootable systems. You have to boot from a different medium, in this case the install medium. Have a look at post #5.

The default boot loader is elilo for a UEFI system. The help file you pointed out is to install GRUB2 during install. Grub2 comes with slackware and one way is to follow the instructions in that help file. That will install grub2.

How did you get that listing? Was it from a command prompt while the installer was in control?
 
Old 03-31-2023, 03:37 PM   #8
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post

How did you get that listing? Was it from a command prompt while the installer was in control?
After I installed Slackware 15 I rebooted but no boot device was available. I then rebooted from the install DVD and gained access that way using one of the kernel options
 
Old 03-31-2023, 03:52 PM   #9
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Armed with the above I've now migrated to this:

https://docs.slackware.com/howtos:sl...uefi_and_elilo

It ain't easy!!
 
Old 03-31-2023, 04:08 PM   #10
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
Did you install and configure elilo?

Did you install grub?

Have you copied a kernel to /boot/efi/EFI/Slackware ?

If you copied the generic kernel, did you copy the initrd.gz file to the above mentioned directory?
If these files are essential for an install why on earth are they not installed during the Slackware install process?
It seems impossibly complicated to me for something that lilo did in a minute or less.
 
Old 03-31-2023, 04:59 PM   #11
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,243

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
Hmmm. Let me give you a listing of what a working /boot/efi/EFI/Slackware/ directory has to contain. Here is one from my laptop.

Quote:
/boot/efi/EFI/Slackware# ls -l
total 30157
-rwxr-xr-x 1 root root 342 Mar 23 08:14 elilo.conf*
-rwxr-xr-x 1 root root 239734 Aug 5 2022 elilo.efi*
-rwxr-xr-x 1 root root 2170 Oct 8 2019 general.msg*
-rwxr-xr-x 1 root root 10362424 Mar 23 08:12 initrd-6121.gz*
-rwxr-xr-x 1 root root 2170 Oct 8 2019 params.msg*
-rwxr-xr-x 1 root root 2246 Nov 16 2020 textmenu-message.msg*
-rwxr-xr-x 1 root root 8156384 Mar 23 08:12 vmlinuz-generic-6.1.21*
-rwxr-xr-x 1 root root 12112672 Mar 23 08:13 vmlinuz-huge-6.1.21*
This is from a current install. You are using 15.0. That is recommended for any new user to Slackware. You can see I copied both generic and huge kernls to this directory. I generated an initrd using the command generator at /usr/share/mkinitrd/mkinitrd_command_generator.sh. This .sh file creates a list of a command to create a working initrd.gz file. This is stored in /boot. I copied it along with the kernels I want to use.

You also edit the elilo.conf file. Here is mine.

Quote:
cat elilo.conf
cat: elilo.conf: No such file or directory
root@swifty:/usr/share/mkinitrd# cd /boot/efi/EFI/Slackware/
root@swifty:/boot/efi/EFI/Slackware# cat elilo.conf
chooser=textmenu
default=Generic
delay=50
timeout=50
prompt
message=textmenu-message.msg
#
image=vmlinuz-generic-6.1.21
label=Generic
initrd=initrd-6121.gz
read-only
append="root=/dev/sda3 vga=normal ro"

image=vmlinuz-huge-6.1.21
label=huge
read-only
append="root=/dev/sda3 vga=791"
This file is read by the boot loader, elilo.efi. This file is also in the /boot directory. If you look in /boot, the file is called elilo-x86_64.efi. On the cp command, you rename it to elilo.efi.

This may seem cumbersome, there are some scripts the install instructions tell you to run. They do simplify it, I choose not to use them, and prefer the names of the kernel to be there as they are in the boot directroy. Either can work.

You should read through the install instructions if you prefer to use the scripts.

Quote:
If these files are essential for an install why on earth are they not installed during the Slackware install process?
The installer has no idea if you are installing a 32 bit or 64 bit system. Different things are done for the bitness to be correct. In boot you will see this file elilo-ia32.efi for 32 bit systems. It is not used on 64 bit systems. Lots of possibilities, one installer.
 
Old 03-31-2023, 05:06 PM   #12
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
The directory boot/efi stops there
Do I add the other sub directories .../EFI/Slackware
 
Old 03-31-2023, 07:07 PM   #13
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,243

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
Use mkdir and add them. I think one of the scripts creates them.
 
Old 03-31-2023, 07:13 PM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,391

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
Do I add the other sub directories .../EFI/Slackware
No, don't add the sub-directories.
Quote:
I then rebooted from the install DVD and gained access that way using one of the kernel options
Are you selecting one of the first two entries or are you selecting the "detect/boot any installed operating system"?
 
Old 03-31-2023, 07:21 PM   #15
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Are you selecting one of the first two entries or are you selecting the "detect/boot any installed operating system"?
I would detect any operating system but it never selected one so I just selected the huge kernel manually
 
  


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
install canon mg8620 on Toshiba c55 via usb cable running fedora 28 XFCE nix84 Fedora 3 10-20-2019 05:42 PM
Battery always stuck at 100% in a Toshiba C55-B5200 with Deepin 15.4 alucardx_ Linux Deepin 1 08-20-2017 02:17 PM
Centos 6.6 on Toshiba Satellite C55 screen only uses upper left corner laurat Linux - Laptop and Netbook 1 06-25-2015 10:22 PM
[SOLVED] Trying to disable HDD on Toshiba C55-A5126 nix84 Linux - Hardware 6 06-14-2015 07:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:35 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