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 02-14-2022, 08:45 AM   #1
subscrive
Member
 
Registered: Feb 2022
Posts: 72

Rep: Reputation: 12
Slackware 15.0 installation takes me to grub


Hello

I had debian on my old Asus i3/4GB laptop. Since it was slow and SW 15.0 was available, I backedup my data and used complete 1 TB to install SW.

Problem is that I am taken to grub> prompt during login. This login shows tonnes of options.

Fortunately I had created a USB bootable. Sticking this USB during laptop restart takes me to SW login prompt.

Kindly help to fix this lilo issue.

Br
 
Old 02-14-2022, 09:16 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,420

Rep: Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602
Post the following:
Code:
cat /etc/fstab
cat /sys/firmware/efi
And as root
Code:
parted -l

Last edited by colorpurple21859; 02-14-2022 at 09:17 AM.
 
Old 02-14-2022, 03:33 PM   #3
subscrive
Member
 
Registered: Feb 2022
Posts: 72

Original Poster
Rep: Reputation: 12
Code:
bash-5.1$ cat /etc/fstab
/dev/sda2        swap             swap        defaults         0   0
/dev/sda1        /                ext4        defaults         1   1
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       nosuid,nodev,noexec 0   0
bash-5.1$ cat /sys/firmware/efi
cat: /sys/firmware/efi: Is a directory
bash-5.1$ parted -l
bash: parted: command not found
bash-5.1$ su
Password: 
bash-5.1# parted -l
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  993GB   993GB   ext4
 2      993GB   1000GB  6993MB  linux-swap(v1)        swap


Model: Generic Flash Disk (scsi)
Disk /dev/sdb: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  17.8MB  16.8MB  primary  fat16        boot


bash-5.1#

Last edited by subscrive; 02-14-2022 at 04:48 PM.
 
Old 02-14-2022, 04:11 PM   #4
subscrive
Member
 
Registered: Feb 2022
Posts: 72

Original Poster
Rep: Reputation: 12
bash-5.1$ cat /etc/fstab && cat /sys/firmware/efi
/dev/sda2 swap swap defaults 0 0
/dev/sda1 / ext4 defaults 1 1


(Trying to make this readable with good spacing. But )

Last edited by subscrive; 02-14-2022 at 04:14 PM.
 
Old 02-14-2022, 04:30 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657
Quote:
Originally Posted by subscrive View Post
(Trying to make this readable with good spacing. But )
If you put it within [code][/code] tags, it will keep your spacing.

Code:
bash-5.1$ cat /etc/fstab && cat /sys/firmware/efi
/dev/sda2        swap             swap        defaults         0   0
/dev/sda1        /                ext4        defaults         1   1
 
1 members found this post helpful.
Old 02-14-2022, 08:57 PM   #6
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,823

Rep: Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988
Did you use EFI?
Code:
bash-5.1# fdisk -l | grep EFI
 
Old 02-14-2022, 09:10 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,420

Rep: Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602Reputation: 1602
The bootable usb is booting the system in uefi mode and it appears that the system was installed in legacy mode as there is no efi partition and no mention of problems during installation.

as root run the following
Code:
grub-install --target=i386-pc --force /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
you will get message about blocklist, however should get message the installation finished.

If you prefer lilo run liloconfig

Last edited by colorpurple21859; 02-14-2022 at 09:11 PM.
 
Old 02-14-2022, 10:13 PM   #8
KeithE
Member
 
Registered: Jan 2003
Location: Mesa, AZ
Distribution: Linux Mint
Posts: 155

Rep: Reputation: 35
Quote:
Originally Posted by colorpurple21859 View Post
The bootable usb is booting the system in uefi mode and it appears that the system was installed in legacy mode as there is no efi partition and no mention of problems during installation.

as root run the following
Code:
grub-install --target=i386-pc --force /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
you will get message about blocklist, however should get message the installation finished.

