I'm running an application from a USB-mem at boot time.
I've put the commands to mount the mem and execute this app in a 
separate script and put it in "/etc/init.d".
I'm calling this script from the "rc" script, which is located in 
"/etc/init.d", right before the line with "System initialization is done".
It contains the command for mounting the USB-mem, which in my case is:
"mount -t vfat /dev/sda1 /mnt/1"
It works perfectly when cycling power.

Regards
/Tobias Reneskog


--- In [email protected], Eberhard Fahle <[EMAIL PROTECTED]> wrote:
>
> On Thursday 29 March 2007 14:14, [EMAIL PROTECTED] wrote:
> > I'm having problems getting a couple of 4Gb USB pen-drives to
> > mount at boot-time.
> >...
> > with the USB memories being /mnt/1 and /mnt/2  - and I can then
> > happily use them.
> >
> > Reboot though, and they go away.
> >
> > mount -a brings them back. I need the system to be resilient
> > against power failures so any advice on automounting the flash-
> > drives at boot time would be appreciated.
> >
> > --Wolf.
> 
> Hi, Wolf
> 
> I don't if this works for you, but here  is how I load some external
modules 
> after booting:
> 
> On your foxboard, there is a special directory located at
> /etc/init.d/boottime
> 
> When the FoxBorad has booted  _all_ programs found in this directory
are run 
> from the script 
> /bin/start_ok.sh 
> 
> So all I had to do was create a new script   
> /etc/init.d/boottime/load_modules
> 
> --cut--------------------------------------------------------------
> 
> #!/bin/sh
> # File load_modules
> # this script loads my own modules after booting the board
> insmod iowarrior
> insmod spinwarrior
> 
> --cut------------------------------------------------------------
> 
> and make the script executeable :
> chmod a+x /etc/init.d/boottime/load_modules
> 
> So you simply have to create a script that mounts your Flash-drives
and put it 
> in the '/etc/init.d/boottime' directory.
> 
> Eberhard
>


Reply via email to