Linux problems solved today c2 - 20071008 0 Comments 利用/etc/rc.d/rc.local,开机挂载文件系统。 ``` [lax@localhost ~]$ cat /etc/rc.d/rc.local #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local # mount Fedora-7-i386-DVD.iso -by lax- echo $'\n' echo "========================="; echo "Mounting F-7-i386-DVD.iso"; echo "========================="; mount /mnt/6d/fedora/F-7-i386-DVD.iso /mnt/7var/Server/ftp/pub/soft-open.source/fedora/lax-F-7-i386-DVD.iso/ -t iso9660 -o loop; echo $'\n'; echo "========================="; echo " Mounting Finished "; echo "========================="; df -h; # mount succeed. ```