PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : /etc/init.d/smbfs automatisch starten (Suse 10)



SvenGWK
25.11.05, 14:56
Hallo,

ich probiere ein Windows Share automatisch beim Start zu mounten.
Bin nun mittlerweile soweit gekommen das ich wenn ich als root /etc/init.d/smbfs start eingebe das Laufwerk mounte und auch die User drauf zugreifen können.
Nur macht er das beim starten nicht von selbst, da steht im Startprotokoll smb connection failed...
Symlinks für Start und Stop sind in rc5.d erstellt.
Warum funktioniert es von der Konsole im KDE aber nicht beim Start?
An meiner smbfstab kann es ja offensichtlich nicht liegen, sonst würde es ja gar nicht gehen,oder?

Hier ist meine smbfstab:

# This file allows you to mount SMB/ CIFS shares during system boot while
# hiding passwords to other people than root. Use /etc/fstab for public
# available services. You have to specify at least a service name and a mount
# point. Current default vfstype is smbfs.
#
# Possible vfstypes are smbfs and cifs.
#
# The options are explained in the manual page of smbmount and mount.cifs.
#
# service moint-point vfstype options

;//fjall/test /data/test cifs username=tridge,password=foobar
//kgl-5/KGL /home/kglu/Desktop/KGL uid=kglu,gid=usersd,username=administrator,passwor d=*********

Polarizer
25.11.05, 15:22
Der Symlinks ist SXXsmbfs. Was steht denn für ein XX bei Dir. Zuerst sollte das Netzwerk inkl. Routing oben sein und die Firewall durchgestart haben.

SvenGWK
25.11.05, 17:47
Hmm, komme an den Rechner erst am Montag wieder ran, der steht auf Arbeit.
Die Firewall ist inaktiv, das Netz wird über die Firewall im Router geschützt.
Ich habe hier bei mir die gleiche suse von der gleichen DVD installiert.
Hier ist es S14smbfs.
Müsste ja normalerweise die gleiche Konfiguration sein wie bei dem auf arbeit.
Ist es normal das mehrere einträge mit S14 beginnen?
Wenn ich das richtig verstehe arbeitet das System beim hochfahren in Runlevel 5 die S(start)-Scripte der numerischen Reihenfolge nach ab, und beim runterfahren dann die K(ill)-Scripte?
Dürfen denn dann mehrere die gleiche Position in der Liste beziehen?

michaxyz
25.11.05, 18:48
Hallo Sven,

ja, das ist normal. Sie werden letztlich nicht wirklich nach Nummer abgearbeitet sondern nach Auftauchen im Verzeichnis. D.h. kleinere Nummern natürlich zuerst. Bei gleichen Nummern geht es eben nachher mit dem Alphabet weiter (lexikalische Ordnung).

Eigentlich sollte die Installation im Wesentlichen gleich sein, aber man weiß ja nie.

Mfg Michael

SvenGWK
26.11.05, 11:00
Aha,na gut. Dachte schon Novell hat da großen Mist gebaut. ;)
Wenn ich am Montag wieder an dem rechner sitze poste ich nochmal was dazu. :)

SvenGWK
28.11.05, 07:30
So, habe jetzt mal geschaut, smbfs hat die 14 verpasst bekommen, dnach kommt nur noch cron,haldaemon,powersaved und cupsrenice. Ebenfalls die 14 haben: nscd und postfix.
Erkennt da jemand einen Grund dafür drin das smbfs beim automatischen Start keine Verbindung aufbaut, aber das ganze von KDE aus super klappt?
Werden die Scripte aus init.d eigentlich automatisch als root ausgeführt?
Eigentlich ja,oder?
Ich habe überhaupt keine Ahnung warum das nicht geht, ich finde das absolut unlogisch. :-/

SvenGWK
28.11.05, 07:36
Hier ist mal der Teil des Startprotokolls welcher Runlevel 5 betrifft:

INIT: Entering runlevel: 5



Boot logging started on /dev/tty1(/dev/console) at Mon Nov 28 06:57:11 2005

