How to Mount USB Disk Drive in UNIX or Linux Como montar a unidade de disco USB em Unix ou 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). A maior parte das distros (distribuições) do Linux Mandrake 10,1 incluir, SuSE Fedora Core 3 e 9.x pode agora apoiar plug-and-plug detecção, a descoberta e para a instalação driver drive USB portátil ou disco USB (USB e qualquer tipo de base de armazenamento de dados dispositivos de dispositivos tais como discos rígidos, pen drives, chaves USB, flash disco, thumb drive, memory key, zip drive e USB memory stick). Some Linux operating system even can auto-mount the USB drives, especially if you’re using Gnome and KDE. Alguns até mesmo sistema operacional Linux pode auto-montar o drives USB, especialmente se você estiver usando o Gnome e KDE. When you plug-in the USB disk, Linux will pop-up a window showing the content of USB disk just like Microsoft Windows. Quando você plug-in do disco USB, o Linux será uma janela pop-up mostrando o conteúdo do disco USB como 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. No entanto, se você estiver usando a versão antiga do Linux, UNIX ou usando o sistema operacional, ou a sua distro instalação incapaz de detectar e montar o armazenamento USB automaticamente, então você terá que instalar manualmente e montar a unidade USB.

To manually mount a USB disk or USB drive or USB device in Linux or UNIX: Para montar manualmente um disco USB ou drive USB ou dispositivo USB no Linux ou Unix:

  1. Login as root. Login como raiz. You can use the su command to switch to root user. Você pode usar o comando su para mudar para o usuário root.
  2. Create a folder /mnt/USB with the command: mkdir /mnt/USB Criar uma pasta / mnt / USB com o comando: 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): Adicione a seguinte linha no arquivo / etc / fstab (fstab é o arquivo que informa que o Linux para montar os vários dispositivos, e, portanto, simplying o comando mount):

    /dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0 / dev/sda1 / mnt / USB auto noauto, proprietário, kuzu 0 0

    Note: The “auto” on the above line means auto detection of filesystem. Nota: O "auto" sobre o meio acima da linha de detecção automática de arquivos. 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). Se o seu sistema incapaz de determinar o tipo de ficheiros, alterá-lo em conformidade com o drive USB's de arquivos (por exemplo, ou vfat ntfs ou ext2 ou ext3).

  4. Mount the USB storage device with the following command: mount /dev/sda1 Monte o armazenamento USB com o seguinte comando: 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: Sem a necessidade modificando fstab (etapa 3), você pode também emitir imediatamente o comando mount (passo 4) com a seguinte sintaxe:

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: Se você conhecer o sistema de arquivos da unidade USB ou o sistema não conseguir determinar o correto de arquivos, a t-opção pode ser usada para o sistema de arquivos do tipo de dispositivo USB:

mount -t vfat /dev/sda1 /mnt/usb (for vFAT filesystem) mount-t vfat / dev/sda1 / mnt / usb (para os arquivos VFAT)
mount -t ntfs /dev/sda1 /mnt/usb (for NTFS filesystem) mount-t ntfs / dev/sda1 / mnt / usb (para arquivos NTFS)

Sometimes, the USB drive or USB storage device is detected by the system but been assigned a different device name from sda1. Às vezes, a unidade USB ou armazenamento USB é detectada pelo sistema, mas foi atribuído um nome de dispositivo sda1 diferentes. If so, the correct device name need to be determined by viewing and OS log file. Se assim for, o nome correto dispositivo necessita de ser determinado por visualização e OS arquivo de registro. 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: Geralmente o Linux e UNIX boot e log mensagem é armazenado em / var / log / messages, e você pode visualizar o log mensagens com os seguintes comandos:

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

or ou

dmesg dmesg

Check for the name of the device that appears after operating system detects the USB devices. Verificar o nome do dispositivo que aparece depois do sistema operacional detecta os dispositivos 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. Depois de usar o disco USB, lembre-se de desmontar a unidade USB com o seguinte comando a fim de evitar qualquer possível perda de dados ou a mudanças e risco a sua messe partição.

umount /mnt/USB umount / mnt / USB

Configure Gnome to automatically detect, install and mount USB drive Configurar o Gnome para detectar automaticamente, instalar e montar drive USB

