What is the difference between unmount and eject




















If I want the 3 drives to spin down if I'm not using them, should I eject or unmount? Thanks, John F. Reply I have this question too 15 I have this question too Me too 15 Me too. Helpful answers Drop Down menu.

Kessler stated, Eject is for the drive, which can mean slightly different things depending on what type of drive you are ejecting. For removable media DVD, etc. This causes the operating system to release all links to the drive, virtually unplugging it from the system so that you may physically unplug it without any concern that the drive is still in use.

Once this is done, you will have to unplug and reattach the drive to use it again, because the operating system considers it unplugged once you have ejected it. This is not terrible useful for internal drives, since you can't unplug them anyway. Mounting and unmounting refers to the filesystem stored on the drive on one or more partitions. When you unmount a volume, the operating system releases the filesystem and stops using it, but still sees the drive and can access the drive at a lower level.

This is why you can mount a volume that has been unmounted without having to unplug and reconnect the drive. It's important to know that when a volume is unmounted, the drive itself can still be accessed be the right software. Additionally, it should be noted that ejecting a drive will always cause all volumes on that drive to be unmounted first. As for your question about spinning the drives down, checking the "Put the hard disk s to sleep when possible" box in the Energy Saver Preferences Pane will spin them down when they are not in use.

If you have software that keeps the drives awake because it is using them, then this won't work. In most cases, unmounting will solve this, as it will make the files inaccessible and therefore the software will not be able to see them. I do not know if Time Machine will automatically mount the volumes when it needs them, so you might want to check this to make sure it works when a backup occurs.

October 26th, 4. October 26th, 5. Originally Posted by philinux. October 26th, 6. Safely Remove may be something new to Karmic, I've never seen it. It's probably a bug that you're seeing all the options. October 26th, 7. Distro Ubuntu For example if you have a removable hard drive with 2 partitions selecting "Safely Remove Drive" for one of them would unmount both partitions, so that the device can be safely unplugged from your computer.

So it unmounts the media and then ejects it quite important if you happen to have a slot drive without a physical eject button. For some devices even having all three options would make perfect sense. October 27th, 8. On macOS eg. Mojave For example, if I want to execute this from the command line eg. You can at least be certain that diskutil eject does all that diskutil unmount does, plus sometimes more.

Examples given in the man page mention removable media readers equipped with a motor to physically eject a volume, such as a CD-ROM player.

Also, when there are more than one filesystem on the media, diskutil eject will unmount all volumes on the media, while diskutil unmount just unmounts the one filesystem you mention explicitly. You unmount a volume, and eject a drive. For non-removable media, eject and unmount are equivalent. If the media is removable, eject tells the OS the media is to be removed and the OS releases all links to the drive. This question was asked on the apple discussion board and you can review the responses here.

Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.



0コメント

  • 1000 / 1000