cryptsetup-open.md 1.2 KB

cryptsetup open

์•”ํ˜ธํ™”๋œ ๋ณผ๋ฅจ์˜ ์•”ํ˜ธ ํ•ด๋…๋œ ๋งคํ•‘ ์ƒ์„ฑ. ์ฐธ๊ณ : TRIM์ด ํ™œ์„ฑํ™”๋œ ๊ฒฝ์šฐ, ํ•ด๋ฐฉ๋œ ๋ธ”๋ก ์ •๋ณด์˜ ํ˜•ํƒœ๋กœ ์ตœ์†Œํ•œ์˜ ๋ฐ์ดํ„ฐ ๋ˆ„์ถœ์ด ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์‚ฌ์šฉ ์ค‘์ธ ํŒŒ์ผ ์‹œ์Šคํ…œ์„ ํŒŒ์•…ํ•˜๋Š” ๋ฐ ์ถฉ๋ถ„ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๋ฐ์ดํ„ฐ ์ž์ฒด๋Š” ์—ฌ์ „ํžˆ ์•ˆ์ „ํ•˜๋ฉฐ, TRIM์ด ์—†๋Š” SSD๋Š” ๋” ๋นจ๋ฆฌ ๋งˆ๋ชจ๋˜๋ฏ€๋กœ TRIM์„ ํ™œ์„ฑํ™”ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. ๋” ๋งŽ์€ ์ •๋ณด: https://manned.org/cryptsetup-open.

  • LUKS ๋ณผ๋ฅจ์„ ์—ด๊ณ  /dev/mapper/{{๋งคํ•‘_์ด๋ฆ„}}์— ์•”ํ˜ธ ํ•ด๋…๋œ ๋งคํ•‘ ์ƒ์„ฑ:

cryptsetup open {{/dev/sdXY}} {{๋งคํ•‘_์ด๋ฆ„}}

  • ์•”ํ˜ธ ๋Œ€์‹  ํ‚ค ํŒŒ์ผ ์‚ฌ์šฉ:

cryptsetup open --key-file {{๊ฒฝ๋กœ/๋Œ€์ƒ/ํŒŒ์ผ}} {{/dev/sdXY}} {{๋งคํ•‘_์ด๋ฆ„}}

  • ์žฅ์น˜์—์„œ TRIM ์‚ฌ์šฉ ํ—ˆ์šฉ:

cryptsetup open --allow-discards {{/dev/sdXY}} {{๋งคํ•‘_์ด๋ฆ„}}

  • LUKS ํ—ค๋”์— --allow-discards ์˜ต์…˜ ๊ธฐ๋ก (์žฅ์น˜๋ฅผ ์—ด ๋•Œ๋งˆ๋‹ค ํ•ญ์ƒ ์ด ์˜ต์…˜ ์‚ฌ์šฉ):

cryptsetup open --allow-discards --persistent {{/dev/sdXY}} {{๋งคํ•‘_์ด๋ฆ„}}

  • LUKS ๋ณผ๋ฅจ์„ ์—ด๊ณ  ์•”ํ˜ธ ํ•ด๋…๋œ ๋งคํ•‘์„ ์ฝ๊ธฐ ์ „์šฉ์œผ๋กœ ์„ค์ •:

cryptsetup open --readonly {{/dev/sdXY}} {{๋งคํ•‘_์ด๋ฆ„}}