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 09:19] – niziak | hw:qnap_ts-228 [2023/03/16 13:19] (current) – niziak | ||
---|---|---|---|
Line 65: | Line 65: | ||
</ | </ | ||
- | * / | + | * / |
* / | * / | ||
* / | * / | ||
* '/ | * '/ | ||
* '/ | * '/ | ||
- | * / | + | * / |
* / | * / | ||
Line 169: | Line 169: | ||
Volume is encrypted. It contains standard LUKS header. | Volume is encrypted. It contains standard LUKS header. | ||
Google says encryption password is derived from user supplied password using not know algo. | Google says encryption password is derived from user supplied password using not know algo. | ||
- | It points to NAS local utility | + | It points to NAS local utility: |
<code bash> | <code bash> | ||
Line 175: | Line 175: | ||
Encrypted passwd is: ………………………………….. | Encrypted passwd is: ………………………………….. | ||
</ | </ | ||
+ | |||
+ | Reference: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
==== Try to run x86 QTS in Proxmox VM ==== | ==== Try to run x86 QTS in Proxmox VM ==== | ||
- | qm importdisk 304 F_TS-X85_20170210-1.3.0_512M.img local-lvm --format raw | + | Set VGA to '' |
+ | Import raw image as VM disk: <code bash>qm importdisk 304 F_TS-X85_20170210-1.3.0_512M.img local-lvm --format raw</ | ||
+ | Problem: cannot stop at GRUB, it boots kernel, loads initrd and then stuck. Probably some HW dependencies are not met (emmc disk?). | ||
+ | Switched to simpler solution with Docker (see below). | ||
+ | ==== storage_util docker ==== | ||
+ | Based on files from '' | ||
+ | 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 | ||
+ | </ | ||
- | cryptsetup | + | <code bash> |
- | + | ||
cryptsetup luksOpen / | cryptsetup luksOpen / | ||
+ | mount / | ||
+ | </ | ||
+ | ===== Recovery ===== | ||
+ | |||
+ | <code bash> | ||
apt install testdisk | apt install testdisk | ||
+ | photorec / | ||
+ | </ | ||
- | photorec /dev/md256 | ||
+ | ===== 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 | ||
+ | </ | ||