The main differences between Unmount , Eject and Safely Remove Drive
来源:互联网 发布:手机指纹锁软件下载 编辑:程序博客网 时间:2024/05/17 09:08
原文摘至:http://askubuntu.com/questions/5845/what-is-the-difference-between-unmount-eject-safely-remove-drive-and-the
Unmount
This option will "literally" unmount the device/partition and it applies normally (In Nautilus) to hard drives, be them, internal or external. Is not common to see it for Flash Drives / Pen Drives / Thumb Drives / SD Card / Digital Camera and any other device that needs to sync before powering down.
This is not the recommended way of doing it when addressing a device that needs to power down first if your intention is to disconnect the device afterwards, as the device will still show in the Nautilus panel..
Have in mind that unmount gives you the ability mount the device again (Since it did not power down or actually eject the device from the system).
Eject / Eject Button
Somehow similar to Unmount, it will unmount the device/partition. The problem is that this option should only be present for Optical Devices (Devices that do not need to sync data before disconnecting) since this actually EJECTS the device. I mean literally ejects or opens your CD Drive/DVD Drive Device so you can take the CD/DVD out of it, physically speaking.
You will not be able to mount the device again, except if you insert the CD/DVD back in (With Optical devices) or remove and reinsert the USB Drive again (For Flash Drives and other similar devices). Since this option also appears for USB Drives, and CD/DVD Drives behave differently than USB Drives (Hard Drives and Pen Drives in this case, Optical devices are omitted), ejecting a not properly synced USB Drive (Flash Drive or Hard Drive) could cause problems.
There is however a verification process that runs when you try to Eject a device that needs sync. For example, if you try to eject a device that is copying data at that precise moment, it will give you the following warning:
If you try to Eject the device and the sync is not done yet, you will get a message along the lines of "waiting for sync to finish before ejecting device". This only shows or at least it gives you enough time to see the message if you copy a lot files, specially small ones mixed in with big ones and then immediately after finishing the copy process you try to Eject it.
Note a couple of things:
If you have an USB CD/DVD Drive and you Eject the medium, this will actually eject the whole device. You would have to insert the CD/DVD image back in to make the device appear again.
If you Eject (At least with 12.04 and 12.10, haven't tested older versions) a USB Device that needs sync, the Eject process will power down the device AFTER the sync is done. This might be the cause of not seeing the option for "Safely Remove Drive".
If you connect a device that has multiple partitions (Like some IPods, N900 Smartphone or other devices that show 2 or more Devices in Nautilus), Eject will only "eject" with the device you have selected. It will not work with others until you specifically tell it.
Ejecting a device that has multiple partitions does not work correctly. It does not power down the device correctly so you might have problems or issues.
Safely Remove Drive
This option differs from the others since it is specifically design for synced devices like USB Hard Drives, Pen Drives, etc.. It will sync the device, unmount it and then power it down. This option should be available for devices that need sync, although Eject has taken some of the properties of Safely Remove Drive.
Here are some pics that show what you can see when you try to disconnect the device:
As you can see in this image, a Pen Drive / Flash Drive has the "Eject" option
An external USB Hard Drive has the "unmount" option
An external USB DVD Drive has the "Eject" option
Unity Launcher showing an "Eject Parent Drive" option on a multi-partitioned Pen Drive (Has 2 partitions in this case)
A 2 partition created pen drive
Basically what we should see is this:
Unmount - For Hard Drives
Eject - For Optical Drives
Safely Remove - For USB Drives that need sync and power down (Pen Drives for example)
Should be noted that Unity Launcher shows options differently than Nautilus. GPARTED or the Disk App also show differently than Nautilus.
When a drive is connected and its filesystem loaded, it is mounted, as if with themount
(orpmount
) command, to a location on the root filesystem (usually somewhere inside/media
). When the filesystem is no longer needed, it can be unmounted (as if with theumount
orpumount
commands), which flushes any pending writes to disk, so that you can remove the drive safely. If the drive is removedwithout doing this, some pending writes will be lost, and the drive can potentially be rendered unreadable or otherwise lose data.
"Safely Remove Drive" and "Eject" are basically equivalent and do two things: It first unmounts the filesystem (as if theumount
command were used),then it issues a SCSI eject command (which is accepted by things like CD-ROM drives, and ignored by almost everything else). It works the same as the command-line commandeject
. Many USB devices seem to respond to the eject command by shutting down or de-registering themselves from the USB host.
For most devices, all of these commands are functionally equivalent. For CD-ROM, DVD, Blu ray, etc. devices, "Eject" additionally physically ejects the media.
- The main differences between Unmount , Eject and Safely Remove Drive
- "Go to the Main Table Form" differences between Axapta 2.x and Dynamics AX 4
- The differences between BLOB and TEXT
- The differences between Direct3D9 And Direct3D10
- The Differences Between Java, C And C++
- The differences between 'alt' and 'title' !
- Differences Between the Import and Load Utility
- the differences between wait and waitpid
- the differences between Crystal and Oscillator
- The differences between implements and extends
- The Differences Between MBR and GPT
- The differences between processes and threads?
- The differences between String, StringBuffer and StringBuilder
- The Differences Between Data, Information and Knowledge
- The differences between scanf() and gets()
- The differences between Define and Inline
- The differences between define and typedef
- the differences between groovy and java
- 【规范代码】关于vector的去重及排序
- Ubuntu系统将TaintDroid刷到Android4.3模拟器中并测试其功能
- Action处理数据成json,供前台使用
- POJ 2942 Knights of the Round Table
- 基于linux的mini2440触摸屏驱动分析(yz版)
- The main differences between Unmount , Eject and Safely Remove Drive
- CentOS 6中yum本地源的配置
- 笔记23--android AsyncTask
- 第九周 项目1--定义一目运算符-和Complex中的<< >>的重载
- GNU Make学习总结(一)
- hdu2222 ac自动机。。。。
- 日媒:阿里巴巴上市融资或超Facebook
- C#复制文件、设置隐藏,只读属性
- sqlserver换版本之后的操蛋事情备忘