ts-7000
[Top] [All Lists]

Re: [ts-7000] fstab and USB

To:
Subject: Re: [ts-7000] fstab and USB
From:
Date: Sat, 28 Oct 2006 01:24:17 -0400
>/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/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU