百度空间 | 百度首页 
 
查看文章
 
Linux文件系统变成只读以后
2009-03-30 21:23
 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 没有用过,看到网络上有这么写。

类别:Linux | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu