How to Mount USB Disk Drive in UNIX or Linux Ako pripojiť disk USB disk v prostredí UNIX alebo 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). Väčšina distribúciách (distribúcia) patrí Mandrake Linux 10.1, SuSE 9.x a Fedora Core 3 teraz podporuje plug-and-plug odhaľovaní, zisťovaní a inštalácia ovládačov pre prenosný USB disk alebo USB disk (a pre každý typ USB-bázy dát zariadenia, zariadenia, ako sú pevné disky, usb disky, USB kľúčenky, flash disk, jednotka palec, pamäťovú kľúčenku, ZIP disk a USB memory stick). Some Linux operating system even can auto-mount the USB drives, especially if you're using Gnome and KDE. Niektoré operačný systém Linux, dokonca môžete auto-mount USB disky, najmä ak používate KDE a GNOME. When you plug-in the USB disk, Linux will pop-up a window showing the content of USB disk just like Microsoft Windows. Keď plug-in USB disku, bude Linux pop-up okno zobrazujúce obsah USB disku, rovnako ako 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. Avšak, ak používate staršie verziu pre Linux alebo pomocou unixového operačného systému, alebo váš Linux odvrátenie inštalácia schopný detekovať a pripojiť USB zariadenie automaticky, potom budete musieť ručne nainštalovať a pripojiť USB disk.
To manually mount a USB disk or USB drive or USB device in Linux or UNIX: Ak chcete manuálne pripojiť USB disku alebo USB disk alebo USB zariadení v systéme Linux alebo UNIX:
- Login as root. Prihlásiť sa ako root. You can use the su command to switch to root user. Môžete použiť príkaz su sa prepnúť na užívateľa root.
- Create a folder /mnt/USB with the command: mkdir /mnt/USB Vytvoriť novú zložku / mnt / USB pomocou príkazu: mkdir / mnt / USB
- 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): Pridajte nasledujúci riadok v súbore / etc / fstab (fstab je súbor, ktorý povie, Linux, kde pripojiť rôzne zariadenia, a tak simplying príkaz mount):
/dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0 / Dev/sda1 / mnt / USB auto noauto, owner, kuzu 0 0
Note: The “auto” on the above line means auto detection of filesystem. Poznámka: "auto" na vyššie uvedených riadok pomocou automatického rozpoznávania súborového systému. 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). Ak je váš systém schopný určiť typ súborového systému, zmena sa teda na USB disku na súborový systém (napr. vfat a ntfs, alebo ext2 alebo ext3).
- Mount the USB storage device with the following command: mount /dev/sda1 Mount USB zariadenia s nasledujúcim príkazom: 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: Bez toho by bolo potrebné úprave fstab (krok 3), môžete tiež okamžite vydať príkaz mount (krok 4), s nasledujúcej syntaxou:
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: Poznáte Ak súborový systém na USB disk alebo systém nedokáže určiť správny súborový systém, parameter-t možno použiť súborový systém typu zariadenia USB:
mount -t vfat /dev/sda1 /mnt/usb (for vFAT filesystem) mount-t vfat / dev/sda1 / mnt / usb (pre vfat filesystem)
mount -t ntfs /dev/sda1 /mnt/usb (for NTFS filesystem) mount-t ntfs / dev/sda1 / mnt / usb (na NTFS)
Sometimes, the USB drive or USB storage device is detected by the system but been assigned a different device name from sda1. Niekedy je USB disk alebo pamäťové zariadenie USB odhalené systémom, ale bol pridelený iný názov zariadenia od sda1. If so, the correct device name need to be determined by viewing and OS log file. Ak áno, správny názov zariadenia musia byť určená prezeranie a OS log súboru. 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: Zvyčajne Linux a UNIX zavádzací záznam a správa je uložená v / var / log / messages, a môžete prezerať protokol správy s nasledujúcimi príkazmi:
tail -f /var/log/messages chvost-f / var / log / messages
or alebo
dmesg dmesg
Check for the name of the device that appears after operating system detects the USB devices. Skontrolujte, či názov zariadenia, ktoré sa objaví po operačný systém detekuje USB zariadenie.
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. Po použití USB disku, nezabudnite odpojiť USB disk s nasledujúcim príkazom, aby sa zabránilo prípadnej straty dát alebo zmeny a riziko zásahom do vášho oddielu.
umount /mnt/USB umount / mnt / USB
Configure Gnome to automatically detect, install and mount USB drive Konfigurácia Gnome automaticky zistiť, inštalovať a pripojiť USB disk
If you're using Gnome yet unable to automatically detect and mount USB drive for usage, a few packages needed to be install. Ak používate Gnome nie je schopný automaticky detekovať a pripojiť USB disk pre použitia, niekoľko balíkov je potrebné nainštalovať. The packages to install are dbus, hald and Gnome-Volume-Manager. Balíčky pre inštaláciu, sú dbus, háld a Gnome-volume-manager. After installing these packages, configure dbus and hald setup to run via init scripts. Po inštalácii týchto balíčkov dbus a háld konfigurovať nastavenia pre spustenie cez init skripty. Then in Gnome, some configuration has to be done. Potom v Gnome, niektoré konfigurácie je potrebné urobiť. Click on the 'Desktop' menu, then go to 'Preferences', and then to 'Removable Drives and Media'. Kliknite na menu 'Desktop', potom choďte na 'Preferences', a potom na 'Removable pohony a médií'. Configure the settings to your liking. Konfigurovať nastavenia podľa vašich predstáv. Once you plug-in a usb drive, an icon for the drive will appear on the desktop. Akonáhle si plug-in usb disk, ikona disku sa objaví na ploche. Other possible setting is to have Gnome opens a window showing the contents of the USB drive. Ostatné nastavenia je možné mať Gnome sa otvorí okno zobrazujúce obsah disku USB.
IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: stránka je stroje preložené a za predpokladu, "ako je" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Nájdete na original English article originál Anglicky artikl whenever possible. ak je to možné.
Related Articles Súvisiace články
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum Ako vypočítať a Generovať MD5 hash hodnota v Linuxu a Unixu s md5sum
- Refresh Linux or Unix Path Environmental Variables with rehash Občerstviť Linux alebo Unix Cesta Premenné prostredia s rehash
- How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending Ako zakázať Linux a Unix Cron zamestnanosť (crontab) Email Odoslanie
- Change Group Ownership of Symbolic Links in Unix or Linux Zmeniť Skupina Vlastníctvo Symbolický Golfové ihrisko do Unix alebo Linux
- How to Make or Create Symbolic Link in Unix or Linux Ako si vyrobiť alebo vytvoriť symbolický odkaz na Unixu alebo Linuxu
- Download Virtual CloneDrive To Mount ISOs and Other Disk Images Without Burning a Disc Stiahnuť Virtual CloneDrive Ak Mount ISO obrazy a ďalšie diskiet Bez Horiaca Disc
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux Ako zmeniť či Strašidlo MAC adresu vo Windows XP, Vista, Server 2003/2008, Mac OS X, Unix a Linux
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux Open, Citát a Konvertita DAA, ISO a BIN Archiv do Linux s Drzý PowerISO pre Linux
- Mandriva Linux 2008 Available for Downloading Mandriva Linux 2008 k dispozícii na stiahnutie
- Check Your Disk! Skontrolujte, či disk! Provides Statistical Information of Hard Disk Usage Poskytuje štatistické informácie o využitie pevného disku










































