Mount A File Share At Boot
If you want a computer to always connect to a file share when booted, try downloading mntshare.sh and use Geany to edit the indicated lines, then copy into /root/Startup. Mntshare.sh will mount the share in /mnt by default. You can also rename mntshare.sh to suit your needs.
To mount from inside your file manager on demand.
-Open mntshare.sh and edit the parameters for your share
-rename mntshare.sh to something you like
Example:
share name = music
edited mntshare.sh and renamed as mntmusic.sh
Partial code edit example
Code: Select all
#edit next 5 lines with your share data
username="root"
password="woofwoof"
share="music"
server="192.168.254.200"
options="1.0"
-open XFE or Rox in /mnt
-create a bookmark to /mnt
-copy or symlink mntmusic.sh into /mnt
Now all you have to do in the future is:
-open XFE or Rox
-click bookmarks
-choose /mnt
-click mntmusic.sh
-open the music directory
Alternate1:
When mtmusic.sh is clicked it creates a directory /mnt/music and mounts the share there.
-unmount /mnt/music
-open XFE or Rox in /mnt/music
-create a bookmark to /mnt/music
-copy or symlink mntmusic.sh into /mnt/music
Now all you have to do in the future is:
-open XFE or Rox
-click bookmarks
-choose /mnt/music
-click mntmusic.sh
Alternate2 for Rox:
-edit mntmusic.sh
-uncomment line 30 (rermove the # sign)
-save
-drag and drop mntmusic.sh to the desktop or other location you like
Now when you click mntmusic.sh it will mount the share and open it in ROX
wizard