如何於不將 Ubuntu 關機的前提下妥善地將目前上線的內接式硬碟拔除/How to Properly Unplug Currently Online Internal Hard Disk Drive Without Shutting Down Ubuntu

本文網址:http://ubuntu-tw.hackpad.com/How-to-Properly-Unplug-Currently-Online-Internal-Hard-Disk-Drive-Without-Shutting-Down-Ubuntu-xIobV0YnBjo

適用情境/Applied Situations

前備條件/Prerequisites

解決方案/Solutions

下命令讓硬碟停止運轉,然後再拔除硬碟

  1. (如果該硬碟內還有已掛載的(mounted)檔案系統的話)將已掛載的檔案系統卸載(unmount)
  1. 下命令讓硬碟機停止運轉(spin-down)(如果是固態硬碟機可直接跳過,因為它不會轉(ry)
  1. 「先」拔除硬碟資料傳輸線「再」拔除電源線

參考資料與銘謝/Reference Data & Credits

  1. winchendonsprings 與 user76204 等人所著作的 spindown - How can I spin down external hard drive? - Ask Ubuntu 
  2. Charles M. Kozierok 所著作之 The PC GuideHead Parking and the Landing Zone 文章
  3. hdparm(8) 的 manpage 格式說明文件
  4. mirabilosAdam Davis 等人所著作的 hotswap - In which order do I plug the SATA power and data cables for hotplug? - Server Fault