September 27th, 2008 13:25 27.září 2008 13:25
In reply to David. V odpovedi na Davida. If you have a sata hdd that would be /dev/sda1. Ak máte SATA HDD, ktoré by boli / 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. Ak je to váš prípad usb disk bude s najväčšou pravdepodobnosťou / dev/sdb1 Do dmesg vidieť, ako sa usb uznaná pri zasunuté dovnútra
August 13th, 2008 05:44 13.august 2008 05:44
When I mount dev/sda1 it mounts my main filesystem drive not the usb. Keď som ho montuje hora dev/sda1 môj hlavný súborový systém disk nie je usb. I can't get my usb to mount no matter what I do (running Ubuntu) but windows reads it fine. I can't get my usb pripojiť bez ohľadu na to, čo mám robiť (beh Ubuntu), ale okná to číta dobre.
August 10th, 2008 16:03 10.srpen 2008 16:03
[...] I eventually find a helpful post that explains in better detail than most how mounting volumes [...] [...] Som nakoniec nájsť užitočné príspevok, ktorý podrobne vysvetľuje lepšie než väčšina ostatných, ako pripájanie [...]
February 17th, 2007 13:42 17.februára 2007 13:42
I believe kuzu would work, kudzu is kind of for cdrom. Verím, že kuzu bude fungovať, Kudzu je v istom zmysle pre cdrom.
February 17th, 2007 11:25 17.februára 2007 11:25
Please note that there is a small typo in the main article above. Upozorňujeme, že tam je malý preklep v hlavnej článok vyššie.
/dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0 / Dev/sda1 / mnt / USB auto noauto, owner, kuzu 0 0
Should read: By mal znieť:
/dev/sda1 /mnt/USB auto noauto,owner,kudzu 0 0 / Dev/sda1 / mnt / USB auto noauto, owner, Kudzu 0 0
Still, the article did help… thanx Napriek tomu článok sa pomôcť ... thanx
January 24th, 2007 17:18 24. januára 2007 17:18
Thanks for an excellent article. Vďaka za skvelý článok. 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”. Ale po inovácii na Suse 10.1 (10.2 nebude inštalácia), nemôžem sa dostať ku svojmu USB Iomega ZIP a prijímať msg "Mount s podpisom" ssas "na rozhranie" org.freedesktop.Hal.Device.Volume "neexistuje" . It seems that the introduction of HAL has complicated matters and I have been unable to find an answer on the forums. Zdá sa, že zavedenie HAL má komplikované záležitosti a ja sme neboli schopní nájsť odpoveď na fórach. Can you help, please, perhaps with an updated article? Môžete mi pomôcť, prosím, snáď s aktualizovaný článok? All my back-up data is on the ZIP which is unreadable either by Windows or Knoppix. Všetky moje back-up dáta je na ZIP, ktorý je nečitateľný buď Windows alebo Knoppix.