{"id":99,"date":"2012-08-15T22:24:00","date_gmt":"2012-08-15T14:24:00","guid":{"rendered":"http:\/\/xuguang.info\/blog\/2012\/08\/archlinux-safely-remove-usb-device"},"modified":"2014-01-27T23:27:02","modified_gmt":"2014-01-27T15:27:02","slug":"%e5%9c%a8archlinuxgnome3%e7%8e%af%e5%a2%83%e4%b8%8b%e5%ae%89%e5%85%a8%e7%a7%bb%e9%99%a4%e7%a7%bb%e5%8a%a8%e7%a1%ac%e7%9b%98","status":"publish","type":"post","link":"https:\/\/xg1990.com\/blog\/archives\/99","title":{"rendered":"\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8"},"content":{"rendered":"<p>\u521a\u628a\u81ea\u5df1\u7684archlinux\u6539\u88c5\u5230gnome3\uff0c<br \/>\n\u5165\u624b\u79fb\u52a8\u786c\u76d8\u540e\u53d1\u73b0\u70b9\u51fb <code>eject<\/code> \u540e\u786c\u76d8\u6307\u793a\u706f\u6ca1\u6709\u7184\u706d\uff0c<br \/>\n\u786c\u76d8\u8bbe\u5907\u4ecd\u7136\u5b58\u5728\u5728\/dev\/\u4e2d\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u6839\u636e\u7f51\u4e0a\u8d44\u6599\uff0ceject\u76f8\u5f53\u4e8e\u6267\u884c\u4e861\u4e2a\u6b65\u9aa4\uff1a\u6e05\u7a7a\u8bfb\u5199\u7f13\u5b58\u3002\u4ece\u6570\u636e\u89d2\u5ea6\u800c\u8a00\uff0c\u6709\u4e86\u8fd9\u4e2a\u6b65\u9aa4\uff0cUSB\u8bbe\u5907\u4e0a\u7684\u6587\u4ef6\u5c31\u5df2\u7ecf\u5b89\u5168\u4e86\u3002\u6240\u4ee5\u5bf9\u4e8e\u666e\u901aU\u76d8\u6765\u8bf4\uff0c\u5b8c\u6210\u8fd9\u4e2a\u6b65\u9aa4\u5c31\u53ef\u4ee5\u62d4\u4e0bU\u76d8\u4e86\u3002<\/p>\n<p>\u4f46\u5bf9\u4e8e\u79fb\u52a8\u786c\u76d8\uff0c\u5378\u9664\u5206\u533a\u540e\u78c1\u76d8\u8fd8\u5728\u65cb\u8f6c\uff0c\u5982\u679c\u76f4\u63a5\u62d4\u4e0bUSB\u8fde\u63a5\u7ebf\u65ad\u7535\uff0c\u8fd8\u80fd\u542c\u5230\u78c1\u5934\u590d\u4f4d\u7684\u58f0\u97f3\uff0c\u8fd9\u6837\u662f\u5426\u4f1a\u5bf9\u79fb\u52a8\u786c\u76d8\u6709\u4f24\u5bb3\uff1f\u6bd5\u7adf\u79fb\u52a8\u786c\u76d8\u4e5f\u662f\u4e2a\u8106\u5f31\u7684\u4e1c\u897f\uff0c\u5c0f\u5fc3\u4e3a\u597d\u3002\u4ece\u786c\u4ef6\u89d2\u5ea6\uff0c\u9a71\u52a8\u5668\u79fb\u9664\u524d\u5e94\u5f53\u6ee1\u8db3\u7684\u6761\u4ef6\u662f\uff1a<\/p>\n<ol>\n<li>\u6ca1\u6709\u8bfb\u5199\u64cd\u4f5c<\/li>\n<li>\u786c\u4ef6cache\u5df2\u7ecf\u6e05\u7a7a<\/li>\n<li>\u786c\u4ef6\u65cb\u8f6c\u901f\u5ea6\u964d\u4f4e<\/li>\n<li>USB\u63a5\u53e3\u53d8\u4e3asuspend\u6a21\u5f0f<\/li>\n<\/ol>\n<p>\u73b0\u5728\u6709\u4e2a\u7a0b\u5e8f<a href=\"http:\/\/mywaytoarch.tumblr.com\/post\/13111098534\/pmount-safe-removal-of-usb-device\">pmount-safe-removal<\/a>\u80fd\u591f\u5b8c\u6210\u8fd9\u4e2a\u5de5\u4f5c\uff0c\u662farchlinux\/extra\/<code>pmount<\/code>\u66ff\u4ee3\u54c1\uff0c\u5728AUR\u91cc\u7684\u540d\u79f0\u4e3a<code>pmount-safe-removal<\/code>\uff0c\u5b89\u88c5\u5373\u53ef<\/p>\n<p>\u4eca\u540e\u6302\u8f7d\u79fb\u52a8\u786c\u76d8\u65f6\uff0c\u4f7f\u7528\u547d\u4ee4<\/p>\n<div class=\"bogus-wrapper\">\n<figure class=\"code\">\n<div class=\"highlight\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre class=\"line-numbers\"><span class=\"line-number\">1<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><code class=\"bash\"><span class=\"line\">pmount -D \/dev\/sdb\r\n<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/figure>\n<p>&nbsp;<\/p>\n<\/div>\n<p>\u5c31\u884c\u4e86\uff0c\u5982\u679c\u8981\u5378\u8f7d\u79fb\u52a8\u786c\u76d8\uff0c\u4f7f\u7528\u547d\u4ee4<\/p>\n<div class=\"bogus-wrapper\">\n<figure class=\"code\">\n<div class=\"highlight\">\n<table>\n<tbody>\n<tr>\n<td class=\"gutter\">\n<pre class=\"line-numbers\"><span class=\"line-number\">1<\/span><\/pre>\n<\/td>\n<td class=\"code\">\n<pre><code class=\"bash\"><span class=\"line\">pumount -D \/dev\/sdb\r\n<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/figure>\n<p>&nbsp;<\/p>\n<\/div>\n<p>\u5373\u53ef\u5b8c\u6210\u6240\u6709\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8\u7684\u64cd\u4f5c<\/p>\n<p>\u53e6\u5916\uff0c\u63d2\u5165\u79fb\u52a8\u786c\u76d8\u65f6\uff0cgnome3\u4f1a\u81ea\u52a8\u4f7f\u7528<code>udisks2<\/code>\u6302\u8f7d\u79fb\u52a8\u786c\u76d8\uff0c\u65e2\u7136\u6253\u7b97\u81ea\u5df1\u624b\u52a8\u6302\u8f7d\uff0c\u5c31\u8981\u5e9f\u6389gnome3\u81ea\u5e26\u7684\u6302\u8f7d\u6a21\u5757\uff0c\u5177\u4f53\u64cd\u4f5c\u4e3a\u4f7f\u7528gnome3\u7684\u914d\u7f6e\u5de5\u5177<code>dconf-editor<\/code>\uff0c\u627e\u5230\/org\/gnome\/desktop\/media-handling\uff0c\u628a\u6240\u6709\u81ea\u52a8\u6302\u8f7d\u7684\u52fe\u53bb\u6389\u5373\u53ef<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521a\u628a\u81ea\u5df1\u7684archlinux\u6539\u88c5\u5230gnome3\uff0c \u5165\u624b\u79fb\u52a8\u786c\u76d8\u540e\u53d1\u73b0\u70b9\u51fb eject \u540e\u786c\u76d8\u6307\u793a\u706f\u6ca1\u6709\u7184\u706d\uff0c &hellip;&nbsp;<a href=\"https:\/\/xg1990.com\/blog\/archives\/99\" class=\"\" rel=\"bookmark\">\u9605\u8bfb\u66f4\u591a &raquo;<span class=\"screen-reader-text\">\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"categories":[3],"tags":[],"translation":{"provider":"WPGlobus","version":"3.0.1","language":"zh","enabled_languages":["zh","en"],"languages":{"zh":{"title":true,"content":true,"excerpt":false},"en":{"title":false,"content":false,"excerpt":false}}},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.4.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8 - xg1990<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xg1990.com\/blog\/archives\/99\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8 - xg1990\" \/>\n<meta property=\"og:url\" content=\"https:\/\/xg1990.com\/blog\/archives\/99\" \/>\n<meta property=\"og:site_name\" content=\"xg1990\" \/>\n<meta property=\"article:published_time\" content=\"2012-08-15T14:24:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-01-27T15:27:02+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"xg1990\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/xg1990.com\/blog\/#website\",\"url\":\"https:\/\/xg1990.com\/blog\/\",\"name\":\"xg1990\",\"description\":\"\u5730\u7406\u5708\u7684\u7801\u519c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/xg1990.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/xg1990.com\/blog\/archives\/99#webpage\",\"url\":\"https:\/\/xg1990.com\/blog\/archives\/99\",\"name\":\"\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8 - xg1990\",\"isPartOf\":{\"@id\":\"https:\/\/xg1990.com\/blog\/#website\"},\"datePublished\":\"2012-08-15T14:24:00+00:00\",\"dateModified\":\"2014-01-27T15:27:02+00:00\",\"author\":{\"@id\":\"https:\/\/xg1990.com\/blog\/#\/schema\/person\/774c05a86b0a61bb8ff633749c59fa8f\"},\"breadcrumb\":{\"@id\":\"https:\/\/xg1990.com\/blog\/archives\/99#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/xg1990.com\/blog\/archives\/99\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/xg1990.com\/blog\/archives\/99#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/xg1990.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/xg1990.com\/blog\/#\/schema\/person\/774c05a86b0a61bb8ff633749c59fa8f\",\"name\":\"xg1990\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/xg1990.com\/blog\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2d326d725f277a38a498575f23200141?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2d326d725f277a38a498575f23200141?s=96&d=mm&r=g\",\"caption\":\"xg1990\"},\"url\":\"https:\/\/xg1990.com\/blog\/archives\/author\/xg1990\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8 - xg1990","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:\/\/xg1990.com\/blog\/archives\/99","og_locale":"zh_CN","og_type":"article","og_title":"\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8 - xg1990","og_url":"https:\/\/xg1990.com\/blog\/archives\/99","og_site_name":"xg1990","article_published_time":"2012-08-15T14:24:00+00:00","article_modified_time":"2014-01-27T15:27:02+00:00","twitter_misc":{"\u4f5c\u8005":"xg1990"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/xg1990.com\/blog\/#website","url":"https:\/\/xg1990.com\/blog\/","name":"xg1990","description":"\u5730\u7406\u5708\u7684\u7801\u519c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xg1990.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"WebPage","@id":"https:\/\/xg1990.com\/blog\/archives\/99#webpage","url":"https:\/\/xg1990.com\/blog\/archives\/99","name":"\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8 - xg1990","isPartOf":{"@id":"https:\/\/xg1990.com\/blog\/#website"},"datePublished":"2012-08-15T14:24:00+00:00","dateModified":"2014-01-27T15:27:02+00:00","author":{"@id":"https:\/\/xg1990.com\/blog\/#\/schema\/person\/774c05a86b0a61bb8ff633749c59fa8f"},"breadcrumb":{"@id":"https:\/\/xg1990.com\/blog\/archives\/99#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xg1990.com\/blog\/archives\/99"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/xg1990.com\/blog\/archives\/99#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xg1990.com\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728archlinux+gnome3\u73af\u5883\u4e0b\u5b89\u5168\u79fb\u9664\u79fb\u52a8\u786c\u76d8"}]},{"@type":"Person","@id":"https:\/\/xg1990.com\/blog\/#\/schema\/person\/774c05a86b0a61bb8ff633749c59fa8f","name":"xg1990","image":{"@type":"ImageObject","@id":"https:\/\/xg1990.com\/blog\/#personlogo","inLanguage":"zh-CN","url":"https:\/\/secure.gravatar.com\/avatar\/2d326d725f277a38a498575f23200141?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d326d725f277a38a498575f23200141?s=96&d=mm&r=g","caption":"xg1990"},"url":"https:\/\/xg1990.com\/blog\/archives\/author\/xg1990"}]}},"_links":{"self":[{"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/posts\/99"}],"collection":[{"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":2,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xg1990.com\/blog\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}