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>
This commit is contained in:
hfshfg
2026-03-16 20:08:14 +08:00
parent 5813e384af
commit 953d87f59d
7 changed files with 68 additions and 75 deletions

View File

@@ -12,17 +12,17 @@ Write-Host "============================================" -ForegroundColor Cyan
Write-Host ""
# ── Config ──
$ISOName = "ubuntu-24.04.2-desktop-amd64.iso"
$SHA256Expected = "d6dab0c3a657988501b4bd76f1297c053df710e06e0c3aece60dead24f270b4d"
$ISOName = "ubuntu-24.04.4-desktop-amd64.iso"
$SHA256Expected = "3a4c9877b483ab46d7c3fbe165a0db275e1ae3cfe56a5657e5a47c2f99a99d1e"
$CacheDir = Join-Path $PSScriptRoot ".download-cache"
$ISOPath = Join-Path $CacheDir $ISOName
# Mirror list (China mirrors first)
$Mirrors = @(
"https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/24.04.2/$ISOName",
"https://mirrors.aliyun.com/ubuntu-releases/24.04.2/$ISOName",
"https://mirrors.ustc.edu.cn/ubuntu-releases/24.04.2/$ISOName",
"https://releases.ubuntu.com/24.04.2/$ISOName"
"https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/24.04.4/$ISOName",
"https://mirrors.aliyun.com/ubuntu-releases/24.04.4/$ISOName",
"https://mirrors.ustc.edu.cn/ubuntu-releases/24.04.4/$ISOName",
"https://releases.ubuntu.com/24.04.4/$ISOName"
)
# ── Create cache directory ──
@@ -50,7 +50,7 @@ if (Test-Path $ISOPath) {
}
# ── Download ISO ──
Write-Host "[INFO] Downloading Ubuntu 24.04.2 Desktop (~5.8 GB)..." -ForegroundColor Yellow
Write-Host "[INFO] Downloading Ubuntu 24.04.4 Desktop (~5.8 GB)..." -ForegroundColor Yellow
Write-Host " This will take a while depending on your connection." -ForegroundColor Gray
Write-Host ""
@@ -76,8 +76,8 @@ foreach ($mirror in $Mirrors) {
if (-not $downloaded) {
Write-Host ""
Write-Host "[ERROR] All download mirrors failed." -ForegroundColor Red
Write-Host " Please download Ubuntu 24.04.2 Desktop ISO manually:" -ForegroundColor Yellow
Write-Host " https://releases.ubuntu.com/24.04.2/" -ForegroundColor Yellow
Write-Host " Please download Ubuntu 24.04.4 Desktop ISO manually:" -ForegroundColor Yellow
Write-Host " https://releases.ubuntu.com/24.04.4/" -ForegroundColor Yellow
Write-Host " Save it as: $ISOPath" -ForegroundColor Yellow
Read-Host "Press Enter to exit"
exit 1

View File

@@ -13,7 +13,7 @@ Write-Host ""
# ── Config ──
$CacheDir = Join-Path $PSScriptRoot ".download-cache"
$ISOName = "ubuntu-24.04.2-desktop-amd64.iso"
$ISOName = "ubuntu-24.04.4-desktop-amd64.iso"
$ISOPath = Join-Path $CacheDir $ISOName
$PersistencePath = Join-Path $CacheDir "persistence.dat"
$VentoyConfigDir = Join-Path $PSScriptRoot "ventoy"

View File

@@ -35,7 +35,7 @@
│ - 开源引导管理器 v1.0.99 │
│ │
│ Ventoy 数据分区(可见) │
│ ubuntu-24.04.2-desktop-amd64.iso 5.8GB │
│ ubuntu-24.04.4-desktop-amd64.iso 5.8GB │
│ persistence.dat 20GB │
│ ventoy/ventoy.json 配置 │
│ u-claw-linux/ 脚本 │
@@ -93,7 +93,7 @@ cd path\to\u-claw\bootable
### Step 2: 下载 Ubuntu ISO (`2-download-iso.ps1`)
- 从国内镜像下载 Ubuntu 24.04.2 桌面版(~5.8GB
- 从国内镜像下载 Ubuntu 24.04.4 桌面版(~5.8GB
- 镜像优先级:清华 → 阿里 → 中科大 → 官方
- SHA256 校验确保文件完整
- 有缓存,不会重复下载
@@ -176,7 +176,7 @@ sudo bash /media/*/Ventoy/u-claw-linux/setup-openclaw.sh
{
"persistence": [
{
"image": "/ubuntu-24.04.2-desktop-amd64.iso",
"image": "/ubuntu-24.04.4-desktop-amd64.iso",
"backend": "/persistence.dat",
"autosel": 1
}
@@ -204,6 +204,7 @@ bootable/
├── 3-create-persistence.ps1 Step 3: 持久化镜像
├── 4-copy-to-usb.ps1 Step 4: 拷贝到 U 盘
├── linux-setup/
│ ├── format-persistence.sh 格式化持久化镜像
│ ├── setup-openclaw.sh 一键安装 OpenClaw
│ ├── start-openclaw.sh 启动脚本
│ └── openclaw.desktop 桌面快捷方式

View File

@@ -18,7 +18,7 @@
1. 脚本会自动尝试多个国内镜像(清华、阿里、中科大)
2. 如果全部失败,可以手动下载:
- 访问 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/24.04/
- 下载 `ubuntu-24.04.2-desktop-amd64.iso`
- 下载 `ubuntu-24.04.4-desktop-amd64.iso`
- 放到 `bootable/.download-cache/` 目录
3. 重新运行 `2-download-iso.ps1`

View File

@@ -0,0 +1,10 @@
#!/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."

View File

@@ -1,7 +1,7 @@
{
"persistence": [
{
"image": "/ubuntu-24.04.2-desktop-amd64.iso",
"image": "/ubuntu-24.04.4-desktop-amd64.iso",
"backend": "/persistence.dat",
"autosel": 1
}