修改/etc/fstab
Tofloor
poster avatar
xichen96
deepin
2018-06-21 08:41
Author
我想在/etc/fstab加入行,但是它说是overlay,但我用overlayroot-chroot又说不成功找不到overlay,所以该怎么办呢?
Reply Favorite View the author
All Replies
avatar
xichen96
deepin
2018-06-21 09:55
#1
本帖最后由 xichen96 于 2018-6-21 04:32 编辑
  1. #
  2. #  This fstab is in an overlay.  The real one can be found at
  3. #  /media/root-ro/etc/fstab
  4. #  The original entry for '/' and other mounts have been updated to be placed
  5. #  under /media/root-ro.
  6. #  To permanently modify this (or any other file), you should change-root into
  7. #  a writable view of the underlying filesystem using:
  8. #      sudo overlayroot-chroot
  9. #
  10. #     
  11. # This fstab is in an overlay.  The real one can be found at
  12. # /media/root-ro/etc/fstab   
  13. # The original entry for '/' and other mounts have been updated to be placed
  14. # under /media/root-ro.   
  15. # To permanently modify this (or any other file), you should change-root into
  16. # a writable view of the underlying filesystem using:
  17. # sudo overlayroot-chroot   
  18. #     
  19. # /dev/nvme0n1p2   
  20. UUID=xxxxxxxxxxxxxxxxxxxxx / ext4 rw,relatime,data=ordered 0 1
  21.      
  22. # /dev/nvme0n1p1   
  23. UUID=xxxxxxxxxxxxxxxxxxxx /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
  24.      
  25. #overlayroot:swapfile#/swapfile none swap defaults 0 0
Copy the Code

最后一句是我加的,但变了多了一个井号
Reply View the author
avatar
wtz
deepin
2018-06-21 10:28
#2
把   sudo overlayroot-chroot   这个命令的输出结果贴上来看看。
Reply View the author
avatar
xichen96
deepin
2018-06-21 11:34
#3
ERROR: Unable to find an overlayroot file system
Reply View the author
avatar
xichen96
deepin
2018-06-21 11:35
#4
https://bbs.deepin.org/post/158663
把   sudo overlayroot-chroot   这个命令的输出结果贴上来看看。

ERROR: Unable to find an overlayroot file system
Reply View the author
avatar
wtz
deepin
2018-06-21 12:40
#5
https://bbs.deepin.org/post/158663
ERROR: Unable to find an overlayroot file system

不是很了解overlayroot的运作机理,帮顶一下。
楼主是在配置服务器么?能否提供一下硬件的型号?
Reply View the author
avatar
xichen96
deepin
2018-06-21 12:43
#6
https://bbs.deepin.org/post/158663
不是很了解overlayroot的运作机理,帮顶一下。
楼主是在配置服务器么?能否提供一下硬件的型号? ...

是个人电脑。装系统时候没设置swap space,所以我需要改fstab
Reply View the author