LinuxQuestions.org
Visit Jeremy's Blog.
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 07-15-2019, 10:44 AM   #106
iNC0GNi70
Member
 
Registered: Apr 2015
Distribution: Slackware64 14.2
Posts: 32

Rep: Reputation: 1

Edited again, yeah I did and I get a prompt.
Hey, eLilo seems to work a lot better so far !
I'll detail as it happens

Last edited by iNC0GNi70; 07-15-2019 at 10:47 AM.
 
Old 07-15-2019, 10:56 AM   #107
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,296

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
at the grub prompt what is the output of
Code:
set
without the quotes. That will give you an indication where grub is looking for the grub.cfg file.
Try this at the grub prompt to get grub menu. change accordingly
Code:
configfile (h0,5)/boot/grub/grub.cfg
should pull up your config file if that is the partition your /boot is on.
sometimes if you have a usb attached will throw grub off
 
1 members found this post helpful.
Old 07-15-2019, 11:20 AM   #108
iNC0GNi70
Member
 
Registered: Apr 2015
Distribution: Slackware64 14.2
Posts: 32

Rep: Reputation: 1
mount /dev/nvme0n1p5 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys

chroot in it with

chroot /mnt /bin/bash
. /etc/profile

grub-install --target=x86_64-efi

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

Everything works ! Thanks man !

Also now just outta curiosity since I never used Slackware with GRUB and especially not with UEFI, how do I create an initrd that will use all the necessary drivers, and load it with grub ?
 
Old 07-15-2019, 11:45 AM   #109
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,296

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
Code:
sh /usr/share/mkinitrd/mkinitrd_command_generator.sh
will give you what you need to run
Code:
mkinitrd
There is also a /etc/mkinitrd.conf.sample that can be edited and saved as /etc/mkinitrd.conf so all you have to remember is
Code:
 mkinitrd -F
will need to run grub-mkconfig again afterwards

Last edited by colorpurple21859; 07-15-2019 at 11:54 AM.
 
Old 07-15-2019, 02:25 PM   #110
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Hey thanks colorpurple21859 for helping out!
glad it's working for you INCOGNi70

I just uploaded a new iso 071519 with hopefully efi support, I did as you said colorpurple21859 with make_grub.sh etc
https://sourceforge.net/projects/sla...acker-current/
 
Old 07-15-2019, 10:33 PM   #111
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,296

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
EFI is worse. With iso files copied to a fat32 formatted usb, I get an efi grub prompt but ls gives no ouput, it appears that the embedded grub modules needed to access the partitions are missing from the /EFI/BOOT/bootx64.efi. I refer you back to post 56 and 57. When using DD to put iso on usb, doesn't give a usb-efi option to boot from the bios boot menu. To fix this I refer you to post 72

In legacy mode works like a champ

Last edited by colorpurple21859; 07-15-2019 at 10:35 PM.
 
1 members found this post helpful.
Old 07-16-2019, 05:50 AM   #112
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
hey colorpurple21859
in post 72 you said hit the iso with isohybrid and isohybrid -u
assuming you mean make two different iso's, one for bios, one for uefi?
 
Old 07-16-2019, 06:06 AM   #113
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
colorpurple see post above too^

ok I made a isohybrid -u after fixing make_grub.sh and editing gen_slackerc_iso.sh and removed the 2.5gb Slackerc.sb so it's like a 50mb iso just kernel/initrd you know please see if it boots for you? By excluding the slackerc.sb we can see if it boots on your machine without the bloated download/upload...
thanks for all your help, here's link for little uefi iso
https://sourceforge.net/projects/sla...files/Testing/

Last edited by linus72; 07-16-2019 at 06:18 AM.
 
Old 07-16-2019, 09:27 AM   #114
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,296

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
[QUOTE]in post 72 you said hit the iso with isohybrid and isohybrid -u
assuming you mean make two different iso's, one for bios, one for uefi?/QUOTE] no, to same iso
 
Old 07-16-2019, 12:28 PM   #115
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
ok thanks I'll re-upload it...it's uploaded thanks for helping!

Last edited by linus72; 07-16-2019 at 12:37 PM.
 
Old 07-16-2019, 06:22 PM   #116
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
colorpurple21859 when I dd the mini iso to usb, in gparted it shows a little fat16 1st partition of like 1.4mb and the rest of the usb shows as unformatted and is labeled "Slackerc" so I think it should work for you?
 
