[SOLVED] Mount a samba share with /etc/fstab

Kernels & Hardware, configuring network, installing services

[SOLVED] Mount a samba share with /etc/fstab

Postby minos » 2011-12-06 14:21

Hi!
I've problem with mount a samba share at boot.
Already "googled", tried many solutions, but no way :'(

There's an Ubuntu Server 10.04 with Samba sharing a folder, user+password required
I want to mount this shared folder with /etc/fstab in my Debian 64 bits 6.0.3

Tried :
Code: Select all
//192.168.1.10/share/musik     /mnt/server_share     smbfs     _netdev,credentials=/root/.smbcredentials,iocharset=utf8     0     0


The file /root/.smbcredentials contains :
username=myworkgroup/the_user
password=user_password
(with correct informations)

In command line of Debian client :
sudo mount -a
mount: unknown filesystem type 'smbfs'


Thx for help !!
Last edited by minos on 2011-12-06 17:41, edited 2 times in total.
User avatar
minos
 
Posts: 21
Joined: 2011-12-06 14:01

Re: Mount a samba share with /etc/fstab

Postby damgaard » 2011-12-06 15:09

Is the package smbfs or cifs-utils installed? Does it work if you mount it manually with
Code: Select all
mount -t smbfs -o username=your_username,password=your_password //remote/location /local/location

(could replace smbfs with cifs as smbfs is just a wrapper for cifs now)?
We can't really help you unless you give us more information.
damgaard
 
Posts: 31
Joined: 2010-03-16 22:13

Re: Mount a samba share with /etc/fstab

Postby minos » 2011-12-06 17:40

Ok it works now :)
Nice shot, it was the packages not installed.... now it's ok !
Thx Daamguard!

To help people who has the same pb as me,
> as root :
Code: Select all
apt-get install cifs-utils

then open /etc/fstab and add :
Code: Select all
//192.168.1.10/share     /mnt/mount_share     cifs     credentials=/root/.smbcredentials,iocharset=utf8     0     0


about the content of the file /root/.smbcredentials :
Code: Select all
username=myworkgroup/the_user
password=user_password
User avatar
minos
 
Posts: 21
Joined: 2011-12-06 14:01


Return to System configuration

Who is online

Users browsing this forum: No registered users and 17 guests

fashionable