{"id":68,"date":"2009-06-23T15:02:29","date_gmt":"2009-06-23T13:02:29","guid":{"rendered":"http:\/\/fabianpiau.com\/?p=68"},"modified":"2018-09-02T02:55:13","modified_gmt":"2018-09-02T01:55:13","slug":"how-to-properly-eject-an-external-hard-drive-with-ubuntu","status":"publish","type":"post","link":"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/","title":{"rendered":"How to properly eject an external hard drive with Ubuntu?"},"content":{"rendered":"<p><a class=\"lang\" href=\"https:\/\/blog.fabianpiau.com\/fr\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/\" title=\"Lire en fran\u00e7ais\"><strong class=\"labellang\"><span class=\"fr\">&nbsp;<\/span>Version fran\u00e7aise disponible<\/strong><\/a><\/p>\n<div class=\"info\"><strong class=\"label\">Note<\/strong><br \/>\nLatest versions of Ubuntu now properly eject hard drives by stopping the disk rotation. So you should not have to follow the steps described in this article.\n<\/div>\n<p>I have two Western Digital external hard drives: a Passport and a My Book model. I don&#8217;t want to do any advertisement here, but the following tip has been adapted to these models.<\/p>\n<p>Thus, you will need to slightly modify the scripts for your own hard drive.<\/p>\n<p>Hard drives are fully recognized by Ubuntu (mounting &#038; unmounting). But, when I unmount one of them, disk is still in activity (spinning). And, when I disconnect my drive, I heard a clicking sound related to an aggressive head parking.<\/p>\n<p>On the long run, these hard shutdowns will ultimately reduce the longevity of the hard disk.<\/p>\n<p>This issue does not appear with Windows XP. In Windows, when using the &#8220;safely remove hardware&#8221;, the disk stops spinning, even though the drive keeps getting electricity from the USB cable, as a light on the drive stays on.<\/p>\n<p>To remedy this problem with Ubuntu, here is the script to unmount and spin-down the hard drive. Please take note that scripts are differents depending on the kind of power supply.<\/p>\n<p><br clear=\"none\" \/><\/p>\n<h4>If your device is powered by an external power adapter<\/h4>\n<p> <strong>(WD My Book model)<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#!\/bin\/bash\r\n\r\nWD=\/dev\/sdc1\r\n# unmount\r\ngksudo &quot;umount $WD&quot;\r\n# spin down\r\ngksudo &quot;hdparm -Y $WD&quot;\r\n# message\r\necho message:Your WD My Book hard drive can be safely removed now. | zenity --notification --listen --window-icon=&quot;info&quot; | zenity --notification --window-icon=&quot;info&quot; --text=&quot;Your WD My Book hard drive can be safely removed now.&quot;\r\n<\/pre>\n<p>&#8220;\/dev\/sdc1&#8221; is the mount point of your drive.<\/p>\n<p>Line 9 is not necessary. It uses the notification system to notify the user he can safely unplug the device.<\/p>\n<div style=\"max-width: 457px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Notification\" src=\"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/post\/00002\/infobulleEn.png?resize=447%2C220&#038;ssl=1\" title=\"Notification\" width=\"447\" height=\"220\" \/><p class=\"wp-caption-text\">Notification<\/p><\/div>\n<p>To help you, the following is the command showing all the assigned mount points. Watch before and after plugging your hard drive. Thus, you will see easily which mount point is used by your device.<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\nsudo fdisk -l\r\n<\/pre>\n<div style=\"max-width: 587px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Fdisk - before plug in\" src=\"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/post\/00002\/fdisk-avant.png?resize=577%2C336&#038;ssl=1\" title=\"Fdisk - before plug in\" width=\"577\" height=\"336\" \/><p class=\"wp-caption-text\">Fdisk - before plug in<\/p><\/div>\n<div style=\"max-width: 587px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Fdisk - after plug in\" src=\"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/post\/00002\/fdisk-apres.png?resize=577%2C362&#038;ssl=1\" title=\"Fdisk - after plug in\" width=\"577\" height=\"362\" \/><p class=\"wp-caption-text\">Fdisk - after plug in<\/p><\/div>\n<p><br clear=\"none\" \/><\/p>\n<h4>If your device is powered by the USB port itself<\/h4>\n<p> <strong>(WD Passport model)<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#!\/bin\/bash\r\n\r\ncd \/sys\/bus\/usb\/devices\r\ngood_usb=$(grep -H Western usb?\/?-?\/manufacturer | cut -d&quot;\/&quot; -f1,2)\r\ncd ${good_usb}\/power\r\ngksudo &quot;sh -c 'echo &quot;suspend&quot; &gt; level'&quot;\r\necho message:Your WD Passport hard drive can be safely removed now. | zenity --notification --listen --window-icon=&quot;info&quot; | zenity --notification --window-icon=&quot;info&quot; --text=&quot;Your WD Passport hard drive can be safely removed now.&quot;\r\n<\/pre>\n<p>I have created one launcher (shortcut) for each script in the gnome panel. That&#8217;s very user-friendly with these icons.<\/p>\n<div style=\"max-width: 457px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Launchers\" src=\"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/post\/00002\/lanceurs.png?resize=447%2C226&#038;ssl=1\" title=\"Launchers\" width=\"447\" height=\"226\" \/><p class=\"wp-caption-text\">Launchers<\/p><\/div>\n<p style=\"text-align: center;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"My Book icon\" src=\"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/post\/00002\/WD-MyBook.png?resize=128%2C128&#038;ssl=1\" title=\"My Book icon\" width=\"128\" height=\"128\" \/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Passport icon\" src=\"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/post\/00002\/WD-Passport.png?resize=128%2C128&#038;ssl=1\" title=\"Passport icon\" width=\"128\" height=\"128\" \/><\/p>\n<p>As a precaution, during the execution, you will be asked for your root password (sudo).<\/p>\n<p><br clear=\"none\" \/><\/p>\n<h4>Last resort Tip<\/h4>\n<p>One last thing, in case the device still seems to be spinning even after the script tells you it&#8217;s safe to unplug. It is really a &#8220;system D&#8221; tip. Sometimes, I continue to use this solution when Windows stubbornly refuses to eject my WD Passport (50% time&#8230;)<\/p>\n<p>Trick is to gradually unplug the hard drive very slowly. You can feel there are two steps: a first one where spinning stops (like at the end of the script), and a second one where hard drive is shutting down.<\/p>","protected":false},"excerpt":{"rendered":"<p>&nbsp;Version fran\u00e7aise disponible Note Latest versions of Ubuntu now properly eject hard drives by stopping the disk rotation. So you should not have to follow the steps described in this article. I have two Western Digital external hard drives: a Passport and a My Book model. I don&#8217;t want to do any advertisement here, but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4252,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[13,21,18,16,19,20],"class_list":["post-68","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-bash","tag-unmount","tag-hard-drive","tag-eject","tag-script","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to properly eject an external hard drive with Ubuntu? | CarmaBlog<\/title>\n<meta name=\"description\" content=\"&nbsp;English version available Remarque Les versions r\u00e9centes d&#039;Ubuntu \u00e9jectent les disques durs proprement en coupant en m\u00eame temps la rotation des\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to properly eject an external hard drive with Ubuntu? | CarmaBlog\" \/>\n<meta property=\"og:description\" content=\"&nbsp;English version available Remarque Les versions r\u00e9centes d&#039;Ubuntu \u00e9jectent les disques durs proprement en coupant en m\u00eame temps la rotation des\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"CarmaBlog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/fabian.piau\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/fabian.piau\" \/>\n<meta property=\"article:published_time\" content=\"2009-06-23T13:02:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-09-02T01:55:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2009\/06\/eject-logo.png?fit=256%2C256&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"256\" \/>\n\t<meta property=\"og:image:height\" content=\"256\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Fabian Piau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fabianpiau\" \/>\n<meta name=\"twitter:site\" content=\"@fabianpiau\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabian Piau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/fr\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/fr\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/\"},\"author\":{\"name\":\"Fabian Piau\",\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/#\\\/schema\\\/person\\\/c5cbffd7cf0b10117877f5dfd1b35f14\"},\"headline\":\"How to properly eject an external hard drive with Ubuntu?\",\"datePublished\":\"2009-06-23T13:02:29+00:00\",\"dateModified\":\"2018-09-02T01:55:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/fr\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/\"},\"wordCount\":1346,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/#\\\/schema\\\/person\\\/c5cbffd7cf0b10117877f5dfd1b35f14\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/fr\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/blog.fabianpiau.com\\\/wp-content\\\/uploads\\\/2009\\\/06\\\/eject-logo.png?fit=256%2C256&ssl=1\",\"keywords\":[\"bash\",\"unmount\",\"hard drive\",\"eject\",\"script\",\"ubuntu\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.fabianpiau.com\\\/fr\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/\",\"url\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/\",\"name\":\"How to properly eject an external hard drive with Ubuntu? | CarmaBlog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/fr\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/blog.fabianpiau.com\\\/wp-content\\\/uploads\\\/2009\\\/06\\\/eject-logo.png?fit=256%2C256&ssl=1\",\"datePublished\":\"2009-06-23T13:02:29+00:00\",\"dateModified\":\"2018-09-02T01:55:13+00:00\",\"description\":\"&nbsp;English version available Remarque Les versions r\u00e9centes d'Ubuntu \u00e9jectent les disques durs proprement en coupant en m\u00eame temps la rotation des\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/\"]]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/blog.fabianpiau.com\\\/wp-content\\\/uploads\\\/2009\\\/06\\\/eject-logo.png?fit=256%2C256&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/blog.fabianpiau.com\\\/wp-content\\\/uploads\\\/2009\\\/06\\\/eject-logo.png?fit=256%2C256&ssl=1\",\"width\":256,\"height\":256,\"caption\":\"Eject disk\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/2009\\\/06\\\/23\\\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Homepage\",\"item\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/category\\\/linux\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Comment \u00e9jecter proprement un disque dur externe sous Ubuntu?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/\",\"name\":\"CarmaBlog\",\"description\":\"Agility, Java programming, New technologies and more...\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/#\\\/schema\\\/person\\\/c5cbffd7cf0b10117877f5dfd1b35f14\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/blog.fabianpiau.com\\\/en\\\/#\\\/schema\\\/person\\\/c5cbffd7cf0b10117877f5dfd1b35f14\",\"name\":\"Fabian Piau\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/blog.fabianpiau.com\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/fabian-pro-small.jpg?fit=567%2C667&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/blog.fabianpiau.com\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/fabian-pro-small.jpg?fit=567%2C667&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/blog.fabianpiau.com\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/fabian-pro-small.jpg?fit=567%2C667&ssl=1\",\"width\":567,\"height\":667,\"caption\":\"Fabian Piau\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/blog.fabianpiau.com\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/fabian-pro-small.jpg?fit=567%2C667&ssl=1\"},\"description\":\"Java developer, Fabian is interested in new technologies and their use within an Agile environment.\",\"sameAs\":[\"https:\\\/\\\/blog.fabianpiau.com\",\"https:\\\/\\\/www.facebook.com\\\/fabian.piau\",\"https:\\\/\\\/www.instagram.com\\\/fabianpiau\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/fabianpiau\\\/\",\"https:\\\/\\\/x.com\\\/fabianpiau\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to properly eject an external hard drive with Ubuntu? | CarmaBlog","description":"&nbsp;English version available Remarque Les versions r\u00e9centes d'Ubuntu \u00e9jectent les disques durs proprement en coupant en m\u00eame temps la rotation des","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How to properly eject an external hard drive with Ubuntu? | CarmaBlog","og_description":"&nbsp;English version available Remarque Les versions r\u00e9centes d'Ubuntu \u00e9jectent les disques durs proprement en coupant en m\u00eame temps la rotation des","og_url":"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/","og_site_name":"CarmaBlog","article_publisher":"https:\/\/www.facebook.com\/fabian.piau","article_author":"https:\/\/www.facebook.com\/fabian.piau","article_published_time":"2009-06-23T13:02:29+00:00","article_modified_time":"2018-09-02T01:55:13+00:00","og_image":[{"width":256,"height":256,"url":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2009\/06\/eject-logo.png?fit=256%2C256&ssl=1","type":"image\/png"}],"author":"Fabian Piau","twitter_card":"summary_large_image","twitter_creator":"@fabianpiau","twitter_site":"@fabianpiau","twitter_misc":{"Written by":"Fabian Piau","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.fabianpiau.com\/fr\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/#article","isPartOf":{"@id":"https:\/\/blog.fabianpiau.com\/fr\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/"},"author":{"name":"Fabian Piau","@id":"https:\/\/blog.fabianpiau.com\/#\/schema\/person\/c5cbffd7cf0b10117877f5dfd1b35f14"},"headline":"How to properly eject an external hard drive with Ubuntu?","datePublished":"2009-06-23T13:02:29+00:00","dateModified":"2018-09-02T01:55:13+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.fabianpiau.com\/fr\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/"},"wordCount":1346,"commentCount":0,"publisher":{"@id":"https:\/\/blog.fabianpiau.com\/#\/schema\/person\/c5cbffd7cf0b10117877f5dfd1b35f14"},"image":{"@id":"https:\/\/blog.fabianpiau.com\/fr\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2009\/06\/eject-logo.png?fit=256%2C256&ssl=1","keywords":["bash","unmount","hard drive","eject","script","ubuntu"],"articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.fabianpiau.com\/fr\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/","url":"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/","name":"How to properly eject an external hard drive with Ubuntu? | CarmaBlog","isPartOf":{"@id":"https:\/\/blog.fabianpiau.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/blog.fabianpiau.com\/fr\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2009\/06\/eject-logo.png?fit=256%2C256&ssl=1","datePublished":"2009-06-23T13:02:29+00:00","dateModified":"2018-09-02T01:55:13+00:00","description":"&nbsp;English version available Remarque Les versions r\u00e9centes d'Ubuntu \u00e9jectent les disques durs proprement en coupant en m\u00eame temps la rotation des","breadcrumb":{"@id":"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/"]]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/#primaryimage","url":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2009\/06\/eject-logo.png?fit=256%2C256&ssl=1","contentUrl":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2009\/06\/eject-logo.png?fit=256%2C256&ssl=1","width":256,"height":256,"caption":"Eject disk"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.fabianpiau.com\/en\/2009\/06\/23\/how-to-properly-eject-an-external-hard-drive-with-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Homepage","item":"https:\/\/blog.fabianpiau.com\/en\/"},{"@type":"ListItem","position":2,"name":"Linux","item":"https:\/\/blog.fabianpiau.com\/en\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Comment \u00e9jecter proprement un disque dur externe sous Ubuntu?"}]},{"@type":"WebSite","@id":"https:\/\/blog.fabianpiau.com\/en\/#website","url":"https:\/\/blog.fabianpiau.com\/en\/","name":"CarmaBlog","description":"Agility, Java programming, New technologies and more...","publisher":{"@id":"https:\/\/blog.fabianpiau.com\/en\/#\/schema\/person\/c5cbffd7cf0b10117877f5dfd1b35f14"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.fabianpiau.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.fabianpiau.com\/en\/#\/schema\/person\/c5cbffd7cf0b10117877f5dfd1b35f14","name":"Fabian Piau","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2022\/08\/fabian-pro-small.jpg?fit=567%2C667&ssl=1","url":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2022\/08\/fabian-pro-small.jpg?fit=567%2C667&ssl=1","contentUrl":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2022\/08\/fabian-pro-small.jpg?fit=567%2C667&ssl=1","width":567,"height":667,"caption":"Fabian Piau"},"logo":{"@id":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2022\/08\/fabian-pro-small.jpg?fit=567%2C667&ssl=1"},"description":"Java developer, Fabian is interested in new technologies and their use within an Agile environment.","sameAs":["https:\/\/blog.fabianpiau.com","https:\/\/www.facebook.com\/fabian.piau","https:\/\/www.instagram.com\/fabianpiau\/","https:\/\/www.linkedin.com\/in\/fabianpiau\/","https:\/\/x.com\/fabianpiau"]}]}},"views":10796,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/blog.fabianpiau.com\/wp-content\/uploads\/2009\/06\/eject-logo.png?fit=256%2C256&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pbSHyl-16","_links":{"self":[{"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":0,"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/media\/4252"}],"wp:attachment":[{"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fabianpiau.com\/en\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}