{"id":5455,"date":"2026-05-06T06:12:52","date_gmt":"2026-05-05T21:12:52","guid":{"rendered":"https:\/\/matoken.org\/blog\/?p=5455"},"modified":"2026-05-06T06:12:53","modified_gmt":"2026-05-05T21:12:53","slug":"enable-hdd-trash-can","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2026\/05\/06\/enable-hdd-trash-can\/","title":{"rendered":"\u5916\u4ed8\u3051HDD\u306e\u30b4\u30df\u7bb1\u3092\u6709\u52b9\u306b\u3059\u308b"},"content":{"rendered":"<div id=\"preamble\">\n<div class=\"sectionbody\">\n<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"m20.37 8.91l-1 1.73l-12.13-7l1-1.73l3.04 1.75l1.36-.37l4.33 2.5l.37 1.37zM6 19V7h5.07L18 11v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2\"\/><\/svg><!-- https:\/\/icon-sets.iconify.design\/?query=trash%20can mdi:trash-can-empty --><\/p>\n<div class=\"paragraph\">\n<p>\u732b\u304c\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u4e0a\u3092\u6b69\u304f\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\uff0e\u3044\u3064\u306e\u9593\u306b\u304bCapsLock\u3068\u304bNumLock\u3068\u304b\u304c\u639b\u304b\u3063\u3066\u3057\u307e\u3063\u305f\u308a\u3057\u307e\u3059\uff0e<br \/>\n\u305d\u306e\u7a0b\u5ea6\u306a\u3089\u3044\u3044\u306e\u3067\u3059\u304c\uff0c\u5148\u65e5\u30d5\u30a1\u30a4\u30e9\u30fc\u304c\u958b\u3044\u305f\u72b6\u614b\u3067Del key \u3092\u62bc\u3055\u308c\u30d5\u30a1\u30a4\u30eb\u304c\u6d88\u3048\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e\u5916\u4ed8HDD \u3067\u30b4\u30df\u7bb1\u3082\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u30b4\u30df\u7bb1\u304b\u3089\u306e\u5fa9\u6d3b\u3082\u3067\u304d\u307e\u305b\u3093\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u5916\u4ed8\u3051HDD\u306e\u30b4\u30df\u7bb1\u3092\u6709\u52b9\u306b\u3057\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"paragraph\">\n<p>freedesktop.org\u306b\u6587\u7ae0\u304c\u3042\u308a\u305d\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"quoteblock quote\">\n<blockquote>\n<div class=\"paragraph\">\n<p>It MAY also choose to provide trashing in the \u201ctop directories\u201d of some or all mounted resources. This trashing is done in two ways, described below as (1) and (2).<br \/>\n(1) An administrator can create an $topdir\/.Trash directory. The permissions on this directories should permit all users who can trash files at all to write in it.; and the \u201csticky bit\u201d in the permissions must be set, if the file system supports it.<br \/>\n     :<br \/>\n(2) If an $topdir\/.Trash directory is absent, an $topdir\/.Trash-$uid directory is to be used as the user\u2019s trash directory for this device\/partition. $uid is the user\u2019s numeric identifier.<br \/>\n     :<\/p>\n<\/div>\n<\/blockquote>\n<div class=\"attribution\">\n&#8212; <a href=\"https:\/\/specifications.freedesktop.org\/trash\/latest\/\">Trash Specification &#8211; Trash Specification v1.0<\/a>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u81ea\u5206\u3057\u304b\u4f7f\u308f\u306a\u3044\u306e\u3067\uff0cHDD\u306eroot\u306b\uff0c<code>.Trash-$uid<\/code> \u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066\u304a\u3051\u3070\u826f\u3055\u305d\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ cd \/run\/media\/matoken\/6f12b6e0-e167-4afc-b30b-ad30c2c9f446 <b class=\"conum\">(1)<\/b>\n$ sudo install -d -m 700 -o \"$(id -u)\" -g \"$(id -g)\" .\/.Trash-\"$(id -u)\" <b class=\"conum\">(2)<\/b>\n$ ls -A | grep .Trash-\n.Trash-1000\n$ id --user\n1000<\/pre>\n<\/div>\n<\/div>\n<div class=\"colist arabic\">\n<ol>\n<li>\n<p>\u5bfe\u8c61\u306eHDD\u306etop dir\u306b\u79fb\u52d5<\/p>\n<\/li>\n<li>\n<p>\u81ea\u5206\u7528\u30b4\u30df\u7bb1\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3053\u306e\u72b6\u614b\u3067\u30d5\u30a1\u30a4\u30e9\u30fc(\u4eca\u56de\u306fPCManFM-Qt)\u3067HDD\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u3068\u30b4\u30df\u7bb1\u306b\u79fb\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e<br \/>\n\u3053\u308c\u3067\u307e\u305f\u732b\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u6d88\u3055\u308c\u3066\u3082\u5fa9\u65e7\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f&#x1f408;&#x1f43e;<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W pcmanfm-qt*\npcmanfm-qt\t2.3.0-1\npcmanfm-qt-l10n\t2.3.0-1\n$ lsb_release -dr\nDescription:\tDebian GNU\/Linux forky\/sid\nRelease:\tn\/a\n$ arch\nx86_64<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u732b\u304c\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u4e0a\u3092\u6b69\u304f\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\uff0e\u3044\u3064\u306e\u9593\u306b\u304bCapsLock\u3068\u304bNumLock\u3068\u304b\u304c\u639b\u304b\u3063\u3066\u3057\u307e\u3063\u305f\u308a\u3057\u307e\u3059\uff0e \u305d\u306e\u7a0b\u5ea6\u306a\u3089\u3044\u3044\u306e\u3067\u3059\u304c\uff0c\u5148\u65e5\u30d5\u30a1\u30a4\u30e9\u30fc\u304c\u958b\u3044\u305f\u72b6\u614b\u3067Del key \u3092\u62bc\u3055\u308c\u30d5\u30a1\u30a4\u30eb\u304c\u6d88\u3048\u3066\u3057 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[7,6,199],"tags":[395],"class_list":["post-5455","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-trash-can"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/5455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=5455"}],"version-history":[{"count":2,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/5455\/revisions"}],"predecessor-version":[{"id":5457,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/5455\/revisions\/5457"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=5455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=5455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=5455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}