How to Mount USB Disk Drive in UNIX or Linux如何挂载的USB磁盘驱动器在UNIX或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).最distros (分布)的Linux ,包括mandrake 10.1 ,的SuSE 9.x及其的Fedora Core 3现在可以支持即插即用和堵塞检测,发现和驱动程序的安装便携式USB驱动器或U盘(和任何类型的USB为基础的数据存储装置的设备,如硬盘驱动器,钢笔驱动器, USB钥匙,闪存盘,拇指驱动器,记忆体的关键,的USB ZIP驱动器及Memory Stick ) 。 Some Linux operating system even can auto-mount the USB drives, especially if you’re using Gnome and KDE.一些Linux作业系统,甚至可以自动挂载USB驱动器,特别是如果您使用的GNOME和KDE 。 When you plug-in the USB disk, Linux will pop-up a window showing the content of USB disk just like Microsoft Windows.当您的插件,在U盘, Linux将弹出式窗口显示的内容,随身碟,就像在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.不过,如果您使用旧版本的Linux ,或使用Unix操作系统,或您的Linux distro安装无法侦测及摩USB存储设备自动,那么你将不得不手动安装和挂载USB驱动器。
To manually mount a USB disk or USB drive or USB device in Linux or UNIX:手动装入一个USB磁盘或USB驱动器或USB设备在Linux或者Unix :
- Login as root.以root登入。 You can use the su command to switch to root user.您可以使用苏命令切换到root用户。
- Create a folder /mnt/USB with the command: mkdir /mnt/USB创建一个文件夹/产妇和新生儿破伤风/的USB与命令: mkdir /产妇和新生儿破伤风/的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):添加下面一行在档案中了/ etc / fstab ( fstab是文件告诉Linux的情况下安装各种设备,从而简化挂载命令) :
/dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0 / dev/sda1 /产妇和新生儿破伤风/的USB自动noauto ,业主,葛根0 0
Note: The “auto” on the above line means auto detection of filesystem.注: “自动”就上述路线的手段自动检测的文件。 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).如果您的系统无法确定文件类型,改变相应的USB驱动器的文件(例如vfat或NTFS或的ext2或ext3 ) 。
- Mount the USB storage device with the following command: mount /dev/sda1挂载USB储存装置与下列命令: 山/ dev/sda1
Without the need modifying fstab (step 3), you can also straight away issue the mount command (step 4) with the following syntax:而不需要修改fstab (第3步) ,您也可以立即的问题,挂载命令(步骤4 )与下面的语法:
mount /dev/sda1 /mnt/USB 摩/ dev/sda1 /产妇和新生儿破伤风/的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:如果您知道文件的USB驱动器或系统无法确定正确的文件, -吨选项可以用来文件类型的USB设备:
mount -t vfat /dev/sda1 /mnt/usb (for vFAT filesystem) 摩-吨vfat / dev/sda1 /产妇和新生儿破伤风/个USB (为vfat文件)
mount -t ntfs /dev/sda1 /mnt/usb (for NTFS filesystem) 摩-吨的NTFS / dev/sda1 /产妇和新生儿破伤风/个USB ( NTFS的文件系统)
Sometimes, the USB drive or USB storage device is detected by the system but been assigned a different device name from sda1.有时候, USB驱动器或USB存储设备检测系统,但被指派不同的装置名称从sda1 。 If so, the correct device name need to be determined by viewing and OS log file.如果是的话,正确的设备名称需要加以确定通过查看和操作系统日志文件。 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:通常Linux和Unix启动和日志信息是存放在/ var /日志/讯息,您可以查看日志信息与以下命令:
tail -f /var/log/messages 尾巴- F的在/ var / log /邮件
or或
dmesg dmesg
Check for the name of the device that appears after operating system detects the USB devices.所有内容的名称,该装置后出现的作业系统侦测到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.之后,使用USB磁盘,记得要卸载USB驱动器与下列命令,以避免任何可能的损失,数据或更改和风险梅辛您的分区。
umount /mnt/USB umount /产妇和新生儿破伤风/的USB
Configure Gnome to automatically detect, install and mount USB drive 配置GNOME的自动检测,安装及摩的USB驱动器
If you’re using Gnome yet unable to automatically detect and mount USB drive for usage, a few packages needed to be install.如果您使用的GNOME ,但无法自动侦测并安装USB驱动器使用,有几个包必须安装。 The packages to install are dbus, hald and Gnome-Volume-Manager.软件包安装是dbus , hald和GNOME量经理。 After installing these packages, configure dbus and hald setup to run via init scripts.安装完毕后这些软件包,配置dbus和hald安装运行通过init脚本。 Then in Gnome, some configuration has to be done.然后在gnome ,而一些配置工作需要做。 Click on the ‘Desktop’ menu, then go to ‘Preferences’, and then to ‘Removable Drives and Media’.点击'桌面'菜单,然后进入'偏好' ,然后'可移动驱动器和媒体' 。 Configure the settings to your liking.配置设置您想要的。 Once you plug-in a usb drive, an icon for the drive will appear on the desktop.一旦您的插件在一个USB驱动器,一个图标为驱动器将出现在桌面上。 Other possible setting is to have Gnome opens a window showing the contents of the USB drive.其他可能的设置是有GNOME的打开了一个窗口,显示的内容, USB驱动器。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article原来的英语文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 . 。
Related Articles相关文章
- No Drive Letter for USB or Firewire Drive没有磁碟机代号为USB或FireWire驱动器
- CD/DVD-ROM Virtual Drive Emulator Software Free Download在CD / DVD光盘驱动器的虚拟仿真器软件免费下载
- How To Mount and Access New Partition, Volume or Drive As Folder Path In Windows如何安装和进入新的分区,卷或驱动器作为文件夹路径在Windows
- Change or Modify the Drive Letter and Paths in Windows Vista更改或修改的驱动器号和路径,在Windows Vista
- Refresh Linux or Unix Path Environmental Variables with rehash刷新的Linux或Unix路径环境变数与翻版
- Change Group Ownership of Symbolic Links in Unix or Linux改变组所有权的符号链接在Unix或Linux
- How to Open and Extract .DAA Image Files如何打开和提取物。 daa影像档案
- Running Google Earth on Suse Linux with VMware Google地球运行在SuSE Linux上使用VMware
- How to Create a Bootable USB Flash Drive or USB Key with Vista WinPE 2.0如何创建开机USB快闪磁碟机或USB钥匙与Vista中的WinPE 2.0
- Common Troubleshooting Methods When OS Install Unable to Detect SATA Harddisk Drive常见故障排除方法时, OS的安装无法检测到的SATA硬盘驱动器

































