我预装了 Windows 10,后来安装了 20.4.1 LTS 和 20.10,为两个 Ubuntu 操作系统创建了单独的交换分区,但两个 Linux 操作系统只使用了一个交换分区,如 20.04.1 和 20.10 上的 UUID 所示。并且不确定这是否会在某些情况下导致任何问题,但想确保两者都使用自己指定的交换分区。
这是在 Ubuntu 20.04.1 上
@ubuntu:~$ cat /etc/fstab
<file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=68c59802-de04-4349-b8a6-e0ba62bd16f7 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=AECF-7CBC /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda7 during installation
UUID=0bc06c35-9a9e-44c0-828f-e17e1e19ce96 none swap sw 0 0
这是 Groovy Gorrila
gorilla:$ cat /etc/fstab
<file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda8 during installation
UUID=efd12cbc-6f96-48ac-ba7e-de6e6b8aff16 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=AECF-7CBC /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda7 during installation
UUID=0bc06c35-9a9e-44c0-828f-e17e1e19ce96 none swap sw 0 0
# swap was on /dev/sda9 during installation
UUID=82395590-c296-4ea6-911c-dfb36b0773d0 none swap sw 0 0
答案1
从 Groovy Gorilla_ 中的 /etc/fstab 中删除这两行
# swap was on /dev/sda7 during installation
UUID=0bc06c35-9a9e-44c0-828f-e17e1e19ce96 none swap sw 0 0
因此它只有一个交换定义,并且它们是不同的。