命令:
sudo mount //x.x.x.x/Data /home/lfqy/x.x.x.x/ -o username=Administrator,password=123
参考http://blog.csdn.net/xia7139/article/details/8764261
http://www.cnblogs.com/Empenguin/archive/2013/03/12/2956833.html
===============================
root@Ubuntu32:/home/zhangbin# sudo apt-get install smbfs
Reading package lists... Done
Building dependency tree
Reading state information... Done
smbfs is already the newest version.
smbfs set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
======================================
root@Ubuntu32:/home/zhangbin# cd STM
root@Ubuntu32:/home/zhangbin/STM# ls
Backup setSTM2.4ToolsChain.sh
LibCode_playready setSTM2.4ToolsChain.sh~
LibCode_playready_down.tar STLinux-2.4
linux-sh4-2.6.32.59_stm24_V6.0 Untitled Document~
SDK36.2_SSDK36_PR_RC1 使用libcode的stpi4编译。。还是有报错呢。.txt
root@Ubuntu32:/home/zhangbin/STM# mkdir hiandroid240
root@Ubuntu32:/home/zhangbin/STM# cd hiandroid240/
root@Ubuntu32:/home/zhangbin/STM/hiandroid240# pwd
/home/zhangbin/STM/hiandroid240
root@Ubuntu32:/home/zhangbin/STM/hiandroid240# mkdir v200_1
root@Ubuntu32:/home/zhangbin/STM/hiandroid240# cd v200_1/
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200_1# ls
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200_1# pwd
/home/zhangbin/STM/hiandroid240/v200_1
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200_1# cd ..
root@Ubuntu32:/home/zhangbin/STM/hiandroid240# mv v
mv: missing destination file operand after `v'
Try `mv --help' for more information.
root@Ubuntu32:/home/zhangbin/STM/hiandroid240# mv v200_1/ v200
root@Ubuntu32:/home/zhangbin/STM/hiandroid240# cd v200
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200# ls
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200# mkdir es032
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200# cd es032/
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200/es032# pwd
/home/zhangbin/STM/hiandroid240/v200/es032
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200/es032# sudo mount //192.168.2.240/android2 /home/zhangbin/STM/hiandroid240/v200/es032
Password:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200/es032# cd ..
root@Ubuntu32:/home/zhangbin/STM/hiandroid240/v200# cd ..
root@Ubuntu32:/home/zhangbin/STM/hiandroid240# ls
v200
root@Ubuntu32:/home/zhangbin/STM/hiandroid240# cd ..
root@Ubuntu32:/home/zhangbin/STM# chown zhangbin -R HI
chown: cannot access `HI': No such file or directory
root@Ubuntu32:/home/zhangbin/STM# chown zhangbin -R hiandroid240/
root@Ubuntu32:/home/zhangbin/STM# ls
Backup setSTM2.4ToolsChain.sh
hiandroid240 setSTM2.4ToolsChain.sh~
LibCode_playready STLinux-2.4
LibCode_playready_down.tar Untitled Document~
linux-sh4-2.6.32.59_stm24_V6.0 使用libcode的stpi4编译。。还是有报错呢。.txt
SDK36.2_SSDK36_PR_RC1
root@Ubuntu32:/home/zhangbin/STM# chmod 777 -R hiandroid240/
root@Ubuntu32:/home/zhangbin/STM# sudo mount //192.168.2.240/android2 /home/zhangbin/STM/hiandroid240/v200/es032 -o username=zhangbin,password=******
root@Ubuntu32:/home/zhangbin/STM#
ls hiandroid240/v200/es032/
如果想让这个路径重新挂载到别的位置,必须先umount
root@Ubuntu32:/home/zhangbin/STM# umount hiandroid240/v200/es032/
否则说busy。
然后再用这个路径挂载一个远程的路径就好了。