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
Pages: (2) </ [1] 2 >/

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

reply to topic new topic new poll
Topic: Samba Question!, Auto ReMount a network share on reboot?< Next Oldest | Next Newest >
Mule Offline





Group: Members
Posts: 13
Joined: April 2006
Posted: May 07 2006,03:50 QUOTE

Hi,

I use Samba to map to a Windows server after booting into DSL.

Samba can create a 'mountscript' which is the CLI command to mount the share. It looks like this:

#! /bin/sh
# SMB mount script
# created by LinNeighborhood
smbmount //SERVER/Share /home/dsl/mnt/SERVER/Share -o username=myUsername%myPassword,ip=192.168.1.101,workgroup=SERVER

How can I get this mountscript to run automatically ever time I reboot DSL?

I can't edit fstab because it's in the KNOPPIX compressed image.

Is there another approach I'm overlooking? Thank you DSL gurus!!

PS: I have Samba install itself via myDSL if it matters. I assume this script has to run sometime after myDSL loads all of the extensions...

PPS: The 'Memorize Mount Shares / Remount on next Startup' option available through the Samba Preferences menu does not appear to work. I'm unsure why...
Back to top
Profile PM 
dtf Offline





Group: Members
Posts: 196
Joined: Nov. 2005
Posted: May 07 2006,05:43 QUOTE

Did you try putting it into /opt/bootlocal.sh?  Commands in this file run out of the boot sequence and is designed specificly for this purpose.
Back to top
Profile PM 
RNR Offline





Group: Members
Posts: 3
Joined: May 2006
Posted: May 07 2006,09:57 QUOTE

Quote (Mule @ May 06 2006,23:50)
I can't edit fstab because it's in the KNOPPIX compressed image.

Sure u can.... :) Just add it to the list of files to be backup/restore, i.e: select the file in emelfm and click "Add2Filetool" button... (I assume u have a USB pen or something where u can save ur backup.tar.gz file.... this is what I do)  :cool:
Back to top
Profile PM 
dtf Offline





Group: Members
Posts: 196
Joined: Nov. 2005
Posted: May 07 2006,11:50 QUOTE

RNR - Sorry if I misunderstood what you were asking.  I thought you were look for a way to execute the command

smbmount //SERVER/Share /home/dsl/mnt/SERVER/Share -o username=myUsername%myPassword,ip=192.168.1.101,workgroup=SERVER

when you boot your machine.  I was suggesting editting the file /opt/bootlocal.sh and adding the line to this file.  It will then execute when you boot your machine.  Sorry, I do not have an answer about fstab and if that is what you want or need maybe someone else can help.  I was proposing you try this alternative to the edit of the fstab file.
Back to top
Profile PM 
RNR Offline





Group: Members
Posts: 3
Joined: May 2006
Posted: May 07 2006,20:00 QUOTE

dtf,
The question wasn't from me... :)  it was from Mule (look at the first post)
I was just answering him... but maybe your answer was what he was looking for...
I don't know more than u do m8... :)
Back to top
Profile PM 
5 replies since May 07 2006,03:50 < Next Oldest | Next Newest >

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

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Samba Question!

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