How to Mount USB Disk Drive in UNIX or Linux Com muntar els discs durs USB a UNIX o Linux

Most distros (distributions) of Linux include Mandrake 10.1, SuSE 9.x and Fedora Core 3 can now support plug-and-plug detection, discovery and driver installation for portable USB drive or USB disk (and any type of USB-based data storage devices devices such as hard drives, pen drives, USB keys, flash disk, thumb drive, memory key, USB zip drive and memory stick). La majoria de les distros (distribucions) de Linux Mandrake 10.1 inclouen, 9.x SuSE i Fedora Core 3 pot recolzar ara plug-and-plug detecció, el descobriment i la instal lació del controlador de la unitat USB portàtil o disc USB (i de qualsevol tipus d'USB basat en l'emmagatzematge de dades dispositius dispositius com discs durs, pen drives, claus USB, disc flash, amb el polze en cotxe, clau de memòria USB i unitat zip de memòria). Some Linux operating system even can auto-mount the USB drives, especially if you're using Gnome and KDE. Alguns sistema operatiu Linux fins i tot és capaç de detectar automàticament muntar els discs USB, especialment si esteu usant Gnome i KDE. When you plug-in the USB disk, Linux will pop-up a window showing the content of USB disk just like Microsoft Windows. Quan el plug-in de disc USB, Linux pop-up una finestra que mostra el contingut del disc USB igual que Microsoft Windows.

However, if you're using older version of Linux, or using UNIX operating system, or your Linux distro installation unable to detect and mount the USB storage device automatically, then you will have to manually install and mount the USB drive. Tanmateix, si està utilitzant versió de Linux, o l'ús de sistema operatiu UNIX, Linux o distribució d'instal lació no pot detectar i muntar el dispositiu d'emmagatzemament USB automàticament, aleshores haurà d'instal lar i muntar la unitat USB.

To manually mount a USB disk or USB drive or USB device in Linux or UNIX: Per muntar manualment un disc USB o unitat USB o dispositiu USB a Linux o UNIX:

  1. Login as root. Iniciar sessió com a root. You can use the su command to switch to root user. Podeu utilitzar la comanda seva per canviar a l'usuari root.
  2. Create a folder /mnt/USB with the command: mkdir /mnt/USB Crear una carpeta / mnt / USB amb la comanda: mkdir / mnt / USB
  3. Add the following line in the file /etc/fstab (fstab is the file that tells Linux where to mount the various devices, and thus simplying the mount command): Afegiu la següent línia al fitxer / etc / fstab (fstab és el fitxer que li diu a Linux que per muntar els diferents equips, i per tant simplying la comanda mount):

    /dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0 / Dev/sda1 / mnt / usb auto noauto, propietari, kuzu 0 0

    Note: The “auto” on the above line means auto detection of filesystem. Nota: el "auto" en la línia anterior mitjançant la detecció automàtica de fitxers. If your system unable to determine the filesystem type, change it accordingly to the USB drive's filesystem (eg vfat or ntfs or ext2 or ext3). Si el sistema no pot determinar el tipus de fitxers, que en conseqüència el canvi de la unitat USB del sistema de fitxers (per exemple, vfat o ntfs o ext2 o ext3).

  4. Mount the USB storage device with the following command: mount /dev/sda1 Muntar el dispositiu de memòria USB amb el següent comandament: mount / dev/sda1

Without the need modifying fstab (step 3), you can also straight away issue the mount command (step 4) with the following syntax: Sense la necessitat de modificar fstab (pas 3), també es pot emetre immediatament la comanda mount (pas 4) amb la sintaxi següent:

mount /dev/sda1 /mnt/USB mount / dev/sda1 / mnt / USB

If you know the filesystem of the USB drive or the system unable to determine the correct filesystem, the -t option can be used to the filesystem type of the USB device: Si coneix el sistema d'arxius de la unitat USB o el sistema no pot determinar el sistema d'arxius, el-t es pot utilitzar el sistema de fitxers tipus de llapis USB:

