LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   USB Flash drive mount at boot time (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/usb-flash-drive-mount-at-boot-time-659400/)

logeait 07-30-2008 11:09 PM

USB Flash drive mount at boot time
 
I have sen many posts in lots of different forums about auto mount of USB flash drives when inserted but can anyone tell me how to get a USB flash drive to mount at boot time?
I tried compiling sd-mod and usb_storage statically but sd-mod cant get a major number in this incarnation. Any clues ?

storkus 07-31-2008 04:22 AM

What does your entry in /etc/fstab look like?

Mike

logeait 07-31-2008 11:22 PM

Not sure what you want be here is the fstab

<file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
tmpfs /tmp tmpfs defaults 0 0

theNbomr 08-01-2008 09:31 AM

I think storkus is implying that you simply add an appropriate entry to fstab. Use the parameters you would use to manually mount the flash drive, ordered appropriately for fstab format. If your flash drive presently mounts automatically when inserted, and you don't know the block device name or filesystem type, as root, use
Code:

fdisk -l
to give you some help.
--- rod.

storkus 08-03-2008 02:12 AM

Also, I'm confused about your fstab above: what in the world is "/dev/root"?

Mike


All times are GMT -5. The time now is 01:28 AM.