Register now and start sharing your code snippets.
Mounting a remote network drive with SSHFS on OSX
Shell Script (Bash) posted 23 days ago by christian
- Install SSHFS
http://code.google.com/p/macfuse/
- Read documentation
http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SSHFS
- Create symlink
1 ln -s /Applications/sshfs.app/Contents/Resources/sshfs-static /usr/local/bin/sshfs
- Mount drive
1 mkdir /Volumes/mount_name 2 sshfs -p 666 server:/ /Volumes/mount_name -oreconnect,ping_diskarb,volname=mount_name
- References
http://lifehacker.com/software/ssh/geek-to-live—mount-a-file-system-on-your-mac-over-ssh-246129.php
Mount an ISO file in Linux
Shell Script (Bash) posted about 1 year ago by christian
1 # mkdir /mnt/iso 2 # mount -o loop -t iso9660 file.iso /mnt/iso
Mount a network drive with proper privileges
Shell Script (Bash) posted about 1 year ago by marko
This is not a snippet either, but I always forget how the local permissions for a Samba mount are given, which is the reason I put it here. Uid is the id of the user you want to mount the drive as, and gid is respectively the group id. Username is the username you want to connect with.
1 sudo mount -t smbfs -o uid=1000,gid=1000,username=marko //remote_server/work /mnt/net/stage/work