Using an USB memory key under Linux

Last update on October 17, 2008 10:54 AM by netty5
Published by netty5

Using an USB memory key under Linux




Automatic setup based upon version used


Follow the procedure below to set up automatically your USB key:

Mandriva


Mandriva automatically detect USB keys and a desktop shortcut is created, through which files found on the USB key can be accessed. Right click to unmount device. The default path is /mnt/removable.

Fedora Core


Use the same procedure as describe above.

Debian & consort


For Debian and other versions, using a gnome desktop, the gnome-volume-manager package allows you to detect, mount and create desktop shortcut automatically.

Manual setup


If you want to mount a USB key using the command lines.

Create a directory using the following command:
# mkdir /mnt/cle


Its important that the tools to manage USB ports (usbutils package) are already installed, if the key is recognized the following command returns a line with the brand of your key:

$ lsusb


Mount the key using the following command:
mount -t vfat /dev/sda1 /mnt/cle


If sda1 does not work, try sda, sdb or sdb1. A visit / dev can see what is already on your system. / dev/sda1 can not be created only when the key is connected.

To mount the key easily, simply add a line in fstab as root.

# vim /etc/fstab


Adding a line on the USB drive.

/dev/sda1 /mnt/cle vfat noauto,users,noexec,rw, uid=1000,gid=1000 0 0

rw: You can read / write
noexec: noexec by exec change if we want to allow executions.
users: allow you to mount the device
uid and gid: gives additional rights to the user

Type in: $ mount /mnt/cle

Notice: In order to avoid any data loss or damage your USB key, don’t forget to umount your device before removing it.
Best answers for « Using an USB memory key under Linux » in :
Disk space / memory missing on USB stick / mp3 player ShowDisk space / memory missing on USB stick / mp3 player This is probably a problem of system files on the USB key. First of all, read the manual for the key, and verify that no utility provided with the key to reset or reformat. If...
My USB key is recognized as a Digital Audio Player ShowMy USB key is recognized as a Digital Audio Player Problem Solution Problem Some USB devices on Ubuntu are not detected as "classic", USB keys but as music players such iPod. This error causes the launch of a music player (unless you...
Installing Linux using your USB drive ShowInstalling Linux using your USB drive UNetbootin Other features UNetbootin If it happens that you have to install linux on a machine and you don’t have any CD or DVD to make an image but you have your USB flash drive. The minimum...
Download USB Image Tool Version ShowUSB Image Tool can create images of USB memory card and your MPreader images USB memory card MP3, Ipod, which have been designed like USB players. It allows you to switch between images with different music styles on your MP3 or to make an exact...
Memory Stick (MS Card) ShowMemory Stick The Memory Stick (written as MS or MS Card) is a type of memory card created jointly by Sony and SanDisk in January 2000. The architecture of Memory Stick cards is based on NAND flash memory circuits (EEPROM). Memory stick...
Linux - Compiling the kernel ShowCompiling the kernel In this article, compiling the kernel under Linux is explained. The following explanations are based on version 2.4.20 of kernel, i.e. the most recent version of the kernel at the time this article was written (March 2003)....
Installation of Linux ShowInstallation of the RedHat distribution The RedHat distribution is currently one of the most popular distributions, considering that the installation procedure is very simple. As a matter of fact, this procedure simply asks you to choose from a...