本帖最後由 javacomhk 於 2022-4-7 11:25 編輯
如果要加隻例如 Debian ISO,就要去下載 nonfree 嘅 ISO, 一般都有較多 driver 。
例如 : debian-live-11.2.0-amd64-kde+nonfree.iso
(1) 將 debian-live-11.2.0-amd64-kde+nonfree.iso 放入去 "E:\iso"
(2) 將 "persistence_ext4_4GB_persistence.dat.7z" 解壓為"persistence_ext4_4GB_persistence.dat" 放入去 ""E:\persistence""
(3) 修改 ""E:\ventoy\ventoy.json"" 為- {
- "persistence": [
- {
- "image": "/iso/ubuntu-20.04.4-desktop-amd64.iso",
- "backend": [
- "/persistence/persistence_ext4_4GB_casper-rw.dat"
- ],
- "autosel": 1,
- "timeout": 5
- },
- {
- "image": "/iso/debian-live-11.2.0-amd64-kde+nonfree.iso",
- "backend": [
- "/persistence/persistence_ext4_4GB_persistence.dat"
- ],
- "autosel": 1,
- "timeout": 5
- }
- ],
- "conf_replace": [
- {
- "iso": "/iso/ubuntu-20.04.4-desktop-amd64.iso",
- "org": "/boot/grub/grub.cfg",
- "new": "/ventoy/ubuntu.cfg"
- },
- {
- "iso": "/iso/debian-live-11.2.0-amd64-kde+nonfree.iso",
- "org": "/boot/grub/grub.cfg"",
- "new": "/ventoy/debian-kde.cfg"
- }
- ]
- }
複製代碼 (4) 用 Windows File Explorer 打開 debian-live-11.2.0-amd64-kde+nonfree.iso 將 /boot/grub/grub.cfg 抄去成為 "E:\ventoy\debian-kde.cfg"
(5) 修改 "E:\ventoy\debian-kde.cfg" 並增加以下 2 項 menuentry- menuentry 'Run with persistence' {
- linux /live/vmlinuz-5.10.0-10-amd64 boot=live components persistence splash quiet "${loopback}"
- initrd /live/initrd.img-5.10.0-10-amd64
- }
- menuentry 'Run and reset persistence' {
- linux /live/vmlinuz-5.10.0-10-amd64 boot=live components persistence persistence-reset splash quiet "${loopback}"
- initrd /live/initrd.img-5.10.0-10-amd64
- }
複製代碼 (6) 儲存完成修改後便可重啟電腦,boot 起 USB 使用。debian username "user", password "live" |