If you prefer lilo run liloconfig
I tried to install Slackware 15 over Mint 20.3 on my HP Envy laptop and had the same issue, even though ELILO was installed in the UEFI partition. As my laptop is a 64-bit machine, will liloconfig work with ELILO (This is the first time I've used it)?
 
Old 02-14-2022, 10:25 PM   #9
LinBox2013
Member
 
Registered: Sep 2013
Location: Southern Kentucky
Distribution: Arch
Posts: 119

Rep: Reputation: 45
Quote:
Originally Posted by KeithE View Post
I tried to install Slackware 15 over Mint 20.3 on my HP Envy laptop and had the same issue, even though ELILO was installed in the UEFI partition. As my laptop is a 64-bit machine, will liloconfig work with ELILO (This is the first time I've used it)?
You should skip installing a bootloader. Reboot and use the install media to boot into the system and run (as root):


grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB

Than:

grub-mkconfig -o /boot/grub/grub.cfg

Than:

cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

You should be able to reboot into a working system. These are the steps I took.

Last edited by LinBox2013; 02-14-2022 at 10:27 PM.
 
1 members found this post helpful.
Old 02-14-2022, 10:33 PM   #10
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,823

Rep: Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988
Quote:
Originally Posted by KeithE View Post
I tried to install Slackware 15 over Mint 20.3 on my HP Envy laptop and had the same issue, even though ELILO was installed in the UEFI partition. As my laptop is a 64-bit machine, will liloconfig work with ELILO (This is the first time I've used it)?
If you are using EFI then check:
Code:
bash-5.1# efibootmgr
See what "BootCurrent: XXXX" is.
May need to change boot order. XXXX is the number after Boot like Boot0000. Then do this to change it:
Code:
efibootmgr -o 0000

Last edited by RadicalDreamer; 02-14-2022 at 10:34 PM.
 
1 members found this post helpful.
Old 02-14-2022, 10:46 PM   #11
KeithE
Member
 
Registered: Jan 2003
Location: Mesa, AZ
Distribution: Linux Mint
Posts: 155

Rep: Reputation: 35
Thanks, LinBox2013 and RadicalDreamer. I'll give both of your suggestions a shot.
 
1 members found this post helpful.
Old 02-14-2022, 10:54 PM   #12
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,823

Rep: Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988
Quote:
Originally Posted by KeithE View Post
Thanks, LinBox2013 and RadicalDreamer. I'll give both of your suggestions a shot.
I'm using elilo. The code for Slackware would be found with this
Code:
bash-5.1# efibootmgr | grep Slackware
I forgot to tell you that you are supposed to use eliloconfig with elilo. It copies the vmlinuz from /boot/ to /boot/efi/EFI/Slackware/ and registers elilo to NVRAM. The vmlinuz needs to be copied to /boot/efi/EFI/Slackware/ each kernel update, and initrd.gz does to if you are using the generic kernel.

Last edited by RadicalDreamer; 02-14-2022 at 10:56 PM.
 
Old 02-15-2022, 03:49 PM   #13
subscrive
Member
 
Registered: Feb 2022
Posts: 72

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by RadicalDreamer View Post
Did you use EFI?
Code:
bash-5.1# fdisk -l | grep EFI
bash-5.1# whoami
root
bash-5.1# fdisk -l | grep EFI
bash-5.1#
 
Old 02-15-2022, 04:05 PM   #14
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,823

Rep: Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988
Quote:
Originally Posted by subscrive View Post
bash-5.1# whoami
root
bash-5.1# fdisk -l | grep EFI
bash-5.1#
Did you install grub to EFI because the bootloader would be registered in your NVRAM? I'd reset the NVRAM if that is what you did or use elilo or grub with Slackware and set the bootloader to them with efibootmgr.

If it is using EFI then I would think that efibootmgr would show grub as being BootCurrent if you used the command efibootmgr in terminal as root.

I'm confused because I would think that lilo would overwrite whatever was installed on mbr.
 
1 members found this post helpful.
Old 02-16-2022, 06:28 AM   #15
subscrive
Member
 
Registered: Feb 2022
Posts: 72

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by RadicalDreamer View Post
I'm confused because I would think that lilo would overwrite whatever was installed on mbr.
#MeToo (), but I guess it didnt. Better to reinstall, since HDD is anyways without personal data.
 
1 members found this post helpful.
  


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
Hibernation takes ~10 seconds only once after a reboot; After resume, it takes about 3-4 minutes. geni4u Linux - Laptop and Netbook 10 01-21-2018 01:07 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
LXer: Stella takes CentOS (which takes RHEL) and adds many of the desktop packages you're missing; a LXer Syndicated Linux News 0 08-11-2012 10:33 PM
Benchmarking a tape drive, time to copy takes forever, time to append takes longer? jeriryan Linux - Hardware 2 06-15-2008 12:15 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

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

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