The official way to do this is, of course, to get it from slackware.com.
Personally, I have getslack, a bash script based on (more accurately, a trimmed-down version of) the excellent (he termed it infamous) mirror-slackware-current.sh by Alien Bob. When going down this path, the next step would be to prepare the installation media.
I no longer need an ISO image (refer to USB installer below). But, I have my slack2iso script (also based on Alien Bob's script) that can help in creating one using the tree downloaded by getslack
.
Alien Bob has provided a script to make/setup/configure a USB-based Slackware installation media. I wanted to do something simpler using the existing files in the Slackware tree that I mirrored using getslack
(mentioned above). So, here is how I got that working.
fdisk
and make sure it is bootable (bootable flag enabled)mkdosfs
(e.g. mkdosfs -F 32 /dev/sdb1
)/linux/boot/syslinux
folder on the USBsyslinux -d /linux/boot/syslinux /dev/sdb1
Note: On newer syslinux, use -i
to indicate new installation
ldlinux.sys
should appear in /linux/boot/syslinux
/linux/boot
(I used huge.s
)initrd.img
and message.txt
to /linux/boot
isolinux.cfg
to /linux/boot/syslinux
as syslinux.cfg
syslinux.cfg
accordingly (initrd, kernel params, etc.)
And… we're done! Now we have a simple Slackware USB Installer and install it on every computer we can get our hands on!
Things moving to (U)EFI and GPT… slowly leaving legacy BIOS and MBR.
Instead of MBR, we use GPT partitioning scheme:
Partition codes are 2-bytes instead (only 1-byte on MBR's partition table). Among the common ones:
mkdosfs -F 32 -n MY1EFI /dev/sdxx
mkntfs -f -L MY1WIN /dev/sdxx
mkfs.ext4 -L MY1LIN /dev/sdxx
Once boot using EFI, efibootmgr
tool can be used (available on Slackware 14.2)
Slackware
with loader file named \efi\slackware\elilo.efi
located on first partition of first disk (/dev/sda1
) efibootmgr -c -d /dev/sda -p 1 -L "Slackware" -l "\efi\slackware\elilo.efi"
efibootmgr -b xxxx -B
efibootmgr -o xxxx,yyyy,zzzz