January 24th, 2007 17:18 2007年1月24日17时18分
Thanks for an excellent 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”.但升级后简化为SuSE 10.1 ( 10.2不会安装) ,我无法访问我的USB艾美加Zip驱动器和接收味精“山与签字”的船舶安全警报系统“对接口” org.freedesktop.hal.device.volume “不存在” 。 It seems that the introduction of HAL has complicated matters and I have been unable to find an answer on the forums.看来,引进的HAL已复杂的问题,我一直无法找到答案就论坛。 Can you help, please, perhaps with an updated article?你能帮助,请你,也许与更新的文章? All my back-up data is on the ZIP which is unreadable either by Windows or Knoppix.我所有的备份数据,是关于邮编是不可读无论是由Windows或knoppix 。
February 17th, 2007 11:25 2007年2月17日11时25分
Please note that there is a small typo in the main article above.请注意,有一个小错字在主要文章以上。
/dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0 / dev/sda1 /产妇和新生儿破伤风/的USB自动noauto ,业主,葛根0 0
Should read:应改为:
/dev/sda1 /mnt/USB auto noauto,owner,kudzu 0 0 / dev/sda1 /产妇和新生儿破伤风/的USB自动noauto ,业主,葛根0 0
Still, the article did help… thanx但是,文章没有帮助… thanx
February 17th, 2007 13:42 2007年2月17日13时42分
I believe kuzu would work, kudzu is kind of for cdrom.我相信会的工作,葛根,葛根是种为的CDROM 。
August 10th, 2008 16:03 2008年8月10日16时03分
[...] I eventually find a helpful post that explains in better detail than most how mounting volumes [...] [ … … ] i最终找到一个有用的职位,更好的解释,在详细比大多数如何安装卷[ … … ]
August 13th, 2008 05:44 2008年8月13日5时44分
When I mount dev/sda1 it mounts my main filesystem drive not the usb.当我装入dev/sda1它安装到我的主要文件系统驱动器没有的USB 。 I can’t get my usb to mount no matter what I do (running Ubuntu) but windows reads it fine.我不能让我的USB接口安装无论什么,我(运行Ubuntu的) ,但在Windows的内容,它的罚款。