![RAID 上的 mountall 问题](https://linux22.com/image/836743/RAID%20%E4%B8%8A%E7%9A%84%20mountall%20%E9%97%AE%E9%A2%98.png)
我安装了带有软件 RAID 1 的 Ubuntu Server 12.04 x64,并且必须运行引导修复才能使系统可引导。现在一切似乎都正常,只是每次引导时都会抛出以下警告:
swapon: /dev/disk/by-uuid/51a0d1be-d9d7-4d08-aebc-bddc25cdc4e5: swapon failed: Device or resource busy
mountall: swapon: /dev/disk/by-uuid/51a0d1be-d9d7-4d08-aebc-bddc25cdc4e5 [447] Terminated with status 255
mountall: Problem activating swap: /dev/disk/by-uuid/51a0d1be-d9d7-4d08-aebc-bddc25cdc4e5
/dev/md0: clean, 12.../600... files, .../... blocks
正如你所看到的启动信息文件,上面提到的分区是 RAID 阵列的两个驱动器(sda1、sdb1)的交换分区。fdisk -l 还显示了一些错误。找不到任何适用的解决方案。
fstab内容:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=f6f13096-6514-4a5e-9fe9-151754c56b64 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda1 during installation
UUID=51a0d1be-d9d7-4d08-aebc-bddc25cdc4e5 none swap sw 0 0
# swap was on /dev/sdb1 during installation
UUID=51a0d1be-d9d7-4d08-aebc-bddc25cdc4e5 none swap sw 0 0
附加信息:也许它与启动修复警告有关[dmraid] packages may interfere with MDraid. Do you want to remove them?
(我单击了“否”)。
我该怎么做才能解决这个问题?fsck?
感谢任何帮助!
答案1
fstab 中的重复条目:
UUID=51a0d1be-d9d7-4d08-aebc-bddc25cdc4e5 none swap sw 0 0
你应该删除其中一个,即使评论有一些不同。