If you’re using Gnome yet unable to automatically detect and mount USB drive for usage, a few packages needed to be install. Se você estiver usando o Gnome ainda não foi possível detectar automaticamente e montar unidade USB para uso, alguns pacotes necessários para se instalar. The packages to install are dbus, hald and Gnome-Volume-Manager. Os pacotes de instalação estão dbus, hald e-Gnome-Volume Manager. After installing these packages, configure dbus and hald setup to run via init scripts. Após instalar estes pacotes, configure dbus e hald configuração para ser executado através de scripts init. Then in Gnome, some configuration has to be done. Depois, em Gnome, alguma configuração tem de ser feito. Click on the ‘Desktop’ menu, then go to ‘Preferences’, and then to ‘Removable Drives and Media’. Clique no botão "Desktop" menu e, em seguida, vá para 'Preferências' e, em seguida, a "movimentações removíveis e Media". Configure the settings to your liking. Configurar as definições a seu gosto. Once you plug-in a usb drive, an icon for the drive will appear on the desktop. Depois de plug-in de uma unidade USB, um ícone para a unidade irá aparecer no desktop. Other possible setting is to have Gnome opens a window showing the contents of the USB drive. Outra definição é possível ter o Gnome abre uma janela mostrando o conteúdo do drive USB.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.

Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .



5 Responses to “How to Mount USB Disk Drive in UNIX or Linux” 5 Responses para "Como Montar USB Disk Drive em UNIX e Linux"

  1. Gervase Chavasse Gervase Chavasse
    January 24th, 2007 17:18 24 de janeiro de 2007 17:18
    1

    Thanks for an excellent article. Graças a um excelente artigo. 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”. Mas, após a atualização para Suse 10,1 (10,2 não iria instalar), eu não posso acessar minha USB Iomega ZIP e receber msg "Montar a assinatura" ssas "a interface" org.freedesktop.Hal.Device.Volume "não existe" . It seems that the introduction of HAL has complicated matters and I have been unable to find an answer on the forums. Parece que a introdução de HAL tem questões complicadas e eu temos sido incapazes de encontrar uma resposta sobre os fóruns. Can you help, please, perhaps with an updated article? Você pode ajudar, por favor, talvez com uma actualização artigo? All my back-up data is on the ZIP which is unreadable either by Windows or Knoppix. Todos os meus dados de back-up está no ZIP que é ilegível, quer pelo Windows ou Knoppix.

  2. Ogryzek
    February 17th, 2007 11:25 17 de fevereiro de 2007 11h25
    2

    Please note that there is a small typo in the main article above. Por favor note que há um pequeno erro tipográfico no artigo principal acima.

    /dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0 / dev/sda1 / mnt / USB auto noauto, proprietário, kuzu 0 0

    Should read: Deve ler-se:

    /dev/sda1 /mnt/USB auto noauto,owner,kudzu 0 0 / dev/sda1 / mnt / USB auto noauto, proprietário, kudzu 0 0

    Still, the article did help… thanx Ainda assim, o artigo tenha ajuda… thanx

  3. admin
    February 17th, 2007 13:42 17 de fevereiro de 2007 13:42
    3

    I believe kuzu would work, kudzu is kind of for cdrom. Creio kuzu iria trabalhar, kudzu é do tipo de cdrom.

  4. BlogSplat » Blog Archive » Adventures In Linuxland BlogSplat "Blog Archive" Aventuras em Linuxland
    August 10th, 2008 16:03 10 de agosto de 2008 16:03
    4

    [...] I eventually find a helpful post that explains in better detail than most how mounting volumes [...] [...] Acabei por encontrar um posto útil que explica em detalhe melhor do que a maioria como montar volumes [...]

  5. David
    August 13th, 2008 05:44 13 de agosto de 2008 05:44
    5

    When I mount dev/sda1 it mounts my main filesystem drive not the usb. Quando eu montar dev/sda1 ele monta a minha principal de arquivos não o drive USB. I can’t get my usb to mount no matter what I do (running Ubuntu) but windows reads it fine. Não consigo fazer o meu usb para a montagem não importa o que eu faço (rodando Ubuntu) janelas, mas lê-la bem.

Leave a Reply Deixe uma resposta

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> Você pode usar estas tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Subscreva sem comentar


Custom Search

New Articles Novos Artigos

