Re: 在 Ubuntu 20.04 里制作最新版 可开机 可修改 的 Debian Bullseye Persistent LiveUSB
发表于 : 2021-01-07 5:30
在Ubuntu 20.04 里制作 Debian persistent LiveUSB 的步骤已在另帖提到,重述如下:
1. 如另帖所述,用 gparted 在U棒上做两个分割区,唯一不同的是第二个分割区的标签设为 "persistence" (而不是 casper-rw)。
2. 把 Debian iso 的内容复制到第一个分割区(标签为EFI,4GB):
3. 在grub.cfg 的第一个开机选择(menuentry)里加入 persistence 参数(在 Ubuntu 里则是 "persistent“):
(上面的指令在 "components" 前面加 “persistence" 参数)
4. 在 persistence 分割区放入一个叫 persistence.conf 的档案(这个动作在 Ubuntu 不需要):
1. 如另帖所述,用 gparted 在U棒上做两个分割区,唯一不同的是第二个分割区的标签设为 "persistence" (而不是 casper-rw)。
2. 把 Debian iso 的内容复制到第一个分割区(标签为EFI,4GB):
代码: 全选
sudo mount debian-live-testing-amd64-gnome+nonfree.iso /mnt
rsync -r --progress /mnt/ /media/$USER/EFI
代码: 全选
sed -i.bak '0,/components/s//persistence &/' /media/$USER/EFI/boot/grub/grub.cfg
4. 在 persistence 分割区放入一个叫 persistence.conf 的档案(这个动作在 Ubuntu 不需要):
代码: 全选
sudo chmod 777 /media/$USER/persistence
echo / union > persistence.conf
sudo chmod 777 persistence.conf