LINUX & 技术 26 Jun 2008 05:21 pm

自动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

重启

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply