mount


例1:

mount -o loop /opt/release_iso/release012.iso /home/share/


错误解决:

mount: could not find any free loop device


表示loop Device以已经用完。

ll /dev/loop*   #查看有哪些loop deive


最简单有效的方法是释放一些被占用的loop device,可以用如下命令:

losetup -d /dev/loop7  

(当然这里的loop7根据自己的情况来选择释放哪个loop device)


losetup -a   #show status of all loop devices

losetup /dev/loop0   #如果该设备loop已被使用,则会得到如下的提示

/dev/loop0: [0801]:266646 (/share/xvs/var/tmp-img_VTD_ASS_04_131), offset 16384

losetup /dev/loop6   #如果该设备loop未被使用,则会得到如下的提示

loop: can't get info on device /dev/loop6: No such device or address

losetup -d /dev/loop7     #detach the file or device associated with the specified loop device(s)


///

cifs mount

例2:

不带密码

mount -t cifs //19.88.11.99/hws /home/zhangsan/ -o username=zhangsan


带密码

mount -t cifs //10.22.33.32/testdir /home/tt01 -o username=zhangsan,password=pass

///

nfs mount

例3:

mount -t nfs -o nolock 10.19.52.40:/home/zhangsan/ /mnt/backupdir/m001


一些优秀的资料:

nfs学习

http://blog.21ic.com/user1/7313/archives/2010/73008.html


http://www.oschina.net/question/17_633


http://www.tldp.org/LDP/nag2/x-087-2-nfs.mountd.html


http://www.centos.org/docs/2/rhl-cg-en-7.2/nfs-mount.html



nfs性能调优

http://www.csdn.net/article/a/2011-02-11/291647



mount 的nfs -o参数:

tcp 采用tcp方式

rsize,wsize --设定了SERVER和CLIENT之间往来数据块的大小