Why does Ubuntu/linux make it so freaking difficult to do the equivalent of the Windows command "Map Network Drive"?
January 9, 2009 5:08 AM Subscribe
For the purposes of using Amarok on my laptop, which can not be told that my music folder is located in a shared folder on my media center (as far as I can see), I need to permanently mount the shared music network folder in Ubuntu. They don't make it very easy it seems. Have to use a bunch of comand line editing to get it done? Come on Ubuntu!
posted by Jackie_Treehorn to computers & internet (4 answers total) 4 users marked this as a favorite
add this to the end of /etc/fstab, using
# sudo vi /etc/fstabor# sudo gedit /etc/fstab//ntserver/music /mnt/music smbfs username=Jackie_Treehorn,password=smutbusiness 0 0and if you weren't connected to the local network, and then are and want to re-establish the samba mount, run "mount -a" which mounts everything listed in /etc/fstab. here is a dead simple script you could save in ~Desktop/mount.sh to do this:
#!/bin/bash
mount -a
exit 0
then make sure that the script is executable:
# chmod +x ~Desktop/mount.shand then in the future you can just click the icon on your desktop to remount your samba share. I'll leave it as an exercise for the reader to make an unmount script if you leave your network connection without shutting down the system first.
there may be a nice GUI way of doing this (look at LinNeighborhood, might work, I've never used it.) The command line is your friend.
posted by jrishel at 5:56 AM on January 9, 2009