Please tell me which image I need to download in order to add booting from a Grub2 ISO image?
I've been reading forums and trying different images for two days, and nothing works!
I only need the basic version without a desktop.
Please tell me which image I need to choose?
(28 posts) (3 voices)-
Posted 11 months ago #
-
Found an answer to my question...
Here is a link http://mirror.slitaz.org/iso/4.0/flavors/ in which it is said that: The images *-isohybrid.iso will boot from a cdrom *and* USB.Downloaded "slitaz-4.0-base-isohybrid.iso", flashed on the USB drive but, it does not run! What I do wrong?
Posted 11 months ago # -
PS - I'm trying to just load from the flash drive! And then in Grub2 ...
Posted 11 months ago # -
Hello,
I don't understand your configuration. SliTaz's ISOs don't come with GRUB2 but Syslinux.
How did you "flash" the ISO on your USB drive?
Do you want to boot from an ISO file with GRUB2 or make a LiveUSB?Posted 11 months ago # -
I want to add in Grub2 new entry to load from ISO image "slitaz-4.0-base-isohybrid.iso". However, if Am I correct in understanding that the ISO image "slitaz-4.0-base-isohybrid.iso" does not work in UEFI? And I need to modify the image so that it can boot in UEFI.
Posted 11 months ago # -
Maybe you probably want to edit the "/etc/grub.d/40_custom" file to add a menuentry?
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.menuentry "Alpine Linux alpine-standard-3.17.3-x86.iso" {
set isofile="/alpine-standard-3.17.3-x86.iso"
loopback loop (hd0,3)$isofile
linux (loop)/boot/vmlinuz-lts iso-scan/filename=$isofile modules=loop,squashfs,sd-mod,usb-storage,ext4 quiet splash
initrd (loop)/boot/initramfs-lts
}menuentry "Linux lts" {
set root=(hd0,2)
linux /boot/vmlinuz-lts root=UUID=99f68d25-fc87-4ffe-899a-8dd8a63c697d modules=sd-mod,usb-storage,ext4
initrd /boot/initramfs-lts
}Posted 11 months ago # -
Yes, you are correct. I want to add a new menuentry using the "/etc/grub.d/40_custom" file. But, I need only command line without the desktop environment. For this purpose, I think I need to select the "slitaz-4.0-base.iso" image. Did I choose the ISO image nemed "slitaz-4.0-base.iso" is correctly?
Will it boot in Grub with UEFI?Posted 11 months ago # -
OK. No need the ISO is hybrid and UEFI is not a problem.
Something like that should work:
menuentry "SliTaz 4.0-base" { set root=(hdX,Y) # (disk,partition) where the ISO is loopback loop /path/to/slitaz-4.0-base-isohybrid.iso linux (loop)/boot/vmlinuz-2.6.37-slitaz initrd (loop)/boot/rootfs.gz }
You could also boot a console from the Rolling ISO loading only
rootfs4.gz
:menuentry "SliTaz Rolling-base" { set root=(hdX,Y) # (disk,partition) where the ISO is loopback loop /path/to/slitaz-rolling.iso linux (loop)/boot/vmlinuz-3.16.55-slitaz initrd (loop)/boot/rootfs4.gz }
Posted 11 months ago # -
The "SliTaz 4.0-base.iso" image is located on partition "nvme0n1p5" in the "iso" folder. I have adjusted my script accordingly to your message. However, I'm encountering the following error: "You need to load the kernel first."
What am I doing wrong?Posted 11 months ago # -
Sorry, I forgot to show my script!
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.menuentry "SliTaz 4.0-base" {
set root=(hd0,gpt5) # (disk,partition) where the ISO is
loopback loop (root)/iso/slitaz-4.0-base.iso
linux (loop)/boot/vmlinuz-2.6.37-slitaz
initrd (loop)/boot/rootfs.gz
}Posted 11 months ago # -
Edit the line
loopback
: suppress(root)
.
You can also suppress the comment# (disk,partition) where the ISO is
;)loopback loop /iso/slitaz-4.0-base.iso
should solve the problem if GRUB2 finds the ISO.Posted 11 months ago # -
Thanks for the replay!
I downloaded a "slitaz-rolling-core 64.iso" image and created a script for it.
menuentry "slitaz-rolling-core64" {
set root=(hd0,gpt5)
loopback loop /iso/slitaz-rolling-core64.iso
linux (loop)/boot/vmlinuz-3.16.55-slitaz64
initrd (loop)/boot/rootfs.gz
}
And it works well!But the same script, for the "slitaz-4.0-base.iso" image.
menuentry "Slitaz base ISO" {
set root=(hd0,gpt5)
loopback loop /iso/slitaz-4.0-base.iso
linux (loop)/boot/vmlinuz-2.6.37-slitaz
initrd (loop)/boot/rootfs.gz
}
It doesn't work! Grub doesn't write any errors, just a blank screen, that's all! Perhaps it's not compatible with 64-bit systems?Posted 11 months ago # -
Right, I can reproduce it; probably the kernel 2.6.37 is too old... :(
If you really want to boot in console only you can use slitaz-rolling.iso and load
rootfs4.gz
only. In this case you'll access only at 4GB RAM max because the ISO has a 32bit kernel with PAE disabled. If you are interested in, I can send you a link to download the 32bit kernel with PAE enabled so that you can access at the entire memory.Note that if slitaz-rolling-core64.iso has a 64bit kernel it uses the same packages (32bit) that slitaz-rolling.iso.
Posted 11 months ago # -
Yes, I would greatly appreciate it if you could provide me with the link to download the 32-bit kernel with PAE (Physical Address Extension) enabled. Thank you in advance!
Could you also please tell me how to extract the rootfs.gz file?
I would like to make changes such as adding a password for automatic login...I have tried the following methods without success:
(zcat rootfs.gz 2>/dev/null || lzma d rootfs.gz -so) | cpio -id
This command gives me the following errors:
lzma: invalid key - 'slzma: Try 'lzma --help' for more information.
`unexpected end of archive error
I have also tried -
gunzip rootfs.gz
tar -xzf rootfs.gzxz -d rootfs.gz
`zcat rootfs.gz | cpio -id
None of these commands have been successful.Could you please provide guidance on how to properly extract the rootfs.gz file?
Posted 11 months ago # -
Here is a link to a zip file:
https://drive.google.com/file/d/17PQu407MpHqPbKQsbXw9B7hImqcIbI5M/view?usp=sharingBoot the console from slitaz-rolling.iso with
initrd (loop)/boot/rootfs4.gz
From the unziped3.16.55-pae.zip
file, install the linux package:
tazpkg -i /path/to/3.16.55-pae/linux-3.16.55.tazpkg --forced
and block the package:
tazpkg -b linux
Copy the new kernel from/boot
in the nvme0n1p5 partition.
Create a rootfs:
tazusb writefs lzma rootfs.gz
The file is generated in the current directory, copy it in the nvme0n1p5 partition.
Modify the (or create a new) entry in the GRUB2 menu as this:menuentry "SliTaz Rolling - Console" { set root=(hd0,gpt5) linux /boot/vmlinuz-3.16.55-slitaz initrd /boot/rootfs.gz }
Reboot and select the entry, you should boot with the PAE kernel if I didn't do any mistake... Login and type
free
to check. If it's OK, you can delete the ISOs from nvme0n1p5, you don't need them anymore.Note that the
linux-*-3.16.55
packages from the SliTaz's mirrors are not compatible with the PAE kernel.
Thats's why you'll find other packages in the zip file.
Let's say you want to install the wi-fi: install in this order:
tazpkg -i /path/to/3.16.55-pae/linux-crypto-3.16.55.tazpkg tazpkg -i /path/to/3.16.55-pae/linux-wireless-3.16.55.tazpkg tazpkg -gi wpa_supplicant
Maybe you'll need also linux-firmware
tazpkg -i /path/to/3.16.55-pae/linux-firmware-3.16.55.tazpkg
Don't forget to block all packages installed from the zip file.
When your configuration works, generate a newrootfs
and copy it in nvme0n1p5 (better to rename the oldrootfs
before in case you have a problem with the new one).Could you please provide guidance on how to properly extract the rootfs.gz file?
The best way is to boot in frugal mode (kernel and rootfs in nvme0n1p5 partition) and not from an ISO. Modify the files you want, add some packages and then save your modifications with Tazusb as described above.
More information about Tazusb: http://hg.slitaz.org/tazusb/raw-file/tip/doc/tazusb.en.htmlEDIT:
Forgot to install wpa_supplicant :/Posted 11 months ago #
Reply »
You must log in to post.