create-custom-debian-live-usb-stick-uefi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
create-custom-debian-live-usb-stick-uefi [2019/02/03 10:20] – [Create USB Stick] baumi | create-custom-debian-live-usb-stick-uefi [2019/04/20 10:10] (current) – [Create GPT & MBR partition tables] baumi | ||
---|---|---|---|
Line 42: | Line 42: | ||
blackbox xserver-xorg-core xserver-xorg xinit xterm \ | blackbox xserver-xorg-core xserver-xorg xinit xterm \ | ||
pciutils usbutils gparted ntfs-3g hfsprogs rsync less curl tcpdump dosfstools syslinux partclone vim pv \ | pciutils usbutils gparted ntfs-3g hfsprogs rsync less curl tcpdump dosfstools syslinux partclone vim pv \ | ||
- | firefox-esr chntpw lvm2 mdadm keepassx gdisk gnupg duplicity s3cmd bzip2 lsof screen mc htop iproute2 inetutils-ping inetutils-traceroute | + | firefox-esr chntpw lvm2 mdadm keepassx gdisk gnupg duplicity s3cmd bzip2 lsof screen mc htop iproute2 inetutils-ping inetutils-traceroute |
[ ... ] | [ ... ] | ||
Line 100: | Line 100: | ||
mail (8) | mail (8) | ||
root@host: | root@host: | ||
- | root@host: | + | root@host: |
- | cp chroot/ | + | cp chroot/ |
root@host: | root@host: | ||
Line 111: | Line 111: | ||
set timeout=30 | set timeout=30 | ||
- | menuentry "The Shit Has Hit The Fan" { | + | menuentry "SHTF Live Stick" { |
- | linux /vmlinuz boot=live | + | linux /vmlinuz boot=live |
initrd /initrd | initrd /initrd | ||
} | } | ||
Line 124: | Line 124: | ||
root@host: | root@host: | ||
root@host: | root@host: | ||
+ | </ | ||
+ | ==== Create GPT & MBR partition tables (skip for updating) ==== | ||
+ | < | ||
root@host: | root@host: | ||
100+0 records in | 100+0 records in | ||
Line 156: | Line 159: | ||
Y # confirm changes | Y # confirm changes | ||
EOF | EOF | ||
- | + | </ | |
- | root@host: | + | ==== Create filesystems (skip for updating) ==== |
- | mkfs.vfat -F32 ${DEVICE}3 | + | < |
- | + | root@host: | |
- | root@host: | + | </ |
- | mount ${DEVICE}3 /mnt/usb | + | ==== Create & mount filesystems ==== |
+ | < | ||
+ | root@host: | ||
+ | </ | ||
+ | ==== Install grub for UEFI and BIOS ==== | ||
+ | < | ||
root@host: | root@host: | ||
--target=x86_64-efi \ | --target=x86_64-efi \ | ||
Line 180: | Line 187: | ||
===== Create USB Stick ===== | ===== Create USB Stick ===== | ||
< | < | ||
- | root@host: | + | root@host: |
+ | cp -ar ./image/* /mnt/usb/ && \ | ||
+ | cp -a ./ | ||
+ | umount / | ||
</ | </ | ||
create-custom-debian-live-usb-stick-uefi.1549185648.txt.gz · Last modified: 2019/02/03 10:20 by baumi