将 Ubuntu 20.04 从 m.2 SSD 克隆到 nvme SSD。克隆后新生成的 nvme 上的 UUID。两者都可以工作,但有以下骑手:
\nnvme ubuntu 的 fstab 中的 UUID 必须是 SSD ubuntu 的 UUID,否则会出现错误“无法启动重新安装根和内核文件系统”。
\n但是两个 Ubuntu 分区都是独立工作的,因为 nvme 版本从原来的 20.04.01 更新到了 20.04.03。SSD 上的版本仍然是 20.04.01。
\n如果在 fstab 中输入相应的 UUID,则两个分区都不会启动。
\n我使用旧版引导 BIOS 并使用 Clover 引导加载程序,两个磁盘上都有 GPT fs。
$ lsblk -o name,size,fstype,label,uuid,mountpoint,model|sed 's/ *$//';\nNAME SIZE FSTYPE LABEL UUID MOUNTPOINT MODEL \nloop0 185.4M squashfs /snap/audacity/920 \nloop1 185.3M squashfs /snap/audacity/922 \nloop2 4K squashfs /snap/bare/5 \nloop3 99.4M squashfs /snap/core/11993 \nloop4 61.9M squashfs /snap/core20/1169 \nloop5 99.5M squashfs …Run Code Online (Sandbox Code Playgroud)