LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2013, 11:15 PM   #1
nokia3310
LQ Newbie
 
Registered: May 2013
Posts: 18

Rep: Reputation: Disabled
samba won't mount after reboot...please help


I am able to mount samba but it just won't mount when i reboot system
what is stopping it from mounting after reboot?


I mounted before reboot but right after reboot...i ran mount
Code:
[root@vm3 ~]# mount
/dev/mapper/vg_sda2-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sr0 on /media/VBOXADDITIONS_4.2.12_84980 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=500,gid=500,iocharset=utf8,mode=0400,dmode=0500)
When i remount..it worked..so why not work after reboot???
Code:
[root@vm3 ~]# findsmb

                                *=DMB
                                +=LMB
IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION 
---------------------------------------------------------------------
192.168.1.38    VM3           +[MYGROUP] [Unix] [Samba 3.6.9-151.el6]
[root@vm3 ~]# mount -t cifs //LOCALHOST/samba /samba-mount -v -o user=BUSARI,password=dadon4u
mount.cifs kernel mount options: ip=::1,unc=\\LOCALHOST\samba,,ver=1,user=BUSARI,pass=********
[root@vm3 ~]# mount
/dev/mapper/vg_sda2-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sr0 on /media/VBOXADDITIONS_4.2.12_84980 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=500,gid=500,iocharset=utf8,mode=0400,dmode=0500)
//LOCALHOST/samba on /samba-mount type cifs (rw)
[root@vm3 ~]# service smb status
smbd (pid  2014) is running...
[root@vm3 ~]# service nmb status
nmbd (pid  2006) is running...
[root@vm3 ~]# findsmb

                                *=DMB
                                +=LMB
IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION 
---------------------------------------------------------------------
192.168.1.38    VM3           +[MYGROUP] [Unix] [Samba 3.6.9-151.el6]
[root@vm3 ~]# testparm -L
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[samba]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	workgroup = MYGROUP
	server string = Samba Server Version %v
	log file = /var/log/samba/log.%m
	max log size = 50
	idmap config * : backend = tdb
	cups options = raw

[homes]
	comment = Home Directories
	read only = No
	browseable = No

[printers]
	comment = All Printers
	path = /var/spool/samba
	printable = Yes
	print ok = Yes
	browseable = No

[samba]
	comment = Samba
	path = /share/samba
	read only = No
	guest ok = Yes
[root@vm3 ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Thu May  2 20:30:24 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_sda2-lv_root /                       ext4    defaults        1 1
UUID=cf27ea89-2bef-4ae8-8b98-083e6a27f5bf /boot                   ext4    defaults        1 2
/dev/mapper/vg_sda2-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
192.168.1.38:/share/nfs /nfs-mount              nfs     defaults        0 0
//LOCALHOST/samba       /samba-mount            smbfs   username=BUSARI,password=dadon4u    0 0

Last edited by nokia3310; 05-02-2013 at 11:18 PM.
 
Old 05-03-2013, 01:44 AM   #2
nokia3310
LQ Newbie
 
Registered: May 2013
Posts: 18

Original Poster
Rep: Reputation: Disabled
help please
 
Old 05-03-2013, 03:58 AM   #3
PierreB.
Member
 
Registered: Apr 2012
Location: Grenoble
Distribution: Rhel[456],CentOS[56],fedora18
Posts: 33

Rep: Reputation: Disabled
Let's start by :

1/ Run the
Code:
mount -va
command and past the output here so we can see what's wrong

2/ You can try to use "cifs" as filesystem instead of "smbfs" in your fstab...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fresh 9.10 install reboot error no device trying to mount partition mount: can't fin bud1237 Ubuntu 1 06-24-2010 12:44 AM
External Maxtor OneTouch4 won't mount after reboot peteyperson Linux - Hardware 6 02-17-2009 04:03 PM
SAMBA: one mount won't work where others will insectile Linux - Networking 1 05-14-2004 04:44 PM
win xp won't login to samba after reboot but win 2k works great davidekholm Linux - Networking 1 04-04-2003 09:44 AM
samba won't mount windows shares ixion Linux - Software 6 02-28-2003 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration