将Ubuntu Server 14.04 LTS升级到16.04 LTS后,系统只读

今天我使用sudo do-release-upgrade将我的Ubuntu服务器从14.04升级到16.04,这一过程顺利进行,直到它重新启动并登录。我在哪里遇到以下消息:

 Unable to setup logging. [Error 30] Read only file system: 'var/log/landspace/sysinfo.log' run-parts: /etc/update-motd.d/50-landscape-sysinfo exited with return code 1 /usr/lib/ubuntu-release-upgrader/release-upgrade-motd: 39: /usr/lib/ubuntu-release-upgrader/release-upgrade-motd: cannot create /var/lib/ubuntu-release-upgrader/release-upgrader-available: Read-only file system /usr/lib/update-notierfier/update-motd-fsck-at-reboot: 33: /usr/lib/update-notifier/update-motd-fsck-at-reboot: cannot create /usr/liv/update-notifier-fsck-at-reboot: Read-only file system -bash: cannot create temp file for here-document: Read-only file system 

所以我认为系统是只读的,如果文件系统或磁盘存在某种错误/损坏,这是一种预防措施?

所以我的问题是两个折叠:

  1. 究竟发生了什么?
  2. 我如何解决它?

不知道这是否相关,但操作系统运行USB笔,而Raid 5中有6个驱动器。

提前致谢!

显然我可以重新安装操作系统并重新设置所有内容,这只需要几个小时,但我真的想学习并理解它:)

编辑1

dmesg日志添加: http : //pastebin.com/0bP8T4hH

编辑2

/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). # #       # / was on /dev/sda1 during installation /dev/md0 /mnt/rdisk ext4 user 0 0 

无论出于何种原因,你的/etc/fstab甚至都没有提到目录根的挂载点。 鉴于您实际上在/dev/sdg1上有系统,请按如下方式修改文件:

 # /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). # #       # / was on /dev/sda1 during installation /dev/md0 /mnt/rdisk ext4 user 0 0 /dev/sdg1 / ext4 rw,noatime,data=ordered 0 1 

重新启动以测试它是否有效,但实际上我不建议直接在文件中使用/dev/sdg1 ,因为设备名称可能会更改。 你最好使用文件系统的UUID。 要找到它,请执行ls -l /dev/disk/by-uuid/ | grep sdg1 ls -l /dev/disk/by-uuid/ | grep sdg1 。 然后用/dev/sdg1 /etc/fstab中的UUID=The-Number-You-Just-Got替换/dev/sdg1