如何修改Linux系统分区后挂载问题

时间:2009-05-26

  就和windows一样,在linux下手工修改分区的事情也经常发生。但是linux却要比windows麻烦了一点点:

  修改了分区,自然放在 /etc/fstab 里自然挂载,而不是在 /etc/rc.local 里开机后挂载。

  如何写?

  这里以修改“LABEL=/nat /nat ext3 rw,noatime"为例子:

  1.umount /nat

  2.e2label /dev/hdd3 /nat

  3.mount LABEL=/nat /nat

  4.修改并写入/etc/fstab

  例如:

  LABEL=/nat /nat ext3 rw,noatime 1 2

  这样就好了,千万不可不经过1,2,3步,直接进入第四步,否则你会出现以下错误提示,进入 filesystem repair 模式:

  fsck.ext3:unable to resolve /LABEL=/nat'

  give root password for maintenance

  (or type control -D to continue):

  如果出现这个错误,还怎么办呢?以下是方法:

  进入repair system模式,然后进入运行级别1(init 1),再回到运行级别3(init 3)就可以了,不过我是在fedora5,和redhat恩enterprise上试验的,进入系统后可能处于只读状态,可以通过mount -n -o remount,rw / 来变为可读写状态。



  
上一篇:直接变频接收机可实现多标准/多频段接收
下一篇:关于优化Linux系统硬盘的七个实用技巧

免责声明: 凡注明来源本网的所有作品,均为本网合法拥有版权或有权使用的作品,欢迎转载,注明出处。非本网作品均来自互联网,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。

相关技术资料