目标板设置nfs文件开机挂载及脚本挂卸载
2012-02-20 20:39
225 查看
一、脚本设置nfs文件挂卸载,脚本内容如下:
#programe:
#mount or umount Ubuntu10.10 nfs folder /work
#History
#2012.02.17 klutz first release
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
read -p "mount or umount (m/u):" mu
if [ "$mu" == "M" ] || [ "$mu" == "m" ]; then
mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.12.2:/work /mnt/ubuntu_share
elif [ "$mu" == "U" ] || [ "$mu" == "u" ]; then
umount /mnt/ubuntu_share
fi
将脚本放入环境变量下,执行时,输入m挂载,输入u卸载。
二、自动挂载:
在/etc/init.d下的rcS文件末尾加上
mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.12.2:/work /mnt/ubuntu_share
#programe:
#mount or umount Ubuntu10.10 nfs folder /work
#History
#2012.02.17 klutz first release
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
read -p "mount or umount (m/u):" mu
if [ "$mu" == "M" ] || [ "$mu" == "m" ]; then
mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.12.2:/work /mnt/ubuntu_share
elif [ "$mu" == "U" ] || [ "$mu" == "u" ]; then
umount /mnt/ubuntu_share
fi
将脚本放入环境变量下,执行时,输入m挂载,输入u卸载。
二、自动挂载:
在/etc/init.d下的rcS文件末尾加上
mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.12.2:/work /mnt/ubuntu_share
相关文章推荐
- redis设置为系统服务并开机启动(附脚本文件)
- 目标板通过nfs挂载根文件系统
- NFS 网络文件系统 配置 挂载 卸载
- NFS挂载文件系统的设置和使用
- 设置BootLoader环境变量,通过NFS挂载文件系统
- nfs挂载文件系统设置及使用
- 在redhat系统如何设置支持NTFS系统文件并开机自动挂载
- nfs挂载文件系统设置及使用
- ubuntu8.04 nfs挂载文件系统设置
- 嵌入式应用/驱动开发网络环境设置-使用NFS网络文件系统挂载根文件系统
- linux系统之间通过nfs网络文件系统挂载设置方法
- zedboard 配置一个带NFS文件系统的内核和开机自动挂载sd卡
- chapter8:Linux磁盘与文件系统管理之(4)设置开机挂载
- 虚拟机挂载到开发板的脚本文件,可以指定挂载目录,能自动设置开发板的ip
- NFS客户端在/etc/fstab设置开机挂载后,开机时无法进入系统
- 攻城狮在路上(叁)Linux(二十四)--- linux设置开机挂载及镜像文件挂载
- 客户端如何挂载和卸载nfs服务器文件
- linux系统之间通过nfs网络文件系统挂载设置方法
- nfs设置开机挂载
- 开发板设置NFS挂载文件系统