Mount shared drive at bootForum: User Feedback Topic: Mount shared drive at boot started by: dSlfOo Posted by dSlfOo on Nov. 22 2006,05:56
Hi, I am having trouble making a Samba mount available at boot time. I have tried the following lines in both .xinirc and /opt/bootlocal.sh, but nothing seems to work: /etc/init.d/smbd start /etc/init.d/nmbd start mount /dev/sdb1 /mnt/sdb1 The drive mounts, but no matter what I do the drive will not share. If I remove these lines, reboot and manually mount the drive and run these commands as root, I can browse it from my XP box (and stream MP3's!) just fine. Can someone help me get this to automatically work at boot time? Thanks in advance, Scott H. Posted by dSlfOo on Nov. 24 2006,20:54
Update:If I put /etc/init.d/smbd start and /etc/init.d/nmbd start in /opt/bootlocal.sh, and then put sudo mount /dev/sdb1 /mnt/sdb1 at the end of my .xinitrc, it boots and mounts the drive, but I get a permissions error when I browse to the share. If I then just unmount and remount it using the mount tool, it works perfectly. Is there a way to get the drive to mount exactly like the mount tool does, but at boot time? Thanks again, Scott H. Posted by dSlfOo on Nov. 24 2006,23:43
ok...now I feel silly. After messing around with this repeatedly, I discovered my problem... a missing sudo.This works like a charm (bootlocal.sh): nmbd start smbd start sudo mount /dev/sdb1 Gotta love DSL! Take care, Scott H. |