LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
/dev/md0 /var/raid5 ext3 defaults 0 0 //添加此行
[root@test ~]# cd /var/raid5/
[root@test raid5]# ll
total 16
drwx------ 2 root root 16384 Jun 7 20:08 lost+found
[root@test raid5]# init 6 //重启后查看是不是自动挂载
[root@test ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 17981340 2301168 14752020 14% /
/dev/sda1 295561 16161 264140 6% /boot
tmpfs 517352 0 517352 0% /dev/shm
/dev/md0 6192576 143488 5734524 3% /var/raid5 //自动挂载了
[root@test ~]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/md0 on /var/raid5 type ext3 (rw) //自动挂载了
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)