Go Back   TechArena Community > Software > Tips & Tweaks
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags:

Sponsored Links



To recognize a USB key under Linux

Tips & Tweaks


Reply
 
Thread Tools Search this Thread
  #1  
Old 15-10-2008
Jax.S's Avatar
Member
 
Join Date: Mar 2008
Posts: 52
To recognize a USB key under Linux

The process for recognizing a USB key Linux is simple.

Mandriva

Mandriva / Mandrake automatically detects USB keys and creates an icon "USB" on the desktop by which you can access the files of that key.
To remove it, right click to dismount and hop, you can remove it. The default path of the installation of these keys is / mnt / removable.

For Fedora Core, this seems similar

Debian & consort

For Debian (and derivatives), with the gnome desktop, the package gnome-volume-manager can also detect, edit and save an icon on the desktop automatically.

Manually

In all cases, it is still possible to mount the key in the old way, through the command line:

Create the directory with

Code:
# Mkdir / mnt / cle
Note : Make sure you have the tools to manage USB ports (usbutils package), if the key is recognized the following command returns a line with the brand of your key:

Code:
$ Lsusb
Mount the key

Code:
mount-t vfat / dev/sda1 / mnt / cle
Note :
If sda1 does not work, try sda, sdb or sdb1. A visit / dev can see which exist 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.

Code:
 # Vim / etc / fstab
Add a line on the USB drive. For example:

Code:
/ dev/sda1 / mnt / cle vfat noauto, users, noexec, rw, uid = 1000, gid = 1000 0 0
  • rw: You can read / write
  • noexec: exec by noexec change if we want to allow executions.
  • users: can allow a user to mount the device
  • uid and gid: gives additional rights to the user 1000 (my personal account in my case)
  • Then type:

    Code:
    $ Mount / mnt / cle
Reply With Quote
Reply

  TechArena Community > Software > Tips & Tweaks


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "To recognize a USB key under Linux"
Thread Thread Starter Forum Replies Last Post
Linux mint 9 is unable to recognize wireless card AaAgMaN Operating Systems 5 19-03-2011 08:51 PM
Linux Mint does not recognize hard drive garfunkel Operating Systems 5 18-01-2011 11:14 AM
ATI 3870 doesn't recognize 1 monitor, but will recognize other 2 crazytegger Monitor & Video Cards 2 20-02-2010 03:44 PM
Adobe Joins Linux Foundation with Focus on Linux for Web 2.0 Applications monsitj Web News & Trends 0 24-01-2009 05:45 PM
what could i do while multiboot solaris windows xp and slackware linux or opensuse linux hoanglong1712 Operating Systems 2 25-04-2008 10:18 AM


All times are GMT +5.5. The time now is 10:00 AM.