Skip to content

Instantly share code, notes, and snippets.

@hmoenck
Last active July 25, 2016 13:25
Show Gist options
  • Save hmoenck/bc4a180f940b15be60e3a6ee62b9c696 to your computer and use it in GitHub Desktop.
Save hmoenck/bc4a180f940b15be60e3a6ee62b9c696 to your computer and use it in GitHub Desktop.
Startup script for Acquisition machines.
#!/bin/bash
#Startup script for Acquisition machines.
#Increase USB memory cap
sudo bash -c 'sudo echo 1000 > /sys/module/usbcore/parameters/usbfs_memory_mb'
#Mount NTFS device
sudo mount -t ntfs-3g -o mount,rw,umask=0000,uid=1000,gid=1000 /dev/sdxy /media/my/folder/
#ssh mount foreign folder. Don't forget to set allow_other!
sshfs -o IdentityFile=/home/myuser/.ssh/id_rsa,allow_other myuser@host:/mnt/my/folder /mnt/my/folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment