LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-16-2019, 06:59 PM   #46
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,954

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470

just tried your new iso with efi booting. DD doesn't work, It probably has to do with how the iso is created. I can't help you out with that one, maybe a search for "how to create an efi bootable iso" will help. I used the windows program rufus to extract the iso to a usb fat32 partition and it worked like a charm. I'll let you know about persistence soon, but I don't think there will be any problems with it.
 
1 members found this post helpful.
Old 05-16-2019, 07:12 PM   #47
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
If you wish you can also put the folder Slacker on your hard drive and boot off hdd persistent etc here's my grub.cfg for my laptop, note sda3 is my slackware 14.2 everyday install


Code:
menuentry "Slacker LIVE 4.4.172 (on /dev/sda3)" --class slackware --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-5f562de2-5c23-4f95-a6ae-5b97c8d348bb' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos3' --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  5f562de2-5c23-4f95-a6ae-5b97c8d348bb
	else
	  search --no-floppy --fs-uuid --set=root 5f562de2-5c23-4f95-a6ae-5b97c8d348bb
	fi
	linux /Slacker/vmlinuz vga=788 initrd=/Slacker/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch noload=gui.sb
	initrd /Slacker/initrfs.img
}
This is output of ls booted from sda3 and looking at partition "Slacker" is booted from

Code:
bash-4.3$ ls /run/initramfs/memory/data/
Pwriter				    bin			lib	    opt   sys
Readme-scripts.txt		    boot		lib64	    proc  tmp
Screenshot_2019-05-01_05-59-43.png  dev			livecdb     root  usr
Scripts				    etc			lost+found  run   var
Slacker			    gen_Slacker_iso.sh	media	    sbin
Storage				    home		mnt	    srv
when booted from slacker the boot media is in /run/initramfs/memory/data/

Last edited by linus72; 05-16-2019 at 07:18 PM.
 
Old 05-16-2019, 09:26 PM   #48
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,954

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
To boot the usb in both legacy and efi mode with persistence I created msdos type disk with two partitions, efi and ext4. To boot straight from efi bios with out changing the grub.cfg, I copied the vmlinuz and initrfs.img from Slacker folder on the ext4 partition to a Slacker folder I created on the usb efi partition.

Last edited by colorpurple21859; 05-16-2019 at 09:29 PM.
 
Old 05-17-2019, 04:42 AM   #49
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,534

Rep: Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901
You are using the Slax 'linux-live' scripts to create your Live ISO, right? The linux-live scripts do not support EFI according to this: https://www.slax.org/next.php
 
1 members found this post helpful.
Old 05-17-2019, 04:50 AM   #50
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi AlienBob, yes that's correct, here's the changelog for linux-live
https://github.com/Tomas-M/linux-live/commits/master

Also, I posted a comment on your blog about laptop-mode-tools having issues, hope you saw that...I thought you said earlier any errors with slackbuilds to comment on your blog, sorry Ill make a thread here if necessary

Last edited by linus72; 05-17-2019 at 04:52 AM.
 
Old 05-17-2019, 05:40 AM   #51
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
To append this, linux-live-scripts is now made solely for Debian, I had to hack&slash the scripts to work with Slackware, but it's working somewhat. I dont know much about EFI booting, seems kind of silly compared to legacy bios...

AntiX usb creator auto partitions a usb for efi it seems, some others like arch do also.

I just wanted to make a Live version of Slackware that was easy to make and created a clone of installed system with persistency and slax boot cheatcodes...not many current Slackware based live stuff nowadays- unfortunate.

For instance my laptop has virtualization locked out- that's just stupid if you ask me.

Anyhow, I will continue to try and learn how to make a great Slackware based live distro, Slackware rocks!
 
Old 05-17-2019, 05:50 AM   #52
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,534

Rep: Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901
According to https://www.linux-live.org/ these scripts "create your own Live Linux from an already installed Linux distribution" so it looks generic, not just for Debian. And https://github.com/Tomas-M/linux-live does not show anything that limits this to Debian. Of course, SLAX which uses these scripts, is created from a Debian install.
What did you have to hack in order to make it work with Slackware? Perhaps you could send that back to Tomas and ask him to incorporate these changes back into his linux-live code.
 
1 members found this post helpful.
Old 05-17-2019, 05:51 AM   #53
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,534

Rep: Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901
Quote:
Originally Posted by linus72 View Post
I thought you said earlier any errors with slackbuilds to comment on your blog
I did not make such a broad statement, ever. You can discuss with me the errors that result from using any of my own SlackBuild scripts though.
 
1 members found this post helpful.
Old 05-17-2019, 06:00 AM   #54
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
I havent found any errors with your own stuff AlienBob, lol cant believe it took a day and a half to build dependencies for laptop mode tools sigh and then it didnt run simply because the script is looking for lmt.py but it's named LMT.py so I edited it and it works now...

