preparing a slackware usb stick

proliant-hbamode | proliant-hbamode-kernel | proliant-hbamode-slackware | proliant-ssacli

warning

you will need a custom kernel with usb mass storage within, unless you do that with a ramdisk (initrd / initramfs).

usb stick setup

cd /mnt/
mkdir usb/
touch usb/NOT_MOUNTED

(install pkgtools)

create an empty DOS partition table

assuming target stick is /dev/sdb

fdisk /dev/sdb

o
w

create root and swap partitions

cfdisk /dev/sdb

25GB or whatever fits   /           bootable
(whatever is left)      swap

ready to go

mkfs.ext4 /dev/sdb1
mkswap /dev/sdb2

in case you’re using a recent system (here ubuntu 25), you might need to downgrade the target filesystem, as e2fsck version is older on slackware

tune2fs -O ^orphan_file /dev/sdb2

mount /dev/sdb2 usb/

deploy slackware with slackstart

cd /mnt/
vi slackstart.conf

mirror=http://mirror.rol.ru/slackware/slackware64-15.0/
tz=Europe/Moscow
fs=ext4
vpartition=/dev/sda2

# ilo vsp
serial=ttyS1

swap=1
boot=syslinux

and proceed

# https://pub.nethence.com/bin/slackstart/slackstrap.bash
time bash slackstrap.bash usb

you need a custom kernel in there and not necessarily the stock one

# todo - tweak that script to avoid installing the stock kernel
time bash slackstrap.bash usb kernel

– here’s the custom one

# https://lab.nethence.com/nunux/hbamode-and-mass-storage/
cp -f /tftpboot/vmlinuz.hbamode usb/boot/
cp -f /tftpboot/vmlinuz.hbamode.config usb/boot/
mkdir usb/lib/modules/
tar xzf /tftpboot/vmlinuz.hbamode.5.18.19.tar.gz -C usb/lib/modules/

install boot blocks and further polishing

bash slackprep.bash usb

take good care of the target root partition definition

blkid /dev/sdb1
vi usb/boot/syslinux/syslinux.cfg

...
default hbamode
...

label hbamode
        linux /boot/vmlinuz-hbamode
        append PARTUUID=... ro mitigations=off vga=791

label hbamode-vsp
        linux /boot/vmlinuz-hbamode
        append PARTUUID=... ro mitigations=off console=tty1 console=ttyS0,115200n8

and mount points

blkid /dev/sdb1
blkid /dev/sdb2
vi usb/etc/fstab

PARTUUID=...
PARTUUID=...

ready to go

sync
umount -R usb/

troubles

etc etc-15.0-x86_64-17: system configuration files .............[ 130K]
chown: warning: '.' should be ':': ‘root.utmp’
chown: warning: '.' should be ':': ‘root.shadow’
eudev eudev-3.2.11-x86_64-1: dynamic device directory system ...[ 8.8M]

==> that’s not harmful, just a warning about chown usage that differs from one system to another

/dev/sda2 has unsupported feature(s): FEATURE_C12

==> disable orphan_file ext4 filesystem feature

resources

troubles

https://askubuntu.com/questions/1497523/feature-c12-e2fsck-get-a-newer-version-of-e2fsck

HOME | GUIDES | PLAYBOOKS | LECTURES | LAB | CONTACT | HTML | CSS
Licensed as MIT