Master Resource Control: previous runlevel: N, switching to runlevel: 5
<notice> checkproc: /sbin/udevd 3683<notice>checkproc: /sbin/udevd 3498<notice>checkproc: /sbin/udevd 3495<notice>checkproc: /sbin/udevd 3425<notice>checkproc: /sbin/udevd 2117
<notice>startproc: execve (/usr/bin/dbus-daemon) [ /usr/bin/dbus-daemon --system ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/usr/bin/dbus-daemon ]
Starting D-BUS daemondone
<notice>startproc: execve (/sbin/syslog-ng) [ /sbin/syslog-ng ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs SHELL=/bin/sh TERM=linux ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PWD=/ PREVLEVEL=N LINES=59 SHLVL=2 HOME=/ SPLASH=yes splash=silent ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/sbin/syslog-ng ]
<notice>startproc: execve (/sbin/klogd) [ /sbin/klogd -c 1 -x -x ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs SHELL=/bin/sh TERM=linux ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PWD=/ PREVLEVEL=N LINES=59 SHLVL=2 HOME=/ SPLASH=yes splash=silent ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/sbin/klogd ]
Starting syslog servicesdone
Initializing random number generatordone
<notice>startproc: execve (/sbin/resmgrd) [ /sbin/resmgrd ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/sbin/resmgrd ]
Starting resource managerdone
Loading keymap qwertz/de-latin1-nodeadkeys.map.gz
doneLoading compose table winkeys shiftctrl latin1.adddone
Start Unicode mode
doneLoading console font lat9w-16.psfu -m trivial G0:loadable
doneSetting up network interfaces:
lo
lo IP address: 127.0.0.1/8
done eth0 device: 3Com Corporation 3c900B-Combo Etherlink XL [Cyclone] (rev 04)
eth0 configuration: eth-id-00:50:04:55:ac:34
eth0 (DHCP) . . . . <notice>startproc: execve (/opt/kde3/bin/kdm) [ /opt/kde3/bin/kdm ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs SHELL=/bin/sh TERM=linux ROOTFS_FSCK=0 QTDIR=/usr/lib/qt3 INIT_VERSION=sysvinit-2.85 KDEROOTHOME=/root/.kdm REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PWD=/ LANG=de_DE.UTF-8 PREVLEVEL=N LINES=59 SHLVL=2 HOME=/ XCURSOR_THEME=crystalwhite WINDOWMANAGER=/usr/X11R6/bin/kde SPLASH=yes splash=silent ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/opt/kde3/bin/kdm ]
. no IP address yet... backgrounding.
waiting
Waiting for mandatory devices: eth-id-00:50:04:55:ac:34
13 11 <notice>checkproc: /opt/kde3/bin/kdm 4241
<notice>killproc: kill(4231,15)
9 8 6 4 3 2
eth0 interface could not be set up
failedSetting up service network . . . . . . . . . . . . . . . .failed
Starting service kdmdone
<notice>startproc: execve (/sbin/portmap) [ /sbin/portmap ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/sbin/portmap ]
<notice>startproc: execve (/usr/sbin/mdnsd) [ /usr/sbin/mdnsd -f /etc/nss_mdns.conf -b ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/usr/sbin/mdnsd ]
Starting mdnsddone
Starting RPC portmap daemondone
Importing Net File System (NFS)unused
Starting mail service (Postfix)<notice>startproc: execve (/usr/sbin/acpid) [ /usr/sbin/acpid ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/usr/sbin/acpid ]
acpid: loading ACPI modules ( ac battery button ) done
Starting acpid done
done
Starting CRON daemon<notice>startproc: execve (/usr/sbin/cron) [ /usr/sbin/cron ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/usr/sbin/cron ]
<notice>startproc: execve (/usr/sbin/cupsd) [ /usr/sbin/cupsd ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/usr/bin/ionice DAEMON=/usr/sbin/cupsd ]
done
<notice>startproc: execve (/usr/sbin/hald) [ /usr/sbin/hald --daemon=yes --retain-privileges ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/usr/sbin/hald ]
Starting cupsddone
Starting HAL daemondone
Checking/updating CPU microcodeStarting nfsboot (sm-notify) done
<notice>startproc: execve (/usr/sbin/nscd) [ /usr/sbin/nscd ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/usr/sbin/nscd ]
done
Starting Name Service Cache Daemondone
<notice>startproc: execve (/usr/sbin/sshd) [ /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/usr/sbin/sshd ]
Starting SSH daemondone
<notice>checkproc: /opt/kde3/bin/kdm 4241
<notice>startproc: execve (/usr/sbin/powersaved) [ /usr/sbin/powersaved -d -f /var/run/acpid.socket -v 3 ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=reiserfs TERM=linux SHELL=/bin/sh ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.85 REDIRECT=/dev/tty1 COLUMNS=158 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/lib/klibc/bin vga=0x31a RUNLEVEL=5 PWD=/ SPLASHCFG=/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg PREVLEVEL=N LINES=59 HOME=/ SHLVL=2 splash=silent SPLASH=yes ROOTFS_BLKDEV=/dev/hdd2 _=/sbin/startproc DAEMON=/usr/sbin/powersaved ]
Starting powersaved (accessing ACPI events over acpid) done
Mount SMB/ CIFS File Systems from /etc/samba/smbfstab
//kgl-5/KGL on /home/kglu/Desktop/KGL type smbfs ...SMB connection failed
done
done
Master Resource Control: runlevel 5 has been reached
Failed services in runlevel 5: network
Skipped services in runlevel 5: nfs
<notice>killproc: kill(3724,3)




Der mault doch irgendwas wegen dem Netzwerk rum, oder?
Das funktioniert doch aber eigentlich schon.

SvenGWK
28.11.05, 16:11
Hab es mittlerweile hinbekommen, zwar "unsauber" aber es funktioniert.
Hab es so gelöst das ich dem Benutzer erlaube das smbfs zu mounten und das ganze dann mittels script im Autostart Ordner erledigt.
Werd mir doch wegen der Sache nicht noch graue Haare wachsen lassen. *gg*