Files
u-claw/bootable/linux-setup/format-persistence.sh
hfshfg 953d87f59d fix: update Linux bootable to Ubuntu 24.04.4, add format-persistence.sh, rewrite guide
- Update all 24.04.2 references to 24.04.4 (ISO name, URLs, SHA256, docs)
- Add format-persistence.sh to bootable/linux-setup/ (from working E: drive)
- Rewrite website guide.html Linux tutorial: Linux Mint + Rufus → Ventoy + Ubuntu

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 20:08:14 +08:00

11 lines
409 B
Bash

#!/usr/bin/env bash
# One-click create and format persistence.dat for Ventoy
set -euo pipefail
VENTOY_DIR=$(dirname "$(dirname "$(readlink -f "$0")")")
PERSIST="$VENTOY_DIR/persistence.dat"
SIZE_GB=20
echo "Creating ${SIZE_GB}GB persistence image..."
dd if=/dev/zero of="$PERSIST" bs=1M count=0 seek=$((SIZE_GB * 1024))
mkfs.ext4 -F -L casper-rw "$PERSIST"
echo "Done! Reboot for persistence to take effect."