/etc/fstab
However, it doesn't work. it is actually because the network hasn't been initiallized.
so I decided to put
mount -t cifs //file.eait.uq.edu.au/username /home/chenming/Hdrive -o username=username,password="pass",domain=UQ,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,gid=1000,uid=1000
into
/etc/sysconfig/network-scripts/ifup or ifup-eth
but it seems not working either.
Finally, the method works by putting
mount -t cifs //file.eait.uq.edu.au/username /home/chenming/Hdrive -o username=username,password="pass",domain=UQ,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,gid=1000,uid=1000
in
/etc/NetworkManager/dispatcher.d/hdrive
and change hdrive into executable. now it works like a charm
No comments:
Post a Comment