Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Mount shared drive at boot< Next Oldest | Next Newest >
dSlfOo Offline





Group: Members
Posts: 7
Joined: Sep. 2006
Posted: Nov. 22 2006,05:56 QUOTE

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.
Back to top
Profile PM 
dSlfOo Offline





Group: Members
Posts: 7
Joined: Sep. 2006
Posted: Nov. 24 2006,20:54 QUOTE

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.
Back to top
Profile PM 
dSlfOo Offline





Group: Members
Posts: 7
Joined: Sep. 2006
Posted: Nov. 24 2006,23:43 QUOTE

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.
Back to top
Profile PM 
2 replies since Nov. 22 2006,05:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Mount shared drive at boot

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code