mounting samba share on server pc

dave s kubuntu at pusspaws.net
Sun Jan 29 13:31:20 UTC 2006


Hi all,

I am setting up a samba server on my PC (dave-comp) for my wifes machine and 
my work XP laptop to access.

I am trying to access the shares on my own machine by adding the following 
into my /etc/fstab

//dave-comp/common /mnt/samba/common smbfs 
credentials=/root/.smbpw,uid=dave,gid=dave,fmask=777,dmask=777 0 0
//dave-comp/windows /mnt/samba/windows smbfs 
credentials=/root/.smbpw,uid=dave,gid=dave,fmask=777,dmask=777 0 0
//dave-comp/archive /mnt/samba/archive smbfs 
credentials=/root/.smbpw,uid=dave,gid=dave,fmask=770,dmask=770 0 0

and accessing then via /mnt/samba/

When my machine boots it fails to mount the samba shares.

root at dave-comp:~# cat /etc/mtab
/dev/hda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
tmpfs /lib/modules/2.6.12-10-386/volatile tmpfs rw,mode=0755 0 0
tmpfs /dev tmpfs rw,size=10M,mode=0755 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0

root at dave-comp:~# mount -a
mount: RPC: Remote system error - No route to host

root at dave-comp:~# cat /etc/mtab
/dev/hda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
tmpfs /lib/modules/2.6.12-10-386/volatile tmpfs rw,mode=0755 0 0
tmpfs /dev tmpfs rw,size=10M,mode=0755 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
//dave-comp/common /mnt/samba/common smbfs rw 0 0
//dave-comp/windows /mnt/samba/windows smbfs rw 0 0
//dave-comp/archive /mnt/samba/archive smbfs rw 0 0
root at dave-comp:~#

I think the  RPC error is because my NFS partition on my wifes machine is 
down.

Once I do a mount -a all appears well.

Can anyone tell me how to amend fstab so the mounting is automatic or am I 
doing someting else wrong ? (First time Samba user !)

Cheers

Dave





PS ..

 /etc/hosts is ...

127.0.0.1       localhost.localdomain   localhost       dave-comp

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
192.168.0.6 vanda-comp





More information about the kubuntu-users mailing list