Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. mount_share () {
  2.  
  3. mkdir /data
  4. echo //$STORAGE_NAME.file.core.windows.net/$STORAGE_SHARE /data cifs vers=3.0,username=$STORAGE_NAME,password=$STORAGE_KEY,dir_mode=0755,file_mode=0644,serverino >> /etc/fstab
  5. mount -a
  6.  
  7. }
  8.  
  9. root@xx255rs2sptry000001:~# STORAGE_NAME=ggg
  10. root@xx255rs2sptry000001:~# STORAGE_KEY=sakey
  11. root@xx255rs2sptry000001:~# STORAGE_SHARE=sashare
  12. root@xx255rs2sptry000001:~# echo //$STORAGE_NAME.file.core.windows.net/$STORAGE_SHARE /data cifs vers=3.0,username=$STORAGE_NAME,password=$STORAGE_KEY,dir_mode=0755,file_mode=0644,serverino >> /etc/fstab
  13. root@xx255rs2sptry000001:~# cat /etc/fstab
  14. # CLOUD_IMG: This file was created/modified by the Cloud Image build process
  15. UUID=e990f8b3-1d6b-4615-8280-8ead4ed2fe7c / ext4 defaults,discard 0 0
  16.  
  17. # CLOUD_IMG: This file was created/modified by the Cloud Image build process
  18. # The following is used to dynamically configured additional
  19. # NICs. Do not remove unless you know what you are doing.
  20. none /etc/network/interfaces.dynamic.d tmpfs nodev,noexec,nosuid,size=64K 0 0
  21. /dev/disk/cloud/azure_resource-part1 /mnt auto defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig 0 2
  22. //ggg.file.core.windows.net/sashare /data cifs vers=3.0,username=ggg,password=sakey,dir_mode=0755,file_mode=0644,serverino
  23. root@xx255rs2sptry000001:~# mount -a
  24. mount: /etc/fstab: parse error: ignore entry at line 9.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement