I want to create a Slackware tools DVD that will boot BIOS and UEFI
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to create a Slackware tools DVD that will boot BIOS and UEFI
I want to create a Slackware tools DVD that will boot BIOS and UEFI. I created a directory for staging and copied all of the slackwareX64 DVD into it excluding Slackware64 (all the packages). I then added by own directory of tools. I searched several threads on how to recreate the DVD. I then used mkisofs to create an ISO. After I burn it to DVD it will boot UEFI and I press ENTER to the “Slackware 14.2 huge.s kernel” message. I get the “Loading huge.s kernel and installer initrd. Please wait…”. After several seconds I get “error: failure reading sector 0x15ed0 from ‘cd0’.”
I have tried several examples from threads that give me the same result. I even downloaded xorriso and tried several examples from other threads. I think I must be missing some small detail but I can’t seem to get to the correct arguments for mkisofs or xorriso to make this work.
I’m using a Dell OptiPlex 3020 that boots the original SlackwareX64 DVD in both BOIS and UEFI.
can anyone point me to the correct arguments for mkisofs?
unfortunately my end result needs to be a DVD. i can't use any USB flash devices. i need to burn a DVD with these new tools on it. is it possible to create a DVD that will perform the same way
This how to do the efi part of it with your /boot/syslinux and isolinux already setup. If your dvd already boots in legacy mode for efi mode extract the contents back out then:
1. Make A EfI/BOOT with your grub.cfg and a grub-embedded.cfg file
in the same directory your dvd boot directory is in.
2. Edited the EFI/BOOT/grub-embedded.cfg to search for a unique filename or directory similar to this
Code:
search --file --set=root /<unigue directory/filename
set prefix=($root)/EFI/BOOT/
so the when the dvd boots it can find EFI/BOOT. I've been helping linus72 with the slackerlive that linus72 has been working on to boot in efi mode, I used
Code:
search --file --set=root /Slacker/vmlinuz
set prefix=($root)/EFI/BOOT/
The Slackware64 install uses
Code:
search --file --set=root /kernels/huge.s/bzImage
set prefix=($root)/EFI/BOOT/
as examples
3. Download the /EFI/BOOT/make-grub.sh from Alien Bob liveslak repository and put it in the DVD EFI/BOOT/.
4. cd to the dvd EFI/BOOT and run the make-grub.sh. The make-grub.sh builds the /EFI/BOOT/bootx64.efi and creates a efiboot.img and copies it to /boot/syslinux/
i started with a fresh "full" slackware install (wiping the old out). i created "/iso/disk1". i copied the entire slackwarex64 DVD into disk1. i created a script so that i can modify/repeat until i get it correct. i downloaded alian bob's make-grub.sh and put it in the root along with go.sh. i ran it capturing the output into output.txt. i kept the third option "unmodified" grub-embedded.cfg
i still get the same thing when booting. it produces this message several seconds after pressing ENTER to the grub menu: “error: failure reading sector 0x15ed0 from ‘cd0’.”
i'm not exactly a newbie. i started using slackware when it came out on floppies. this is the first time in 25 years i have needed extra help! i totally appreciate all your help
go.sh
#!/bin/bash
if [ "$1" == "setup" ]
then
# start clean
rm -fr /iso/disk1
mkdir /iso/disk1
read -p "insert the slackwarex64 DVD >" KBD
mount /dev/sr0 /mnt
# copy everything
cp -r /mnt/* /iso/disk1
umount /mnt
else
ls -l /iso/disk1
# copy alian bob's make-grub.sh
cp /make-grub.sh /iso/disk1/EFI/BOOT
cd /iso/disk1/EFI/BOOT
./make-grub.sh
ls -l ../../boot/syslinux
output.txt
total 2428
-rw-r--r-- 1 root root 10064 May 23 14:25 ANNOUNCE.14_2
-rw-r--r-- 1 root root 12785 May 23 14:25 CHANGES_AND_HINTS.TXT
-rw-r--r-- 1 root root 380398 May 23 14:25 CHECKSUMS.md5
-rw-r--r-- 1 root root 181 May 23 14:25 CHECKSUMS.md5.asc
-rw-r--r-- 1 root root 17976 May 23 14:25 COPYING
-rw-r--r-- 1 root root 35147 May 23 14:25 COPYING3
-rw-r--r-- 1 root root 19573 May 23 14:25 COPYRIGHT.TXT
-rw-r--r-- 1 root root 616 May 23 14:25 CRYPTO_NOTICE.TXT
-rw-r--r-- 1 root root 342163 May 23 14:25 ChangeLog.txt
drwxr-xr-x 3 root root 4096 May 23 14:25 EFI
-rw-r--r-- 1 root root 462982 May 23 14:25 FILELIST.TXT
-rw-r--r-- 1 root root 1572 May 23 14:25 GPG-KEY
-rw-r--r-- 1 root root 704195 May 23 14:25 PACKAGES.TXT
-rw-r--r-- 1 root root 8564 May 23 14:25 README.TXT
-rw-r--r-- 1 root root 3654 May 23 14:25 README.initrd
-rw-r--r-- 1 root root 34463 May 23 14:25 README_CRYPT.TXT
-rw-r--r-- 1 root root 8751 May 23 14:25 README_LVM.TXT
-rw-r--r-- 1 root root 19658 May 23 14:25 README_RAID.TXT
-rw-r--r-- 1 root root 7929 May 23 14:25 README_UEFI.TXT
-rw-r--r-- 1 root root 202849 May 23 14:25 READ_DVD.TXT
-rw-r--r-- 1 root root 6166 May 23 14:25 RELEASE_NOTES
-rw-r--r-- 1 root root 13855 May 23 14:25 SPEAKUP_DOCS.TXT
-rw-r--r-- 1 root root 17294 May 23 14:25 SPEAK_INSTALL.TXT
-rw-r--r-- 1 root root 57632 May 23 14:25 Slackware-HOWTO
-rw-r--r-- 1 root root 6688 May 23 14:25 UPGRADE.TXT
drwxr-xr-x 3 root root 4096 May 23 15:02 boot
drwxr-xr-x 17 root root 4096 May 23 14:25 extra
-rw-r--r-- 1 root root 10556 May 23 16:45 go.out
-rwxr-xr-x 1 root root 897 May 23 16:45 go.sh
drwxr-xr-x 3 root root 4096 May 23 14:25 isolinux
drwxr-xr-x 5 root root 4096 May 23 14:25 kernels
drwxr-xr-x 3 root root 4096 May 23 14:25 pasture
drwxr-xr-x 3 root root 4096 May 23 14:25 slackbook
drwxr-xr-x 2 root root 4096 May 23 15:01 slackware64
drwxr-xr-x 4 root root 4096 May 23 14:29 testing
drwxr-xr-x 2 root root 4096 May 23 14:29 usb-and-pxe-installers
Building /EFI/BOOT/bootx64.efi and /boot/syslinux/efiboot.img.
>> gfxterm_background not found
>> disk not found
>> nativedisk not found
>> file not found
>> efifwsetup not found
1440+0 records in
1440+0 records out
1474560 bytes (1.5 MB, 1.4 MiB) copied, 0.00636897 s, 232 MB/s
mkfs.fat 3.0.28 (2015-05-16)
What slackware64 dvd are you using? The slackware64-14.2 that I downloaded about a week ago doesn't have a /boot/syslinux directory that would have been copied to /iso/disk1. When I run the script manually I get
Code:
cannot move 'efiboot.img' to '../../boot/syslinux/': No such file or directory
at the
Code:
/make-grub.sh
line
Maybe edit the make-grub.sh to copy the efiboot.img to ../../isolinux
Everyone these days seems to borrow my "make-grub.sh" without bothering to look inside. It is a modification of the script with the same name in Slackware itself, for the purpose of getting it to work for my liveslak (Slackware Live Edition) scripts. If it works for your case, that is very nice. If not, just look inside the script to find what it does and where it gets / puts files. The script is fairly short.
Also, when you post hundreds of lines of computer output here on LQ, please use the CODE tags to make that post bearable and readable!
And finally, I am curious. Do you want to create a version of the Slackware installation DVD with extra tools added (which would only be useful during installation), or do you want a "live" environment of Slackware with extra tools available when you boot off the DVD? In the latter case, you could use my liveslak scripts to generate such a DVD Live ISO containing Slackware plus the additional tools you'd need
the warning: Warning: creating filesystem that does not conform to ISO-9660. is caused by arguments in mkisofs command. no mater what example i use this warning is produced.
as Alian Bob mentioned: yes i could use his live version. i would have to strip out most of what is in it.
the tool i am working with is a disk image installer. it was created in 1997 to install WIndows NT 4.0 on an internal asset in a VXI card cage. the image files i.e. .gz files are read from a mageto optical disk on VMS and FTPed to the internal asset. this imaging tool has come a long way since then. the only boot drive "other than the internal HD" is floppies. so i created, reworked, the Slackware boot floppies to run on the internal asset. this is currently in use today and will likly continue passed 2022.
i would prefer to keep going with my current boot CD. it is a striped down Slackware DVD. these are the only packages i use:
"file-5.25-i586-1,infozip-6.0-i486-3,sdparm-1.10-i586-1,cdrtools-3.01-i586-3,dvd+rw-tools-7.1-i486-2,lsscsi-0.28-i486-1,binutils-2.26-i586-3,gcc-5.3.0-i586-3,kernel-headers-4.4.14_smp-x86-1,glibc-2.23-i586-1,libmpc-1.0.3-i486-1".
when taking an image it burns CD, DVD or BDs. the first disk beinig bootable. as cyber security moves forward we are starting to use UEFI and fully encrypted hard drives. i have alwyse been two steps ahead of the cyber security gods.
i added aescrypt several versions ago. i just added shc to converted and scripts to binary. it is optional to encrypt the .gz files, for now.
i edited the make-grub.sh, removed /iso/disk1/boot and reran go.sh. the burned CD will not load. i still get the read error
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.