Incoming Search Terms for the Article Incoming Termos de pesquisa para o artigo

ubuntu mount usb Ubuntu montar USB - -- mount usb ubuntu Mount USB Ubuntu - -- mount usb disk Montar disco USB - -- ubuntu mount usb drive Ubuntu montar drive USB - -- mount usb drive ubuntu Mount drive USB Ubuntu - -- ubuntu mount usb device Ubuntu montar dispositivo USB - -- linux mount usb disk Linux montar disco USB - -- ubuntu usb mount Ubuntu USB Mount - -- mount usb disk ubuntu Montar disco USB Ubuntu - -- ubuntu mount usb hard drive Ubuntu USB montar disco rígido - -- ubuntu mount usb disk Ubuntu montar disco USB - -- fedora mount usb drive Fedora montar drive USB - -- mount USB linux Mount USB Linux - -- linux usb disk Linux disco USB - -- mount usb Mount USB - -- usb disk linux disco USB Linux - -- linux mount usb Mount USB Linux - -- unix mount usb Unix montar USB - -- usb mount USB Mount - -- mount usb unix Mount USB Unix - -- linux mount usb drive Linux montar drive USB - -- mounting usb ubuntu montando USB Ubuntu - -- mount usb fedora Mount USB Fedora - -- usb mount ubuntu USB montar Ubuntu - -- mount usb device ubuntu Montar dispositivo USB Ubuntu - -- ubuntu usb drive mount Ubuntu USB drive montar - -- mount usb hard drive ubuntu Mount USB disco rígido Ubuntu - -- mount usb drive unix Mount drive USB Unix - -- ubuntu mounting usb Ubuntu montagem USB - -- UNIX mount usb drive UNIX montar drive USB - -- mount thumb drive linux Mount polegar drive Linux - -- ubuntu mount external usb drive Ubuntu montar unidade USB externa - -- mount usb drive fedora Mount drive USB Fedora - -- ubuntu mount usb hdd Ubuntu montar USB HDD - -- mount usb drive linux Mount drive USB Linux - -- ubuntu mount usb Ubuntu montar USB - -- usb unix USB Unix - -- mount usbdisk Mount usbdisk - -- all todos - -- usb disk mount disco USB Mount - -- mount usb on ubuntu Mount USB em Ubuntu - -- mount usb in linux Mount USB no Linux - -- fedora mount usb Fedora montar USB - -- how to mount usb in linux como montar usb no linux - -- ubuntu automount usb drive Ubuntu automount drive USB - -- how to mount usb disk como montar disco USB - -- mount usb drive in unix Mount drive USB em Unix - -- how to mount usb drive in ubuntu como montar usb drive em ubuntu - -- mount external usb drive ubuntu Montar unidade USB externa Ubuntu - -- ubuntu mount usb harddrive Ubuntu USB montar harddrive - -- mounting a USB drive in Ubuntu montando um drive USB no Ubuntu - -- mount USB drive Mount drive USB - -- mounting usb drive ubuntu montando drive USB Ubuntu - -- vmware mount usb drive VMware montar drive USB - -- fedora mount usb disk Fedora montar disco USB - -- mount usb drive in fedora Mount drive USB no Fedora - -- montare usb ubuntu montare USB Ubuntu - -- automount usb drive ubuntu automount drive USB Ubuntu - -- how to mount usb drive in linux como montar usb drive no linux - -- mount usb drive in linux Mount drive USB no Linux - -- how to mount usb ubuntu como montar USB Ubuntu - -- unix usb Unix USB - -- Ubuntu USB mounten Ubuntu USB mounten - -- ubuntu how to mount usb drive ubuntu como montar usb drive - -- linux on usb disk Linux no disco USB - -- ubuntu auto mount Ubuntu a montagem automática - -- mount usb in ubuntu Mount USB no Ubuntu - -- mount usb drive in ubuntu Mount drive USB no Ubuntu - -- mount ubuntu usb Mount Ubuntu USB - -- usb drive mount ubuntu drive USB montar Ubuntu - -- how to mount usb on linux como montar usb em linux - -- mount usb harddrive ubuntu Mount USB harddrive Ubuntu - -- mount usb ubuntu Mount USB Ubuntu - -- unix usb drive Unix drive USB - -- mount usb on unix Mount USB em Unix - --