News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

How to mount LMCE's SMB Share in Ubuntu?

Started by jondecker76, April 28, 2008, 09:19:24 PM

Previous topic - Next topic

jondecker76

I use Ubuntu at home. I want each of my Ubuntu computers to use the folder structure of the core to to store media (I.e. Limewire on my Ubuntu box would download files directly to the appropriate /home/public directory on the core. I have been manually syncing files up to this point, and its just too much of a pain. What I would like is a permanently mounted folder in Ubuntu that was linked directly to the folder on the core. How should I go about this?

thanks,

Jon

royw

sudo mkdir /mnt/test
sudo mount -t cifs //192.168.80.1/public /mnt/test -o "username=Roy,password=SECRET"

Substitute your username and password that you use to log into web admin.

If you are curious, look in /etc/samba/smb.conf on your dcerouter.

HTH,
Roy
My System: [url="http://wiki.linuxmce.org/index.php/User:Royw"]http://wiki.linuxmce.org/index.php/User:Royw[/url]

Zaerc

If you want to do it permanently, it is best to add a line describing the mount to /etc/fstab and see: http://wiki.linuxmce.org/index.php/Logging_In#The_sambahelper_account for the usename/password.
"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

jondecker76

Not having too much luck with this so far (I've never done a manual fstab entry). Here is my fstab after the addition:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1
UUID=2d1592f3-2998-4974-9075-3158c47c1208 /               ext3    defaults,errors=remount-ro 0       1
# /dev/sda5
UUID=66a44c56-7ee0-4f06-9212-d888b9dd1522 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/scd1       /media/cdrom1   udf,iso9660 user,noauto     0       0
//192.168.80.1/public       /mnt/LMCE     cifs     username=jondecker76,password=xxxxxxx     


does the entry look right? Do I have to also create the /mnt/LMCE folder? So far, doing a reboot does not mount the share, but I'm sure i don't have the entry quite right.

Thanks for the help

royw

Quote from: jondecker76 on April 29, 2008, 08:12:58 PM
Do I have to also create the /mnt/LMCE folder?

yes.

My preference is to manually mount a share first as a test.  Once that works, then get fstab working. 

Example flow:

sudo -i
mkdir /mnt/LMCE
mount -t cifs //192.168.80.1/public /mnt/LMCE -o "username=jondecker76,password=xxxxxxx"
ls /mnt/LMCE

Once you see the share in /mnt/LMCE

umount /mnt/LMCE
vi /etc/fstab
*** add fstab line and save
mount /mnt/LMCE
ls /mnt/LMCE

Then once that is working, do a reboot just to be sure.

Personally, I'd add noauto and rw options to the fstab entry and set dump & pass to 0:

//192.168.80.1/public       /mnt/LMCE     cifs     noauto,rw username=jondecker76,password=xxxxxxx 0 0


HTH,
Roy

My System: [url="http://wiki.linuxmce.org/index.php/User:Royw"]http://wiki.linuxmce.org/index.php/User:Royw[/url]