HoTo mount encrypt USB disc ?

harvey186
 
Posts: 18
Joined: Wed Dec 28, 2016 4:12 pm

HoTo mount encrypt USB disc ?

Sun Dec 17, 2017 11:47 am

Hi, I want attach my encrypt (with lvm) USB HD to my VO2. I have tried the howro from here https://wiki.openwrt.org/doc/howto/disk.encryption, but I stuck in first step:
# opkg install kmod-crypto-xts kmod-crypto-iv kmod-crypto-misc kmod-crypto-user cryptsetup
Unknown package 'kmod-crypto-xts'.
Unknown package 'kmod-crypto-iv'.
Unknown package 'kmod-crypto-misc'.
Unknown package 'kmod-crypto-user'.
Unknown package 'cryptsetup'.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-crypto-xts.
* opkg_install_cmd: Cannot install package kmod-crypto-iv.
* opkg_install_cmd: Cannot install package kmod-crypto-misc.
* opkg_install_cmd: Cannot install package kmod-crypto-user.
* opkg_install_cmd: Cannot install package cryptsetup.

Where can I find the needed packages ???

avigeilpro
 
Posts: 25
Joined: Wed Mar 22, 2017 5:29 pm

Re: HoTo mount encrypt USB disc ?

Sun Dec 17, 2017 12:57 pm

you have to do 'opkg update' first

harvey186
 
Posts: 18
Joined: Wed Dec 28, 2016 4:12 pm

Re: HoTo mount encrypt USB disc ?

Mon Dec 25, 2017 2:35 pm

avigeilpro wrote:you have to do 'opkg update' first


Sure, I know. I'm doing this always before installing any software ;) It seems, that's an Kernel issue :(
Code: Select all
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for cryptsetup:
 *    kernel (= 3.18.23-1-245faaffbc60cabe96a158cae13c1cc3) *

harvey186
 
Posts: 18
Joined: Wed Dec 28, 2016 4:12 pm

Re: HoTo mount encrypt USB disc ?

Mon Dec 25, 2017 4:19 pm

OK, I'm a little further. I have installed the kmos with --force depents.
When I try to mount the encryot hd with
root@TOR:~# modprobe dm-mod
failed to find a module named dm-mod
Code: Select all
cryptsetup luksOpen /dev/sda2 usbstorage_luks && mount /dev/mapper/usbstorage_luks /mnt/sda

I get the error message:
Code: Select all
Cannot initialize device-mapper. Is dm_mod kernel module loaded?


Code: Select all
modprobe dm-mod
failed to find a module named dm-mod


How can I install dm-mod ?? Any Idea ??

camphor76-22-2
 
Posts: 1
Joined: Wed Feb 14, 2018 11:49 pm

Re: HoTo mount encrypt USB disc ?

Wed Feb 14, 2018 11:50 pm

Compile your own firmware, source is available on the devs blog, along with a tutorial. You need to enable the kmod at compile time

Return to VoCore2

Who is online

Users browsing this forum: No registered users and 5 guests