linux:preseed-linux-usb
This is an old revision of the document!
Preseed Linux USB Create
To create an Auto-Install USB Stock with Mint 21.2 or later, use the following steps.
- Download latest Linux Mint iso file https://www.linuxmint.com/edition.php?id=305
- Insert USB stick, check with dmesg | tail to identify the usb device
- Delete/Create FAT32 partition
su - fdisk /dev/xxx
create type c (Win95 FAT32 LBA) partition
See for details: https://askubuntu.com/questions/1064278/how-to-create-win95-fat32-lba-partition-type-on-32-gb-usb - create vfat filesystem on new partition
mkfs.vfat /dev/xxx1
- mount disk
mount /dev/xxx1 /mnt
- rename usb stick label if necessary/desired
mlabel -i /dev/xxx1 -s ::"CST_MINT212"
- mount iso and copy iso content directly to usb stick partition. Ensure hidden files/directories are copied as well.
- copy custom_install directory to usb stick root
- copy custom preseed files to usb stick preseed directory
- edit /boot/grub/grub.cfg and add to end:
menuentry "Install Custom Linux Mint 21.2 Cinnamon 64-bit" { set gfxpayload=keep linux /casper/vmlinuz file=/cdrom/preseed/mint_allinone.seed boot=casper debian-installer/locale=en keyboard-configuration/layoutcode=en_GB console-setup/layoutcode=en_GB automatic-ubiquity quiet splash -- initrd /casper/initrd.lz }
- add syslinux.cfg to root with content:
default vesamenu.c32 timeout 100 menu background splash.png menu title Welcome to Linux Mint Cinnamon 64-bit menu color screen 37;40 #80ffffff #00000000 std MENU COLOR border 30;44 #40ffffff #a0000000 std MENU COLOR title 1;36;44 #ffffffff #a0000000 std MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all MENU COLOR unsel 37;44 #50ffffff #a0000000 std MENU COLOR help 37;40 #c0ffffff #a0000000 std MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std MENU COLOR msg07 37;40 #90ffffff #a0000000 std MENU COLOR tabmsg 31;40 #ffDEDEDE #00000000 std MENU WIDTH 78 MENU MARGIN 15 MENU ROWS 7 MENU VSHIFT 10 MENU TABMSGROW 12 MENU CMDLINEROW 12 MENU HELPMSGROW 16 MENU HELPMSGENDROW 29 label custom menu label Automated installation (Everything in one partition) (syslinux) kernel casper/vmlinuz append file=/cdrom/preseed/mint_allinone.seed boot=casper initrd=/casper/initrd.lz debian-installer/locale=en keyboard-configuration/layoutcode=en_GB console-setup/layoutcode=en_GB automatic-ubiquity quiet splash -- label live menu label Start Linux Mint kernel /casper/vmlinuz append file=/cdrom/preseed/linuxmint.seed boot=casper initrd=/casper/initrd.lz quiet splash -- persistent menu default label xforcevesa menu label Start in compatibility mode kernel /casper/vmlinuz append file=/cdrom/preseed/linuxmint.seed boot=casper initrd=/casper/initrd.lz noapic noacpi nosplash irqpoll nomodeset -- label oem menu label OEM install (for manufacturers) kernel /casper/vmlinuz append file=/cdrom/preseed/linuxmint.seed oem-config/enable=true only-ubiquity boot=casper initrd=/casper/initrd.lz quiet splash -- label check menu label Integrity check kernel /casper/vmlinuz append boot=casper integrity-check initrd=/casper/initrd.lz quiet splash -- label hdt menu label Hardware Detection kernel hdt.c32 label local menu label Boot from local drive COM32 chain.c32 APPEND hd0 label memtest menu label Memory test kernel /casper/memtest
Finally, proceed with pre-config as per CUSTOM USB INSTALL instructions (to follow)
linux/preseed-linux-usb.1701995073.txt.gz · Last modified: 2023/12/08 00:24 by Wulf Rajek