mount -t vfat /dev/sda1 /mnt/usb (for vFAT filesystem) mount-t vfat / dev/sda1 / mnt / usb (per sistema de fitxers VFAT)
mount -t ntfs /dev/sda1 /mnt/usb (for NTFS filesystem) mount-t ntfs / dev/sda1 / mnt / usb (per sistema d'arxius NTFS)

Sometimes, the USB drive or USB storage device is detected by the system but been assigned a different device name from sda1. A vegades, la unitat USB o clau de memòria USB és detectat pel sistema, però se li assigna un nom de dispositiu diferent sda1. If so, the correct device name need to be determined by viewing and OS log file. En cas afirmatiu, el nom del dispositiu correcte necessitat de ser determinat per la visualització de l'arxiu de registre i sistema operatiu. Usually the Linux and UNIX boot and log message is stored in /var/log/messages, and you can view the log messages with the following commands: En general, l'arrencada de Linux i UNIX i missatge de registre es guarda a / var / log / messages, i vostè pot veure els registres amb els següents comandaments:

tail -f /var/log/messages tail-f / var / log / messages

or o

dmesg dmesg

Check for the name of the device that appears after operating system detects the USB devices. Comproveu que el nom del dispositiu que apareix després de sistema operatiu detecta els dispositius USB.

After using the USB disk, remember to unmount the USB drive with the following command to avoid any possible loss to the data or changes and risk messing up your partition. Després de fer servir el disc USB, no s'oblidi de desmuntar la unitat USB amb la comanda següent per evitar qualsevol possible pèrdua de les dades o els canvis i els riscos de jugar la seva partició.

umount /mnt/USB umount / mnt / USB

Configure Gnome to automatically detect, install and mount USB drive GNOME per configurar detectar, instal lar i muntar unitat USB

If you're using Gnome yet unable to automatically detect and mount USB drive for usage, a few packages needed to be install. Si utilitzes GNOME encara no pot detectar automàticament i muntar unitat USB per al seu ús, els paquets havien d'instal lar. The packages to install are dbus, hald and Gnome-Volume-Manager. Els paquets a instal lar són dbus, HALDEN i gnome-volume-manager. After installing these packages, configure dbus and hald setup to run via init scripts. Després d'instal lar aquests paquets, configurar dbus HALDEN i configuració per funcionar a través d'scripts d'inici. Then in Gnome, some configuration has to be done. Després, en el GNOME, alguns de configuració que cal fer. Click on the 'Desktop' menu, then go to 'Preferences', and then to 'Removable Drives and Media'. Feu clic al 'Escriptori' del menú, i després anar a 'Preferències' i, a continuació, a "impulsió despresos i de mitjans de comunicació". Configure the settings to your liking. Configurar els ajustaments al seu gust. Once you plug-in a usb drive, an icon for the drive will appear on the desktop. Una vegada que el plug-in una unitat USB, una icona de la unitat apareixerà a l'escriptori. Other possible setting is to have Gnome opens a window showing the contents of the USB drive. Altres possibles configuració de GNOME és que s'obre una finestra que mostra el contingut de la unitat USB.

IMPORTANT : The page is machine translated and provided "as is" without warranty. IMPORTANT: La pàgina està traduïda màquina i proporciona "tal qual" sense garantia. Machine translation may be difficult to understand. La traducció automàtica pot resultar difícil d'entendre. Please refer to Si us plau, consulteu original English article article original anglès whenever possible. sempre que sigui possible.


6 Responses to “How to Mount USB Disk Drive in UNIX or Linux” 6 respostes a "com muntar els discs durs USB a UNIX o Linux"

  1. Jacques Jacques
    September 27th, 2008 13:25 27 de setembre de 2008 13:25
    6 6

    In reply to David. En resposta a David. If you have a sata hdd that would be /dev/sda1. Si teniu un disc dur SATA que seria / dev/sda1. If this is the case your usb drive would most probably be /dev/sdb1 Do dmesg to see how your usb is recognised when plugged in. Si aquest és el cas de que la seva unitat USB que molt probablement serà / dev/sdb1 fer dmesg per veure com es reconeix quan USB endollat

  2. David David
    August 13th, 2008 05:44 13 d'agost de 2008 05:44
    5 5

    When I mount dev/sda1 it mounts my main filesystem drive not the usb. Quan es munta dev/sda1 muntar el meu sistema de fitxers principal no és la unitat USB. I can't get my usb to mount no matter what I do (running Ubuntu) but windows reads it fine. No puc muntar el meu usb no importa el que faig (amb Ubuntu), però les finestres el llegeix bé.

  3. BlogSplat » Blog Archive » Adventures In Linuxland BlogSplat »Blog Archive» Aventures En LinuxLand
    August 10th, 2008 16:03 10 d'agost de 2008 16:03
    4 4

    [...] I eventually find a helpful post that explains in better detail than most how mounting volumes [...] [...] Em ajuda a trobar un lloc millor en el que explica detalladament la forma en què la majoria dels volums de muntatge [...]

  4. admin administrador
    February 17th, 2007 13:42 17 de febrer de 2007 13:42
    3 3

    I believe kuzu would work, kudzu is kind of for cdrom. Crec que kuzu treball, és una mena de kudzú per cdrom.

  5. Ogryzek Ogryzek
    February 17th, 2007 11:25 17 de febrer de 2007 11:25
    2 2

    Please note that there is a small typo in the main article above. Tingueu en compte que hi ha un petit error tipogràfic en l'article principal anteriorment.

    /dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0 / Dev/sda1 / mnt / usb auto noauto, propietari, kuzu 0 0

    Should read: Ha de dir:

    /dev/sda1 /mnt/USB auto noauto,owner,kudzu 0 0 / Dev/sda1 / mnt / usb auto noauto, propietari, kudzú 0 0

    Still, the article did help… thanx Tanmateix, l'article no ajuda ... Thanx

  6. Gervase Chavasse Gervas Chavasse
    January 24th, 2007 17:18 24 de gener de 2007 17:18
    1 1

    Thanks for an excellent article. Gràcies per un excel lent article. But after upgrading to Suse 10.1 (10.2 wouldn't install), I cannot access my USB Iomega ZIP drive and receive msg “Mount with signature “ssas” on interface “org.freedesktop.Hal.Device.Volume” doesn't exist”. Però després d'actualitzar a Suse 10,1 (10,2 per no instal lar), no puc accedir al meu unitat ZIP USB d'Iomega i rebre missatge "amb la signatura del Monte" SSA "a la interfície" org.freedesktop.Hal.Device.Volume "no existeix" . It seems that the introduction of HAL has complicated matters and I have been unable to find an answer on the forums. Sembla que la introducció de HAL ha complicat i he estat incapaç de trobar una resposta en els fòrums. Can you help, please, perhaps with an updated article? Poden ajudar, si us plau, potser amb una versió actualitzada de l'article? All my back-up data is on the ZIP which is unreadable either by Windows or Knoppix. Tots els meus còpies de seguretat de dades està en la postal que no es pot llegir, ja sigui per Windows o Knoppix.

Leave a Reply Deixi una contestació

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Vostè pot utilitzar aquestes etiquetes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <l'datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Subscriure's als informes S'ha desactivat la característica. To receive notification of latest comments posted, subscribe to Per rebre la notificació de l'última enviar comentaris, subscriure's a My Digital Life Comments RSS feed La meva vida digital Comentaris RSS or o register to receive registrar-se per rebre new comments in daily email digest. nous informes en el email diari digerir.
Custom Search

New Articles Nous articles

Incoming Search Terms for the Article Propers Termes de cerca per l'article

ubuntu mount usb ubuntu muntar usb - -- mount usb ubuntu muntar usb ubuntu - -- mount usb disk muntar disc usb - -- ubuntu mount usb drive ubuntu muntar unitat USB - -- mount usb drive ubuntu muntar unitat USB ubuntu - -- ubuntu mount usb device ubuntu muntar dispositiu USB - -- linux mount usb disk linux muntar el disc USB - -- ubuntu usb mount ubuntu usb muntatge - -- mount usb disk ubuntu muntar disc usb ubuntu - -- ubuntu mount usb hard drive ubuntu mont usb disc dur - -- ubuntu mount usb disk ubuntu muntar el disc USB - -- fedora mount usb drive fedora muntar unitat USB - -- mount USB linux USB muntar linux - -- linux usb disk linux disc USB - -- mount usb muntar usb - -- usb disk linux disc usb de linux - -- linux mount usb linux muntar usb - -- unix mount usb unix muntar usb - -- usb mount muntar usb - -- mount usb unix muntar usb unix - -- linux mount usb drive linux muntar unitat USB - -- mounting usb ubuntu muntatge usb ubuntu - -- mount usb fedora muntar usb fedora - -- usb mount ubuntu muntar ubuntu usb - -- mount usb device ubuntu muntar dispositiu usb ubuntu - -- ubuntu usb drive mount ubuntu usb unitat de muntatge - -- mount usb hard drive ubuntu muntar disc dur usb ubuntu - -- mount usb drive unix muntar unitat USB unix - -- ubuntu mounting usb ubuntu usb muntatge - -- UNIX mount usb drive UNIX muntar unitat USB - -- mount thumb drive linux muntar la unitat polze linux - -- ubuntu mount external usb drive ubuntu muntar unitat USB externa - -- mount usb drive fedora muntar unitat USB fedora - -- ubuntu mount usb hdd ubuntu mont usb hdd - -- mount usb drive linux muntar unitat USB linux - -- ubuntu mount usb ubuntu muntar usb - -- usb unix unix usb - -- mount usbdisk muntar usbdisk - -- all tot - -- usb disk mount muntar disc usb - -- mount usb on ubuntu muntar usb a ubuntu - -- mount usb in linux muntar usb a linux - -- fedora mount usb fedora muntar usb - -- how to mount usb in linux com muntar usb a linux - -- ubuntu automount usb drive ubuntu automount unitat USB - -- how to mount usb disk com muntar el disc USB - -- mount usb drive in unix muntar unitat USB a unix - -- how to mount usb drive in ubuntu com muntar unitat USB a ubuntu - -- mount external usb drive ubuntu muntar la unitat externa usb ubuntu - -- ubuntu mount usb harddrive ubuntu mont usb disc dur - -- mounting a USB drive in Ubuntu muntatge d'una unitat USB en Ubuntu - -- mount USB drive muntar unitat USB - -- mounting usb drive ubuntu muntatge de la unitat usb ubuntu - -- vmware mount usb drive VMware muntar unitat USB - -- fedora mount usb disk fedora muntar el disc USB - -- mount usb drive in fedora muntar unitat USB a Fedora - -- montare usb ubuntu montaré usb ubuntu - -- automount usb drive ubuntu automount unitat USB ubuntu - -- how to mount usb drive in linux com muntar unitat USB a linux - -- mount usb drive in linux muntar unitat USB a linux - -- how to mount usb ubuntu com muntar ubuntu usb - -- unix usb unix usb - -- Ubuntu USB mounten Ubuntu USB mounted - -- ubuntu how to mount usb drive ubuntu com muntar unitat USB - -- linux on usb disk linux en disc usb - -- ubuntu auto mount ubuntu muntatge automàtic - -- mount usb in ubuntu muntar usb a ubuntu - -- mount usb drive in ubuntu muntar unitat USB a ubuntu - -- mount ubuntu usb muntar ubuntu usb - -- usb drive mount ubuntu ubuntu usb unitat de muntatge - -- how to mount usb on linux com muntar usb a linux - -- mount usb harddrive ubuntu muntar disc dur usb ubuntu - -- mount usb ubuntu muntar usb ubuntu - -- unix usb drive unix unitat USB - -- mount usb on unix muntar usb a Unix - --