My aim with this whole project was simply to make a clone/backup/live version of YOUR installed system, especially if -current, so when things break you have a reliable bootable live distro to hack at.
Being persistent and a base read only, gives me the ability to update slackware -current and by doing it in live session anything that gets broke I can easily fix by deleting contents of changes folder or parts of it if need be rather than breaking my real -current system on hdd.

I see it like a bootable "restore" point you know.

Thanks for all you guy's answers too, I'm not a Coder or Programmer of any sort
 
Old 05-17-2019, 07:13 AM   #55
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,954

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I think to make the iso efi bootable you will need to add /slackware/slackware64-14.2/isolinux/efiboot.img and edit the script for the mkiso https://wiki.syslinux.org/wiki/index...itle=Isohybrid
 
1 members found this post helpful.
Old 05-20-2019, 11:27 PM   #56
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,954

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
To make the iso bootable efi mode using dd this is what worked after several failed attempts and lots of googling.
1. Extract out the iso create a EFI/BOOT if it doesn't exist


2. Download make-grub.sh from here http://www.slackware.com/~alien/liveslak/EFI/BOOT/ and move to EFI/BOOT. May have to edit for paths and any other changes you want to make.

3. Create a EFI/BOOT/grub-embedded.cfg with this in it
Code:
search --file --set=root /Slacker/vmlinuz
4. cd into the EFI/BOOT and run the make-grub.sh. The make-grub.sh rebuilds the /EFI/BOOT/bootx64.efi and creates a efiboot.img and copies it to /boot/syslinux/

5. created iso with this
Code:
 /usr/bin/mkisofs -o /home/live/slacker/slackerefi.iso -v -J -hide-rr-moved -R -d -N -A slackerefi -V slackerefi -no-emul-boot -boot-info-table -boot-load-size 4 -b boot/isolinux/isolinux.bin -c boot/isolinux/isolinux.boot -eltorito-alt-boot -eltorito-platform 0xEF -eltorito-boot boot/syslinux/efiboot.img -no-emul-boot .
5. Ran isohybrid twice on the iso. first with out any switches the second time isohybrid -u slackerefi.iso

dd'd the iso to a usb and it booted like a charm

edit: I did this using slackware-current.

edit: I tried it again to see if I could duplicate it using ubuntu and got errors, use this to get rid of errors:
Code:
-eltorito-alt-boot -e boot/syslinux/efi.img -no-emul-boot
.

Last edited by colorpurple21859; 06-03-2019 at 09:45 PM.
 
Old 05-22-2019, 06:35 AM   #57
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,954

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I was able to get your SlackerR iso to boot in efi mode also.

1. Extract out the iso

2. Created an EFI/BOOT Directory and copied Alien Bob make-grub.sh, your grub.cfg, and the modified grub-embedded.cfg to EFI/BOOT.

3. Ran make-grub.sh, mkisofs, isohybrid, and dd

This was done using Slackware-current.

Last edited by colorpurple21859; 05-22-2019 at 11:39 AM.
 
1 members found this post helpful.
Old 05-23-2019, 10:05 AM   #58
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Thanks colorpurple21859 for your help, I'm gonna add all that...

Now, I've noticed some issues running persistent from fat32 usb, namely errors during reboot/shutdown related to umounting the various /dev/loop0/1/2/3/4/ etc

I dont see these errors in the debian remasters, maybe because it uses systemd and slackware doesnt??

Attached pics show result of "mount" command in the Buster remaster and the Slacker remaster, note that /dev/loop0 and /dev/loop1 are mounted...

The Slacker build does not have these errors when booting persistent off ext4 usb, only fat32.
The live kit creates a "changes.dat" file in Slacker/changes folder on fat32, a ext4 formatted "file" that grows as the filesystem grows. Off ext4 formatted usb it just puts various folders in Slacker/changes folder....

I tried adding various umount options to rc.6 such as umount -l /dev/loop0, umount -f /dev/loop0, etc to no avail...
Attached Thumbnails
Click image for larger version

Name:	bustermount.png
Views:	4
Size:	156.6 KB
ID:	30626   Click image for larger version

Name:	slackermount.jpg
Views:	5
Size:	59.1 KB
ID:	30627  
 
Old 05-23-2019, 10:29 AM   #59
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,954

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
fat32 doesn't do symlinks, maybe that is the problem
 
1 members found this post helpful.
Old 06-02-2019, 09:58 AM   #60
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hey colorpurple21859 I really think its because debian uses systemd and slackware doesnt, as their rc.6's work differently?
Anyway I haven't solved it yet but on the newest Slackerc-current iso below it says umount is "busy" off ext4 usb but on fat32 usb it does a bad umount and usb is then "read-only" until you do dosfck etc to fix it....best to run it off ext usb anyway for now
also this iso is isohybrid so if you wanna dd it to usb, that is the fastest boot other than frugal install to hard drive

Anyway, the newest Slackerc-current I made last night, all pkgs are updated to last night and I also compiled the 4.19.47-xanmod24 kernel last night also so it's all up to date
https://sourceforge.net/projects/sla...files/slacker/

Last edited by linus72; 06-02-2019 at 10:24 AM.
 
  


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 11:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration