{"id":756,"date":"2023-08-25T07:51:01","date_gmt":"2023-08-24T22:51:01","guid":{"rendered":"https:\/\/tatuiyo.xyz\/?p=756"},"modified":"2026-03-26T13:14:14","modified_gmt":"2026-03-26T04:14:14","slug":"lto-5-%e3%81%ae%e6%9a%97%e5%8f%b7%e5%8c%96%e3%82%92%e8%a9%a6%e3%81%99-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/tatuiyo.xyz\/?p=756","title":{"rendered":"LTO-5 \u306e\u6697\u53f7\u5316\u3092\u8a66\u3059 (Ubuntu 22.04, stenc)"},"content":{"rendered":"\n<p>LTO-4 \u4ee5\u964d\u306e\u30c9\u30e9\u30a4\u30d6\u3067\u306f\u3001AES-256\u306e\u30ad\u30fc\u3092\u30c9\u30e9\u30a4\u30d6\u306b\u6e21\u3059\u3053\u3068\u306b\u3088\u308a\u6697\u53f7\u5316\u304c\u53ef\u80fd\u3067\u3059\u3002<br>\u307e\u305f\u3001\u30c7\u30fc\u30bf\u306f\u5727\u7e2e\u3055\u308c\u305f\u5f8c\u306b\u6697\u53f7\u5316\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6697\u53f7\u5316\u3059\u308b\u30bd\u30d5\u30c8\u306f\u4f01\u696d\u304b\u3089\u8272\u3005\u51fa\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3067\u306f stenc \u3068\u547c\u3070\u308c\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/scsitape\/stenc\">https:\/\/github.com\/scsitape\/stenc<\/a><\/p>\n\n\n\n<p>Ubuntu 22.04 \u306e\u74b0\u5883\u3067\u306f\u3001stenc \u306f apt \u304b\u3089\u5165\u308c\u308b\u3068 v1.0.7 \u304c\u5165\u308a\u307e\u3057\u305f\u304c\u3001\u30d0\u30b0\u3067\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br>\u6697\u53f7\u5316\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001Sense Code: Illegal Request (0x05) \u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u65b0\u7248\u306e v2.0.0 \u3092\u4f7f\u3044\u307e\u3057\u305f\u3002<br>Readme\u901a\u308a\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>git clone https:\/\/github.com\/scsitape\/stenc.git\ncd stenc\/\nautoreconf --install\n.\/autogen.sh &amp;&amp; .\/configure  \nmake check     # optionally run the catch testing framework\nmake<\/code><\/pre><\/div>\n\n\n\n<p>\u73fe\u5728\u306e\u72b6\u614b\u3092\u8868\u793a<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo stenc -f \/dev\/nst0\nStatus for \/dev\/nst0 (HP Ultrium 5-SCSI Z6ED)\n--------------------------------------------------\nReading:                         Not decrypting\nWriting:                         Not encrypting\nKey instance counter:            0\nCurrent block status:            Unable to determine\nSupported algorithms:\n1    AES-256-GCM-128\n     Key descriptors allowed, maximum 32 bytes\n     Raw decryption mode allowed, raw read disabled by default<\/code><\/pre><\/div>\n\n\n\n<p>AES-256\u306e\u30ad\u30fc\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u3069\u3046\u3044\u3046\u4ed5\u7d44\u307f\u306a\u306e\u304b\u3088\u304f\u5206\u304b\u3063\u3066\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u3067\u7406\u89e3\u3057\u307e\u3057\u305f\u3002-k \u306e\u5f8c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u81ea\u52d5\u751f\u6210\u3055\u308c\u305f salt \u3092\u5229\u7528\u3057\u3066\u30ad\u30fc\u3092\u751f\u6210\u3057\u3066\u308b\u3093\u3067\u3059\u306d\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u6697\u53f7\u5316\u306e\u5834\u5408\u306b\u306f\u6697\u53f7\u5316\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b salt \u306e\u60c5\u5831\u304c\u6765\u308b\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/qiita.com\/angel_p_57\/items\/bc50c5cfbb0276e07707\">https:\/\/qiita.com\/angel_p_57\/items\/bc50c5cfbb0276e07707<\/a><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ openssl enc -aes-256-cbc -k password -P -md sha1\n*** WARNING : deprecated key derivation used.\nUsing -iter or -pbkdf2 would be better.\nsalt=xxxxx\nkey=xxxxxxxx\niv =xxxxx<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u4e2d\u306e key \u3092\u629c\u304d\u53d6\u3063\u3066\u3001\u4f8b\u3048\u3070 myaes.key \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002 <\/p>\n\n\n\n<p>\u30c9\u30e9\u30a4\u30d6\u306b\u30ad\u30fc\u3092\u6e21\u3057\u3066\u6697\u53f7\u5316\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002&#8211;ckod \u3068\u3059\u308b\u3068\u3001\u30c6\u30fc\u30d7\u3092\u629c\u3044\u305f\u6642\u306b\u30ad\u30fc\u304c\u30a2\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo stenc -f \/dev\/nst0 -e on -k myaes.key -a 1 --ckod<\/code><\/pre><\/div>\n\n\n\n<p>\u72b6\u614b\u3092\u8868\u793a\u3059\u308b\u3068\u3001Encrypting \u3068 Decrypting \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo stenc -f \/dev\/nst0\nStatus for \/dev\/nst0 (HP Ultrium 5-SCSI Z6ED)\n--------------------------------------------------\nReading:                         Decrypting (AES-256-GCM-128)\n                                 Unencrypted blocks not readable\nWriting:                         Encrypting (AES-256-GCM-128)\n                                 Protecting from raw read\nKey instance counter:            1\nCurrent block status:            Unable to determine\nSupported algorithms:\n1    AES-256-GCM-128\n     Key descriptors allowed, maximum 32 bytes\n     Raw decryption mode allowed, raw read disabled by default<\/code><\/pre><\/div>\n\n\n\n<p>\u672c\u4f53\u306e Encrypting \u306e\u3068\u3053\u308d\u304c\u9752\u304f\u5149\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/tatuiyo.xyz\/wp-content\/uploads\/2023\/08\/9554-1024x768.jpg\" alt=\"\" class=\"wp-image-758\" srcset=\"https:\/\/tatuiyo.xyz\/wp-content\/uploads\/2023\/08\/9554-1024x768.jpg 1024w, https:\/\/tatuiyo.xyz\/wp-content\/uploads\/2023\/08\/9554-300x225.jpg 300w, https:\/\/tatuiyo.xyz\/wp-content\/uploads\/2023\/08\/9554-768x576.jpg 768w, https:\/\/tatuiyo.xyz\/wp-content\/uploads\/2023\/08\/9554.jpg 800w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5f8c\u306ftar\u3067\u713c\u304f\u306a\u308aLTFS\u4f5c\u308b\u306a\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6697\u53f7\u5316\u30aa\u30d5<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo stenc -f \/dev\/nst0 -e off<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>LTO-4 \u4ee5\u964d\u306e\u30c9\u30e9\u30a4\u30d6\u3067\u306f\u3001AES-256\u306e\u30ad\u30fc\u3092\u30c9\u30e9\u30a4\u30d6\u306b\u6e21\u3059\u3053\u3068\u306b\u3088\u308a\u6697\u53f7\u5316\u304c\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001\u30c7\u30fc\u30bf\u306f\u5727\u7e2e\u3055\u308c\u305f\u5f8c\u306b\u6697\u53f7\u5316\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002 \u6697\u53f7\u5316\u3059\u308b\u30bd\u30d5\u30c8\u306f\u4f01\u696d\u304b\u3089\u8272\u3005\u51fa\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3067\u306f stenc \u3068\u547c\u3070\u308c\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3057\u305f\u3002 https:\/\/gi&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":758,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,14],"tags":[],"class_list":["post-756","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lto","category-ubuntu"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=\/wp\/v2\/posts\/756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=756"}],"version-history":[{"count":6,"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=\/wp\/v2\/posts\/756\/revisions"}],"predecessor-version":[{"id":1696,"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=\/wp\/v2\/posts\/756\/revisions\/1696"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=\/wp\/v2\/media\/758"}],"wp:attachment":[{"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tatuiyo.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}