当前位置: 技术问答>linux和unix
提示 read-only file system
来源: 互联网 发布时间:2017-01-14
本文导语: 从网上下载了一个vmware 镜相文件,用root 登陆,但用vi, mkdir 总是提示 read-only file system 这是怎么回事,权限应该有呀!谢谢!! | 更改挂载方式为只读或可写 [root@RHEL4_U5 ~]# mount /dev/sdb1 /mou...
从网上下载了一个vmware 镜相文件,用root 登陆,但用vi, mkdir 总是提示 read-only file system
这是怎么回事,权限应该有呀!谢谢!!
这是怎么回事,权限应该有呀!谢谢!!
|
更改挂载方式为只读或可写
[root@RHEL4_U5 ~]# mount /dev/sdb1 /mountpoint/
[root@RHEL4_U5 ~]# mount
/dev/sda3 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /mountpoint type ext3 (rw)
[root@RHEL4_U5 ~]# touch /mountpoint/manifold
[root@RHEL4_U5 ~]# ls /mountpoint/manifold
/mountpoint/manifold
[root@RHEL4_U5 ~]# mount -o remount -o ro /dev/sdb1 /mountpoint/
[root@RHEL4_U5 ~]# touch /mountpoint/manifolden
touch: cannot touch `/mountpoint/manifolden': Read-only file system
[root@RHEL4_U5 ~]# mount -o remount -o rw /dev/sdb1 /mountpoint/
[root@RHEL4_U5 ~]# touch /mountpoint/manifolden
[root@RHEL4_U5 ~]# ls /mountpoint/manifolden
/mountpoint/manifolden
[root@RHEL4_U5 ~]#
[root@RHEL4_U5 ~]# mount /dev/sdb1 /mountpoint/
[root@RHEL4_U5 ~]# mount
/dev/sda3 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /mountpoint type ext3 (rw)
[root@RHEL4_U5 ~]# touch /mountpoint/manifold
[root@RHEL4_U5 ~]# ls /mountpoint/manifold
/mountpoint/manifold
[root@RHEL4_U5 ~]# mount -o remount -o ro /dev/sdb1 /mountpoint/
[root@RHEL4_U5 ~]# touch /mountpoint/manifolden
touch: cannot touch `/mountpoint/manifolden': Read-only file system
[root@RHEL4_U5 ~]# mount -o remount -o rw /dev/sdb1 /mountpoint/
[root@RHEL4_U5 ~]# touch /mountpoint/manifolden
[root@RHEL4_U5 ~]# ls /mountpoint/manifolden
/mountpoint/manifolden
[root@RHEL4_U5 ~]#