Skip to content


自动mount分区

fdisk -l 得到需挂载的硬盘/dev/sda1

先mount一下

mkdir /opt && chmod 0777 /opt

mount /dev/sda1 /opt

成功后改/etc/fstab里的LABEL名字的步骤如下:

e2label /dev/sda1 /opt

修改并写入/etc/fstab
例如:
LABEL=/opt          /opt                   ext3    defaults        1 2

重启

Posted in LINUX, 技术.


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.