===== Grub ===== # file /boot/grub2/grub.cfg or /boot/grub/grub.cfg # set root=(hd0,1) # (hd0,1) ... sda1 # mkfs.ext4 -O ^has_journal /dev/sdx1 # tune2fs -l /dev/sdx1 # tune2fs -m 0 /dev/sdx1 # no reservered blocks # mkdir /mnt/other # mount /dev/sdx1 /mnt/other # mkdir /mnt/other/dev # mount --bind /dev /mnt/other/dev # grub2-install /dev/sdx --boot-directory=/mnt/other/boot set default=1 set timeout=60 set menu_color_normal=cyan/blue set menu_color_highlight=white/blue # set menu_color_normal=white/blue # set menu_color_highlight=yellow/red # set color_normal=yellow/black # set color_highlight=green/dark-gray # menuentry "sda1 Microsoft Windows 7/8" { # set root=(hd0,1) # insmod part_msdos # insmod ntfs # insmod ntldr # ntldr /bootmgr # } # menuentry "sda1 Microsoft Windows XP" { # set root=(hd0,1) # insmod part_msdos # insmod ntfs # insmod ntldr # ntldr /ntldr # } menuentry "sda2 Windows" { insmod part_msdos insmod ntfs set root='hd0,msdos2' parttool ${root} hidden- drivemap -s (hd0) ${root} chainloader +1 } menuentry "Grub from sda3" { set root=(hd1,3) # hd1 ... sda, when booting from second disk drivemap -s (hd0) (hd1) chainloader +1 } # menuentry "sda7 Debian Jessie (32-bit)" { # set root=(hd0,7) # chainloader +1 # } # menuentry "sda7 Debian Jessie (32-bit) (grub.cfg)" { # set root=(hd0,7) # configfile /boot/grub2/grub.cfg # } menuentry "sda7 Fedora 34" { set root=(hd0,7) chainloader +1 # configfile /boot/grub2/grub.cfg # linux /boot/vmlinuz-5.11.12-300.fc34.x86_64 root=/dev/sda7 ro quiet # initrd /boot/initramfs-5.11.12-300.fc34.x86_64.img } ===== BTRFS ===== menuentry "Arch Linux" { set root=(hd0,15) set dev="/dev/sda15" set vol="/archlinux-a" linux $vol/boot/vmlinuz-linux root=$dev rootflags=subvol=$vol rw quiet initrd $vol/boot/initramfs-linux.img } menuentry "Debian 9 Stretch" { set root=(hd0,15) linux /debian9/boot/vmlinuz-4.9.0-15-amd64 root=/dev/sda15 rootflags=subvol=/debian9 ro quiet initrd /debian9/boot/initrd.img-4.9.0-15-amd64 } menuentry "Debian 10 Buster" { set root=(hd0,15) linux /debian10/boot/vmlinuz-4.19.0-16-amd64 root=/dev/sda15 rootflags=subvol=/debian10 ro quiet initrd /debian10/boot/initrd.img-4.19.0-16-amd64 } menuentry "Debian 11 Bullseye" { set root=(hd0,15) linux /debian11/boot/vmlinuz-5.10.0-6-amd64 root=/dev/sda15 rootflags=subvol=/debian11 ro quiet initrd /debian11/boot/initrd.img-5.10.0-6-amd64 } menuentry "Fedora 33" { set root=(hd0,15) set dev="/dev/sda15" set vol="/fedora33" set dir="$vol/boot" set ver="5.8.15-301.fc33.x86_64" linux $dir/vmlinuz-$ver root=$dev rootflags=subvol=$vol ro rhgb quiet initrd $dir/initramfs-$ver.img # /etc/fstab /dev/sda15 / btrfs subvol=/fedora33 0 0 } menuentry "Fedora 34" { set root=(hd0,15) set dev="/dev/sda15" set vol="/fedora34" set dir="$vol/boot" set ver="5.11.12-300.fc34.x86_64" linux $dir/vmlinuz-$ver root=$dev rootflags=subvol=$vol ro rhgb quiet initrd $dir/initramfs-$ver.img # /etc/fstab subvol=/fedora34 } menuentry "Ubuntu 18.04" { set root=($sda,15) set dev="/dev/sda15" set vol="/ubuntu18.04-a" set dir="$vol/boot" set ver="5.4.0-48-generic" linux $dir/vmlinuz-$ver root=$dev rootflags=subvol=$vol ro quiet initrd $dir/initrd.img-$ver # /etc/fstab subvol=/ubuntu18.04-a WITHOUT errors=remount-ro } ===== Install ==== menuentry "Install Arch Linux" { # set root=(hd0,1) set label="start" linux /archlinux/vmlinuz-linux archisobasedir=archlinux archisolabel=$label initrd /archlinux/initramfs-linux.img } menuentry "Install Arch Linux (from iso)" { # set label="start" set device="/dev/nvme0n1p3" set isofile="/boot/archlinux/archlinux-2022.05.01-x86_64.iso" loopback loop $isofile # linux (loop)/arch/boot/x86_64/vmlinuz-linux img_label=$label img_loop=$isofile earlymodules=loop linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=$device img_loop=$isofile earlymodules=loop initrd (loop)/arch/boot/intel-ucode.img initrd (loop)/arch/boot/amd-ucode.img initrd (loop)/arch/boot/x86_64/initramfs-linux.img } menuentry "Install Debian 7 (32-bit)" { linux /debian7/gtk/vmlinuz vga=788 initrd /debian7/gtk/initrd.gz # vmlinuz and initrd from ftp://.../dists/.../main/installer-i386/.../images/hd-media # .iso file in root directory on some disk partition } menuentry "Install Debian 8 (32-bit)" { linux /debian8/gtk/vmlinux vga=788 initrd /debian8/gtk/initrd.gz # linux and initrd.gz from ftp://.../dists/Debian8.11/main/installer-i386/current/images/netboot/gtk/debian-installer/i386 } menuentry "Install Debian 9 (64-bit)" { linux /debian9/gtk/linux vga=788 initrd /debian9/gtk/initrd.gz # linux and initrd.gz from ftp://.../dists/Debian9.13/main/installer-amd64/current/images/netboot/gtk/debian-installer/amd64 } menuentry "Install Debian 10 (64-bit)" { linux /debian10/gtk/linux vga=788 initrd /debian10/gtk/initrd.gz # linux and initrd.gz from ftp://.../dists/Debian10.9/main/installer-amd64/current/images/netboot/gtk/debian-installer/amd64 } menuentry "Install Fedora 34 (64-bit)" { # set root=(hd0,1) set disk="sda3" linux /fedora34/x86_64/isolinux/vmlinuz inst.repo=hd:$disk:/fedora34/x86_64 inst.ks=hd:$disk:/fedora34/x86_64/fedora34.ks initrd /fedora34/x86_64/isolinux/initrd.img } ===== Gentoo / Arch Linux CD ===== menuentry "System Rescue CD 5.3.2 (64-bit)" { linux /boot/sysrcd-5.3.2/rescue64 subdir=boot/sysrcd-5.3.2 setkmap=us docache ar_source=/dev/sdb1 initrd /boot/sysrcd-5.3.2/initram.igz } menuentry "System Rescue CD 6.0.1 (64-bit)" { set label="start" linux /boot/sysrcd-6.0.1/vmlinuz archisobasedir=boot/sysrcd-6.0.1 archisolabel=$label copytoram initrd /boot/sysrcd-6.0.1/intel_ucode.img /boot/sysrcd-6.0.1/amd_ucode.img /boot/sysrcd-6.0.1/sysresccd.img # file in /boot/sysrcd-6.0.1/x86_64 : airootfs.sfs # file in /boot/sysrcd-6.0.1 : vmlinuz sysresccd.img intel_ucode.img amd_ucode.img } menuentry "System Rescue CD 6.0.3 (64-bit)" { set label="start" set dir="sysrcd-6.0.3" linux /boot/$dir/vmlinuz archisobasedir=boot/$dir archisolabel=$label copytoram initrd /boot/$dir/intel_ucode.img /boot/$dir/amd_ucode.img /boot/$dir/sysresccd.img # file in /boot/sysrcd-6.0.3/x86_64 : airootfs.sfs # file in /boot/sysrcd-6.0.3 : vmlinuz sysresccd.img intel_ucode.img amd_ucode.img } menuentry "System Rescue CD 8.0.3 (64-bit)" { set label="start" set dir="sysrcd-8.0.3" linux /boot/$dir/vmlinuz archisobasedir=boot/$dir archisolabel=$label copytoram initrd /boot/$dir/intel_ucode.img /boot/$dir/amd_ucode.img /boot/$dir/sysresccd.img # file in /boot/sysrcd-8.0.3/x86_64 : airootfs.sfs # file in /boot/sysrcd-8.0.3 : vmlinuz sysresccd.img intel_ucode.img amd_ucode.img } ===== Ubuntu ===== menuentry "Ubuntu Mate 18.04 (32-bit)" { set dir="/ubuntu-mate-18.04" linux $dir/casper/vmlinuz boot=casper iso-scan/filename=$dir layerfs-path=filesystem.prog.squashfs showmounts initrd $dir/casper/initrd # sudo umount -l -r -f /isodevice # files casper/filesystem.squashfs and casper/filesystem.prog.squashfs } menuentry "Ubuntu Mate 19.04" { set dir="/ubuntu-mate-19.04" linux $dir/casper/vmlinuz boot=casper iso-scan/filename=$dir layerfs-path=filesystem.prog.squashfs showmounts initrd $dir/casper/initrd # sudo umount -l -r -f /isodevice # files casper/filesystem.squashfs and casper/filesystem.prog.squashfs } menuentry "Ubuntu Mate 20.04" { set dir="/ubuntu-mate-20.04" linux $dir/casper/vmlinuz boot=casper iso-scan/filename=$dir showmounts initrd $dir/casper/initrd # linux $dir/casper/vmlinuz boot=casper iso-scan/filename=$dir layerfs-path=filesystem.prog.squashfs showmounts # sudo umount -l -r -f /isodevice # files casper/filesystem.squashfs and casper/filesystem.prog.squashfs } menuentry "Ubuntu Mate 20.04 (from iso)" { set dir="/ubuntu-mate-20.04" set isofile="$dir/ubuntu-mate-20.04-desktop-amd64.iso" linux $dir/casper/vmlinuz iso-scan/filename=$isofile noprompt noeject initrd $dir/casper/initrd } menuentry "Ubuntu Mate 21.04 (from iso)" { set dir="/ubuntu-mate-21.04" set isofile="$dir/ubuntu-mate-21.04-desktop-amd64.iso" loopback loop $isofile linux (loop)/casper/vmlinuz iso-scan/filename=$isofile showmounts noprompt noeject initrd (loop)/casper/initrd # sudo apt-get install qtcreator python3-pyqt5 python3-pyqt5.qtwebengine python-is-python3 mc } menuentry "Ubuntu Mate 20.04 (from iso)" { set dir="/ubuntu-mate-20.04-iso" set isofile="$dir/ubuntu-mate-20.04-desktop-amd64.iso" loopback loop $isofile linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile showmounts noprompt noeject initrd (loop)/casper/initrd } ===== Debian ===== menuentry "Install Debian 9 (32-bit, from iso)" { set dir="/debian9-iso" set isofile="$dir/debian-live-9.0.0-i386-mate.iso" loopback loop $isofile set root=(loop) linux /live/vmlinuz-4.9.0-3-686 boot=live components splash quiet findiso=$isofile initrd /live/initrd.img-4.9.0-3-686 } menuentry "Debian 11 (from iso)" { set dir="/debian11-lxqt" set isofile="$dir/debian-live-11.4.0-i386-lxqt+nonfree.iso" loopback loop $isofile set root=(loop) linux /live/vmlinuz-5.10.0-16-686 boot=live components splash quiet findiso=$isofile initrd /live/initrd.img-5.10.0-16-686 } ===== Slax ===== menuentry "Slax 32-bit (Fresh start)" { linux /slax32/boot/vmlinuz from=/slax32/ vga=normal load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=automount initrd /slax32/boot/initrfs.img } menuentry "Slax 64-bit (Persistent changes)" { linux /slax64/boot/vmlinuz from=/slax64/ vga=normal load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch,automount initrd /slax64/boot/initrfs.img } menuentry "Slax 64-bit (Fresh start)" { linux /slax64/boot/vmlinuz from=/slax64/ vga=normal load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=automount initrd /slax64/boot/initrfs.img } menuentry "Slax 64-bit (Copy to RAM)" { linux /slax64/boot/vmlinuz from=/slax64/ vga=normal load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=toram initrd /slax64/boot/initrfs.img } [[peri:peri#slax_9_cuda_8|Slax 9 Cuda ]]