Flash Drives

Tim Writer tim-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org
Mon Dec 6 17:58:30 UTC 2004


Kaizilege Karoma <buguruka-/E1597aS9LQAvxtiuMwx3w at public.gmane.org> writes:

> Dear all,
>  I am using I have two computers with linux installed
> (one with RedHat 8.0 and the other Fedora).
>  Two weeks ago abought a Flash Disk (Drive) but I can
> not use it on my computers with Linux, please assist
> me on what to do so that I can enjoy my 512 USB flash
> disk.
> 
> I am not expert on linux, I know some commands, I will
> appreciate the assistance with details on what to do.

If you have USB setup correctly, Linux will automatically load the necessary
drivers (usb-storage and sd_mod) when you insert the USB stick.  You can
verify this by running lsmod:

    % /sbin/lsmod

It may load usb-storage but not sd_mod, in which case you can load sd_mod
yourself.  As root:

    # modprobe sd_mod

If it didn't load usb-storage then USB isn't configured correctly or your USB
stick is not recognized as a storage device by the USB subsystem.  Hopefully
this won't be the case.

With the modules properly loaded, you can access your USB stick as a SCSI
disk.  Assuming you have no other SCSI devices, your USB stick will be the
first SCSI disk, i.e. sda.  You can see how it's partitioned with:

    # fdisk -l /dev/sda

Out of the box, most USB sticks have a singled partition formatted with and
MSDOS (or VFAT) file system.  You would mount this partition like this:

    # mount -t vfat /dev/sda1 /mnt

where /mnt is the desired mount point.  You can mount it anywhere you like.
To make this easier, you can add an entry to your fstab.  Like this:

    /dev/sda1   /mnt/usb        vfat    noauto,user     0 0

This will allow you to mount it as an ordinary user:

    % mount /mnt/usb


Hope this helps,

-- 
tim writer <tim-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org>                                  starnix inc.
647.722.5301                                      toronto, ontario, canada
http://www.starnix.com              professional linux services & products
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list