我在 ext4 分区上安装了 Ubuntu,在扩展分区中的其他逻辑分区上安装了 Arch。当我只使用一系统,但当我交替使用它们时,会发生以下情况:
- 案例A: 首先使用 Ubuntu,然后启动 Arch:在启动 Arch 时,启动在某个时刻失败,系统提示主分区有问题。使用 可以轻松修复此问题
fsck
。 - 案例 B: 先使用 Arch,然后启动 Ubuntu:在启动时,Ubuntu 会显示一些硬盘检查信息,可能需要更长的时间才能启动,但随后可以正常启动。
为什么会发生这种情况?如何解决?
编辑1
Ubuntu的/etc/fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda8 during installation
UUID=bbd528b3-5e5e-4b33-aabd-b386c43b7347 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda9 during installation
#UUID=4329a4c7-2ee3-43a6-b353-f83e24047122 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
# Dateien: /dev/sda3: LABEL="Dateien" UUID="71B500522BEFD2C2" TYPE="ntfs"
# diabled becuase it mounts itselfs again: /dev/sda3 /media/sda3 ntfs auto 0 0
UUID=71B500522BEFD2C2 /media/Dateien ntfs defaults,nls=utf8,uid=1000,umask=000,windows_names 0 0
- Arch 是 sda[6-9]
- Ubuntu 是 sda2
编辑2
Arch 的 /etc/fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
#/dev/sda5 swap swap defaults 0 0
#LABEL=/ / ext3 defaults 0 1
#LABEL=/boot /boot ext2 defaults 0 1
#LABEL=/home /home ext3 defaults 0 1
#LABEL=/opt /opt ext3 defaults 0 1
#/dev/sda5 swap swap defaults 0 0
UUID=0d4af9ca-1654-4153-9367-d547fdf95fb9 swap swap defaults 0 0
#LABEL=/ / ext3 defaults 0 1
UUID=551c8fda-808b-4292-9549-a7b001f11b52 / ext3 defaults 0 1
#LABEL=/boot /boot ext2 defaults 0 1
UUID=d56c00ec-3373-40c8-ba79-b871a778c60a /boot ext2 defaults 0 1
#LABEL=/home /home ext3 defaults 0 1
UUID=d9b0fc01-8a85-48ed-86e6-25a1ef1f2521 /home ext3 defaults 0 1
#LABEL=/opt /opt ext3 defaults 0 1
UUID=0ef3c4db-9026-4081-a84a-db12c7a5b5bf /opt ext3 defaults 0 1