我有一个 SSD,另一台笔记本电脑正在从该 SSD 启动(在该笔记本电脑中的其他硬件发生故障之前),
但现在我正在使用它那些小型 SATA 外壳适配器之一
为了通过将其安装为外部 USB 数据驱动器来访问该系统中的数据这系统。
然而,昨天当我安装它时,
我注意到我的 Firefox 奇怪地滞后并且速度慢得像爬行一样......
当我卸载它时,我才发现这是因为外部驱动器,
并发现文件仍在其上使用,
并且通过火狐浏览器出于某种奇怪的原因,
尽管我绝对从未在 Firefox 中打开过其中的任何内容。
所以我唯一的猜测是......
可能存在某种...符号链接/硬链接混淆?
就像,有些文件习惯于由 firefox 打开那
当外部驱动器是我的另一台(现已失效)计算机的内部启动驱动器时,系统会恢复吗?
但老实说我不真的甚至知道什么是“硬链接”是真的,
超越它们存在的事实......
我思考问题开始了后我在驱动器中做了很多find
(grep
嗯, )事情? 但我不确定...ag
而且它分别地我想到或许当我使用海豚文件浏览器的 GUI 安装工具时,它与我的海豚文件浏览器可能试图在“幕后”做的一些“有用”的事情有关吗?
(
但我没有点击在海豚的任何文件上,
我会注意到如果我不小心单击了某个 html 文件,它在 Firefox 中打开,
无论如何,
当它滞后时,我已经尝试确保每个 Firefox 窗口都在新选项卡上并暂停其他所有内容
(使用插件https://addons.mozilla.org/en-US/firefox/addon/tab-discard-suspender/?utm_content=addons-manager-reviews-link&utm_medium=firefox-browser&utm_source=firefox-browser)
)
我想到的最后一个可能相关的事情是:
驱动器是加密的,所以也许它与整个“ luks
”事情有关?
但是我仅仅了解有关磁盘加密的任何信息,“ luks
”或“ mapper
”,
除了他们存在,
所以...是的,我不知道。
最后,当它仍在运行时,我在输出中发现lsof
:
COMMAND PID TID TASKCMD USER FD TYPE DEVICE SIZE/OFF NODE NAME
firefox 28238 5369 IndexedDB user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5381 StreamT~n user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5382 IndexedDB user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5391 WRScene~l user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5392 WRScene~e user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5393 WRRende~k user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5394 WRScene~l user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5395 WRScene~e user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5396 WRRende~k user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5399 IndexedDB user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5575 IndexedDB user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5708 IndexedDB user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 5715 IndexedDB user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28244 pool-spaw user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28245 gmain user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28246 gdbus user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28247 glean.dis user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28249 IPC\x20I/ user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28250 Timer user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28251 Netlink user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28252 Socket user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28253 IPDL\x20B user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28255 HTML5\x20 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28258 JS\x20Wat user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28267 Cache2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28268 Cookie user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28278 TaskCon~l user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28279 TaskCon~l user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28283 Worker user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28292 firefox:r user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28293 firefox:d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28294 GLXVsyncT user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28295 CanvasRen user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28296 Renderer user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28297 WRWorker# user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28298 WRWorker# user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28299 WRWorkerL user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28300 WRWorkerL user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28301 Composito user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28302 ImageIO user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28305 Permissio user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28306 Breakpad user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28307 SandboxRe user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28308 IPC\x20La user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28335 QuotaMana user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28338 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28362 TRR\x20Ba user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28399 GMPThread user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28400 ImageBrid user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28401 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28402 ProcessHa user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28403 WRScene~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28404 WRScene~d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28405 WRRende~c user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28422 AudioIP~v user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28423 AudioIP~a user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28424 AudioIP~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28435 threaded- user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28437 Backgro~P user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28438 ProxyReso user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28444 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28446 WRScene~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28447 WRScene~d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28448 WRRende~c user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28459 WRScene~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28460 WRScene~d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28461 WRRende~c user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28467 WRScene~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28468 WRScene~d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28469 WRRende~c user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28470 WRScene~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28471 WRScene~d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28472 WRRende~c user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28473 WRScene~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28474 WRScene~d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28475 WRRende~c user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28476 WRScene~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28477 WRScene~d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28478 WRRende~c user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28481 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28484 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28530 URL\x20Cl user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28548 mozStorag user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28551 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28559 LS\x20Thr user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28560 mozStorag user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28562 mozStorag user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28649 mozStorag user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28678 DOM\x20Wo user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28703 MemoryPol user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28706 glean.mps user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28834 RemoteLzy user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 28838 DOM\x20Wo user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29093 mozStorag user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29113 mozStorag user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29178 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29276 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29278 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29422 DOMCacheT user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29595 SwComposi user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29596 WRScene~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29597 WRScene~d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29598 WRRende~c user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29599 mozStorag user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29600 mozStorag user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29641 threaded- user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29642 SwComposi user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29643 WRScene~i user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29644 WRScene~d user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29645 WRRende~c user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29688 SwComposi user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29689 WRScene~l user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29690 WRScene~e user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29691 WRRende~k user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29747 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29748 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 29986 FSBroker2 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 30067 FSBroker3 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 30230 WRScene~l user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 30231 WRScene~e user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 30232 WRRende~k user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 30373 FSBroker3 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 31425 FSBroker3 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 31930 FSBroker3 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 32387 FSBroker3 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 32436 FSBroker3 user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
firefox 28238 32457 BgIOThr~o user cwd DIR 254,0 4096 2 /run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc
答案1
这是由于我最初通过在 dolphin 的 GUI 工具中单击加密分区来安装加密分区
(与 firefox 无关)具体来说, 我只是注意到这是因为火狐浏览器。)
修理:
首先,检查您是否已经安装了该软件包cryptsetup
。
但如果你直接尝试:
$sudo cryptsetup open --type luks /dev/sdd2 chosen_name
你只会得到
#=>
Enter passphrase for /dev/sdd2: [<entered>]
Cannot use device /dev/sdd2 which is in use (already mapped or mounted).
如果你检查:
$,ls /dev/mapper
你会看到:
#=>
control luks-5deb0f6a-2f8d-4034-94d1-d7d77f9039d3
所以你需要联合国-首先映射它。
比照这个答案
您可能还必须使用
dmsetup
删除设备映射。
最简单的方法,如果它不干扰任何其他映射是使用一个dmsetup remove_all
.
(我的强调。)
由于我只列出了一个映射,所以我只是尝试了:
$sudo dmsetup remove_all
然后检查:
$ ls /dev/mapper
#=>
control
现在您可以执行以下操作:
sudo cryptsetup open --type luks [<device path>] [<name you choose>]
例如
$ sudo cryptsetup open --type luks /dev/sdd2 chosen_name
#=>
[sudo] password for root: [<entered>]
Enter passphrase for /dev/sdd2: [<entered>]
并检查:
$ ls /dev/mapper
#=>
control chosen_name
(
并将lsblk
其显示为类似以下内容:
[...]
├─sdd2 part crypto_LUKS
│ └─chosen_name crypt ext4
[...]
而不是类似的东西:
[...]
├─sdd2 part crypto_LUKS
│ └─luks-5deb0f6a-2f8d-4034-94d1-d7d77f9039d3 crypt ext4
[...]
)
(
比照这个答案,
尽管手册页说这是“旧语法”:
luksOpen <device> <name> (old syntax)
而新语法是
open --type luks <device> <name>
:)
现在您可以按照mount
通常的方式使用(到任何您想要作为挂载点的空目录),
例如:
mount [<device>] [<mountpoint]
只需将位:换成
[<device>]
:
dev/mapper/[<name you choose>]
例如 :
$$mkdir ~/my_mountpoint
sudo mount /dev/mapper/chosen_name ~/my_mountpoint
(检查类似 $ls ~/my_mountpoint
或其他内容。)
查看其余部分那个答案对于卸载等,
尽管再次,我认为
$sudo cryptsetup luksClose chosen_name
是“旧语法”,
尽管手册页似乎没有提到 luksClose
根本不再...
现在只提到:
CLOSE
close <name>
See cryptsetup-close(8).
但 $man cryptsetup-close
说:
For backward compatibility, there are close command aliases: remove, plainClose, luksClose, loopaesClose, tcryptClose, bitlkClose (all behave exactly the same, device type is determined automatically from the
active device).
所以我思考你还可以这样使用它吗?
...
我刚刚尝试过:
$ sudo umount ~/my_mountpoint
$ sudo cryptsetup luksClose chosen_name
,结果就这样:
#=>
Device chosen_name is not active.
然后我立即能够再次安装它而无需输入密码,
所以我不知道?
老实说,我现在不太关心,所以是的。
我在这里的回答没有解决的开放性问题:
你怎么实际上又“锁容器”?
用 $ 设置的映射器点
sudo cryptsetup open --type luks /dev/sdd2 chosen_name
在重新启动或其他情况下是否仍然存在?
(如果没有,如果你想要的话你怎么做?)
(
因为我还没有做完全地确保我使用的“新语法”:
$sudo cryptsetup open --type luks /dev/sdd2 chosen_name
确实只是“旧语法”的别名:
$sudo cryptsetup luksOpen /dev/sdd2 chosen_name
(尽管您认为它是?)
)当设置了新的映射器“chosen_name”时,
像 dolphin 这样的 GUI 工具会尊重它吗?
(即,单击 dolphin 侧栏中的驱动器会将其安装到正常位置...)
...不,当您单击它时,它仍然要求输入密码
(尽管现在它已解锁,命令行中不再需要密码)
并且它会将其安装到/run/media/user/1c5afe56-1888-48dd-aae4-3cafce30b9cc/
我很确定的样子不是理智。
只是看着全部可用专栏lsblk
的帮助中有,我看到三个提到了我的chosen_name
:
ID-LINK=dm-name-chosen_name
ID=name-chosen_name
PATH=/dev/mapper/chosen_name
|
所以我猜测其中之一(可能是“ PATH
”?)是如果您想将其添加到您的/etc/fstab
?
... 不,不PATH
,让我们试试ID
...
...
好吧,我现在不再关心了。必须磨练man fstab
并跟进fs_spec
等等
。
我现在将通过命令行手动执行此操作。
TODO:填补这个答案中明显的空白,或者找到一个链接到该答案的教程。