PDA

View Full Version : HOWTO: Make your flash drive work


majikstreet
July 25th, 2005, 03:21 PM
*****IF YOU DON'T USE GNOME


Hi,
I wrote this howto a while ago on another linux forum.

How to get your usb flash drive to work right.

Edit your /etc/fstab and add this at the bottom:

/dev/sda1 /mnt/usb vfat defaults,rw,noauto,users,sync 0 0

Then what you want to do is type:

mkdir /mnt/usb


Now when you want to use it, plug it in then type:

mount /mnt/usb

Then before you unplug it type:

umount /mnt/usb


And yes, it is really "umount" not unmount!
Edit your /etc/fstab and add this at the bottom:

/dev/sda1 /mnt/usb vfat defaults,rw,noauto,users,sync 0 0

Then what you want to do is type:

mkdir /mnt/usb


Now when you want to use it, plug it in then type:

mount /mnt/usb

Then before you unplug it type:

umount /mnt/usb


And yes, it is really "umount" not unmount!




But if you don't can't get sda1 to work, try using sda or sdaX replacing X with a number.

I put two scripts on my desktop to mount and unmount the drive:
mount:

#!/bin/bash
mount /mnt/usb

unmount:

#!/bin/bash
umount /mnt/usb



Now if you want to make it automount so you don't have to mount it each time, I think you can just replace noauto with auto.

majikstreet

stwog
July 25th, 2005, 05:12 PM
Are you not using Gnome? When I insert my USB drive a window pops up with all the files on it... I didn't do anything to make that work either.

majikstreet
July 25th, 2005, 05:14 PM
Are you not using Gnome? When I insert my USB drive a window pops up with all the files on it... I didn't do anything to make that work either.
Yeah, I don't use gnome-- this was if you don't use gnome i guess then-- (i've only installed ubuntu without x so far, soon i will have gnome on my main computer)

Sorry for any misconceptions!