meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| hw:qnap_ts-228 [2023/02/21 18:06] – niziak | hw:qnap_ts-228 [2023/03/16 13:19] (current) – niziak | ||
|---|---|---|---|
| Line 193: | Line 193: | ||
| And it works. Generated password opens LUKS storage. | And it works. Generated password opens LUKS storage. | ||
| + | |||
| + | ==== mkpasswd ==== | ||
| + | |||
| + | After making Docker image, I found post on QNAP forum that the password can be generated using simple MD5 hash: | ||
| + | <code bash> | ||
| + | mkpasswd -m md5 -S YCCaQNAP | ||
| + | </ | ||
| <code bash> | <code bash> | ||
| cryptsetup luksOpen / | cryptsetup luksOpen / | ||
| + | mount / | ||
| </ | </ | ||
| Line 208: | Line 216: | ||
| + | ===== unmount and shutdown ===== | ||
| + | <code bash> | ||
| + | umount / | ||
| + | cryptsetup luksClose nas | ||
| + | dmsetup remove vg1-lv544 | ||
| + | dmsetup remove vg1-lv1 | ||
| + | mdadm --stop /dev/md1 | ||
| + | |||
| + | mdadm --stop /dev/md256 | ||
| + | mdadm --stop /dev/md9 | ||
| + | mdadm --stop /dev/md322 | ||
| + | mdadm --stop /dev/md13 | ||
| + | </ | ||