红联Linux门户
Linux帮助

Linux文件系统变成只读以后

发布时间:2007-07-24 00:54:41来源:红联作者:realize
  很奇怪的问题,由以下方法解决:

  1、mount:
  用于查看哪个模块输入只读,一般显示为:

  /dev/hda1 on / type ext3 (rw)
  none on /proc type proc (rw)
  usbdevfs on /proc/bus/usb type usbdevfs (rw)
  none on /dev/pts type devpts (rw,gid=5,mode=620)
  /dev/hda5 on /home type ext3 (rw)
  none on /dev/shm type tmpfs (rw)
  /dev/hda2 on /usr/local type ext3 (rw)
  /dev/nb1 on /EarthView/RAW type ext3 (ro)

  2、如果发现有ro,就重新mount,或者umount以后再remount

  3、umount /dev/nb1
  如果发现有提示“device is busy”,找到是什么进程使得他busy

  fuser -m /mnt/data 将会显示使用这个模块的pid
  fuser -mk /mnt/data 将会直接kill那个pid

  然后重新mount即可。

  4、还有一种方法是直接remount,命令为

  mount -o rw,remount /mnt/data 没有用过,看到网络上有这么写。
文章评论

共有 2 条评论

  1. 张成铭 于 2009-04-10 10:05:55发表:

    试验一下,受了

  2. together 于 2007-07-24 12:46:23发表:

    路过学点东西:ha3nd