Old 07-16-2019, 09:32 PM   #117
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,296

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
I think the problem was with the EFI/BOOT/make-grub.sh file. To get the Slackerc-071519-uefi-x86_64 to boot in efi mode.

I replaced the EFI/BOOT/make-grub.sh with this one from here http://www.slackware.com/~alien/liveslak/EFI/BOOT opened and changed this line of make-grub.sh
Code:
mv efiboot.img ../../boot/syslinux/
to
Code:
mv efiboot.img ../../boot/isolinux/
removed everthing else out of EFI/BOOT but bootlogo.png, grub-embedded.cfg, initrfs.img, vmlinuz, grub.cfg, make-grub.sh. Removed the old boot/isolinux/efiboot.img

In addition I created a blank Slackerc/slackerc text file
and changed the first line of EFI/BOOT/grub-embedded.cfg to this
Code:
search --file --set=root /Slackerc/slackerc
ran
Code:
sh make-grub.sh
Code:
gen_Slackerc_iso.sh

Last edited by colorpurple21859; 07-17-2019 at 05:21 AM.
 
1 members found this post helpful.
Old 07-16-2019, 09:53 PM   #118
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
ok thank you I'll do this
 
Old 07-18-2019, 09:07 PM   #119
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Thanks to colorpurple21859 Slackerc current is now EFI compatible, and is upgraded to today 07 18 19
kernel 5.1.9-xanmod6 all desktops included in full slackware dvd install, kde, xfce4, fluxbox, blackbox, etc

you can use dd command to install to usb, or Unetbootin, Rufus, copy mounted iso to fat32 or ext4 usb/usb-hdd/ or hard drive (frugal or full install), and install grub (fat32/ext4), syslinux (fat32), or extlinux (ext4).

Persistency on usb or hard drive, see the Docs folder in iso or /root/Desktop
Docs folder contains instructions for frugal install to usb/usb-hdd/hard drive for fat32/ext4/ntfs, install to hard drive, remastering iso, upgrading live kernel/initrfs.img, and grub/lilo example hard drive config and grub example usb config.
so, to install to usb in read-only mode you can use dd or cp to write iso to usb
if booting persistent usb/usb-hdd/hard drive there are instructions.

any comments or reports welcome!
get it here Slackerc-current-071819-x86_64.iso
https://sourceforge.net/projects/sla...acker-current/

also it comes with super grub2 disk from here
https://www.linuxquestions.org/quest...em-4175657567/

Last edited by linus72; 07-18-2019 at 09:16 PM.
 
Old 07-19-2019, 06:47 AM   #120
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Found out last night how to boot the iso from a partition or usb using Grub

Download iso and put it somewhere, in this example it's in my Debian Bullseye /boot folder on sda1
then added this entry to my hard drive grub.cfg

Code:
menuentry "Slackerc Loop" {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  8c93d1f6-eeff-4bba-a743-838f86fd114a
        else
          search --no-floppy --fs-uuid --set=root 8c93d1f6-eeff-4bba-a743-838f86fd114a
        fi
        iso_path="/boot/Slackerc-current-071919-x86_64.iso"
        export iso_path
        kernelopts="   "
        export kernelopts
        loopback loop "/boot/Slackerc-current-071919-x86_64.iso"
        set root=(loop)
        configfile /boot/grub/loopback.cfg
}
then it booted grub.cfg for iso
choose e for edit default Slackerc boot then edit command line and say "from=/boot/Slackerc-current-071919-x86_64.iso"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Announcing Linux-Live-Kit x86_64 Debian Stretch Live XFCE MultiDistro Remasterable/Persistent HDD/USB linus72 Debian 6 04-22-2019 09:05 PM
Slackware 14.1 + XFCE4 - xfce4-notifyd and volume controls Freaksta Slackware 1 08-10-2014 10:00 AM
LXer: G+ "Lets Talk About It" Sunday Featuring Special Guest Dietrich Schmitz LXer Syndicated Linux News 0 04-09-2013 07:30 PM
Script driven Ubuntu 9.10 builds Featuring e17-svn and LXDE ready for download! linus72 Linux - General 38 08-22-2010 04:15 PM
upgrade to slackware 12.2 + xfce4.6 (xfce4-power-manager doesn't work) zux Slackware 4 04-22-2009 11:28 AM

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

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