damien_d
2007-11-02, 06:49 AM CDT
Hello all,
I am trying to mount a samba share on boot. That is, once booted, I can perfectly mount:
mount -t cifs -o guest //192.168.1.6/music /media/music
No, there is no user name or password (it's a household network).
I am running FC7 on an ancient P3 HP box.
But I am having extreme problems trying to automatically mount it on boot.
So far, I have tried editing /etc/fstab and /etc/rc.d/rc.local as follows (but not at the same time!)
In /etc/rc.d/rc.local:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# Mount the music drive
mount -t cifs -o guest //192.168.1.6/music /media/music
Bit it fails. Here is the relevant bit of dmesg:
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
eth0: no IPv6 routers present
CIFS VFS: Error connecting to IPv4 socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -101
eth0: no IPv6 routers present
And the full dmesg can be found at:
http://www.pastebin.ca/758632
I get the same -101 error code (networking not ready?) when I go fstab.
Any ideas before I lose any more hair?
Cheers
Damien.
I am trying to mount a samba share on boot. That is, once booted, I can perfectly mount:
mount -t cifs -o guest //192.168.1.6/music /media/music
No, there is no user name or password (it's a household network).
I am running FC7 on an ancient P3 HP box.
But I am having extreme problems trying to automatically mount it on boot.
So far, I have tried editing /etc/fstab and /etc/rc.d/rc.local as follows (but not at the same time!)
In /etc/rc.d/rc.local:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# Mount the music drive
mount -t cifs -o guest //192.168.1.6/music /media/music
Bit it fails. Here is the relevant bit of dmesg:
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
eth0: no IPv6 routers present
CIFS VFS: Error connecting to IPv4 socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -101
eth0: no IPv6 routers present
And the full dmesg can be found at:
http://www.pastebin.ca/758632
I get the same -101 error code (networking not ready?) when I go fstab.
Any ideas before I lose any more hair?
Cheers
Damien.