>/dev/scsi/host0/bus0/target0/lun0/part1 /USB/ ext2 defaults 1 1
>
>So I am asking what is the proper way to edit the fstab to get the
>USB to mount on start-up? Do start-up scripts have to be edited so
>the correct modules are loaded? Also, once this is achieved. Will
>the contents of the USB be erased after a power off power on cycle?
Yes, this is what you want in fstab.
Yes, you need to edit the startup scripts. The USB device cannot
exist in the system unless the USB modules are present in the
kernel. One convenient place you could do it is in
/etc/rc.d/rcS.sysinit - just BEFORE the line that says
(insmod fat; insmod vfat; mount -a -rw - ...
This line is going to try to mount filesystems listed in /etc/fstab,
so you want your USB modules loaded before that. It could say
/usr/bin/loadUSBmodules.sh
sleep 2
insmod fat
insmod vfat
mount -a -rw
I don't know if the sleep is strictly necessary, but I notice that
it takes a little time for the USB subsystem to notice the
memory stick.
No, the USB memory stick (or "thumb drive") is not erased by power off.
That is the whole point of the memory stick.
Well, the point is also to be able to move data from machine to machine.
I attach the memory stick to my development system, fill it up with all
the programs in my application, then plug it in to the target machine.
I leave the on-board flash write-protected, and run everything directly
from the USB stick. The application makes files on the USB stick,
which I can then move back to my development system for analysis.
Mark S.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|