我在ssh上将Ubuntu (尽管我正在使用它作为服务器)从14.04更新到16.04。完成并重新启动后,它将引导到只读文件系统.
root@Server:/# touch a
touch: cannot touch 'a': Read-only file system我尝试了mount -o remount,rw /,但是输出是mount: can't find UUID=/dev/sda1。我认为UUID以某种方式更改为/dev/sda1 1。这是/etc/fstab的内容。
root@Server:/# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda1 during installation
UUID=/dev/sda1 / ext4 errors=remount-ro 0 1
# UUID=643d9cab-177e-4eee-a52f-224ebf0bc405 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=481bc70a-eb80-4040-93a1-696c46faa638 none swap sw 0 0我想我应该注释行UUID=/dev/sda1 1,取消注释行UUID=643d9Ca-...就在下面,但是由于根文件系统是以只读方式挂载的,所以我做不到。我不知道这是否有用,但这是内核消息的一部分。
root@KrootServer:/# dmesg|grep mount
[ 1.794106] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 5.675605] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 19.677056] cgroup: new mount options do not match the existing superblock, will be ignored那么我该如何解决这个问题呢?我正在设法解决ssh上的问题,所以如果我需要物理访问机器,请告诉我。
+的sudo blkid结果
ian0371@Server:~$ sudo blkid
/dev/sda1: UUID="643d9cab-177e-4eee-a52f-224ebf0bc405" TYPE="ext4" PARTUUID="0000e118-01"
/dev/sda5: UUID="481bc70a-eb80-4040-93a1-696c46faa638" TYPE="swap" PARTUUID="0000e118-05"`发布于 2017-01-28 16:11:30
现在让我们试试这个修复:
/etc/fstab更改如下:#UUID=/dev/sda1 1/ ext4错误=re装入-ro 0 1 UUID=643 d9ca-177e-4eee-A52F-224ebf0bc405/ ext4错误=re装入-ro 0 1发布于 2017-03-09 12:33:26
在引导到复制的根文件系统时,我也遇到了同样的问题(我忘记调整/etc/fstab中的UUID值)。结果表明,如果不指定设备,mount -o remount仍然会在/etc/ you中查找。当手动指定设备时,它起了作用:
mount -o remount,rw /dev/sda1 /发布于 2017-01-26 15:11:26
你的/etc/fstab有问题。
UUID=/dev/sda1 / ext4 errors=remount-ro 0 1
# UUID=643d9cab-177e-4eee-a52f-224ebf0bc405 / ext4 errors=remount-ro 0 THe第一行是错误的,/dev/sda1 1不是uuid。第二行看起来是正确的。在第一行前面放一个#,然后把它移到下面的线上。
您可以通过blkid /dev/sda1验证UUID。如果它不同,请更改/etc/fstab中的一个,使其与之匹配。
或者可以删除/dev/sda1 1前面的UUID=
https://askubuntu.com/questions/876510
复制相似问题