You have it backwords. You mount the filesystems found on a device on a directory, not the other way around.
Linux like Unix uses a hierarchal file structure. There is a root file system and all other filesystems are mounted on directories or subdirectories under root. So all you need to do is create a /media directory and use that. According to the LFHS (Linux Filesystem Hierarchy Standard), /media is used for mounting removable devices. /mnt is used for temporarily mounting devices. Most distro's are set up so that if you insert a usb or firewire drive, the udev and hal or udev and hotplug system will dynamically create a device node (i.e. /dev/sda ) for the device and any partition on the device (i.e. /dev/sda1, /dev/sda2 ).
You could create a directory under /home. You could call it /home/media and share that using samba.
Your distro may have a configuration program to help you, or you could use samba swat to configure in. Swat is a web based configuration tool that comes with samba.
If you have samba installed, look at the /etc/xinet.d/swat file.
Code:
# SWAT is the Samba Web Administration Tool.
service swat
{
port = 901
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
only_from = 127.0.0.1
log_on_failure += USERID
disable = no
}
Yours probably looks like this, but you may have the line "disable = yes". Change the yes to no. And restart the xinet.d service: "sudo /usr/bin/service xinet.d restart". After that, see if you can browse to "http://localhost:901".
Note: sometimes the xinet.d itself isn't started. You can use your services gui tool to enable xinet.d to run when you enable. Sorry but not using Ubuntu, I don't know if, and debian use runlevels 3 & 5. You can read your /etc/inittab file for the answer. Mine looks like this:
Code:
# /etc/init.d/rc takes care of runlevel handling
#
# runlevel 0 is System halt (Do not use this for initdefault!)
# runlevel 1 is Single user mode
# runlevel 2 is Local multiuser without remote network (e.g. NFS)
# runlevel 3 is Full multiuser with network
# runlevel 4 is Not used
# runlevel 5 is Full multiuser with network and xdm
# runlevel 6 is System reboot (Do not use this for initdefault!)
On some systems you can use "chkconfig" to check or set the runlevels that a daemon runs on:
Code:
/sbin/chkconfig -l xinetd
xinetd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
Also see if you have some pdf or postscript files in your samba documentation. /usr/share/doc/samba-<version>/ or /usr/share/doc/packages/samba/. It may contain 3 or 4 books that can help you configure samba. One of them is "Samba 3 by Example". On of the first example configurations may be what you want.
Different distro's package things differently, so you may have a samba-doc package that supplies these books. Also, you may need to install a separate package maybe named samba-swat to get swat.
Good Luck!