WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: encrypted partition tools?  (Read 7137 times)

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
encrypted partition tools?
« on: January 25, 2010, 02:54:52 PM »
i've been wondering about that for a while now;  is there a package for cryptsetup + crypto kernel modules for TCL, and LVM somewhere? i can't seem to be able to find it via appbrowser.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: encrypted partition tools?
« Reply #1 on: January 25, 2010, 03:16:37 PM »
We have loop-aes support in the 2.x series; cryptohome isn't supported anymore, but you can encrypt files and partitions fine.

Util-linux-ng for the user-space tools, and tripl for easier setting up if you don't wish to go manual.
Besides AES, Blowfish, Twofish, and Serpent are available in loop-aes-extra.tcz.
« Last Edit: January 25, 2010, 03:18:17 PM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
Re: encrypted partition tools?
« Reply #2 on: January 25, 2010, 04:55:32 PM »
is it (loop-aes) compatible with existing encrypted partitions created with cryptsetup?

my entire hdd is encrypted, so i'd like to access it somehow from TC :]

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: encrypted partition tools?
« Reply #3 on: January 25, 2010, 05:08:25 PM »
I don't think so. Never used dm-crypt though, don't quote me on that.
The only barriers that can stop you are the ones you create yourself.

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
Re: encrypted partition tools?
« Reply #4 on: January 26, 2010, 02:32:35 AM »
all right then. i guess that means i have to build my own kernel, device-mapper, lvm and cryptsetup.

it's surprising nobody needed these so far.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: encrypted partition tools?
« Reply #5 on: January 26, 2010, 05:50:28 AM »
Actually, only the lvm/dm modules are needed, if you don't want to build it all.
The only barriers that can stop you are the ones you create yourself.

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
Re: encrypted partition tools?
« Reply #6 on: January 26, 2010, 09:37:41 AM »
and crypto ones, too.

i'm already experimenting with replacing the kernel in TC, and it doesn't look too bad. but it throws up a lot of warnings though :]

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
Re: encrypted partition tools?
« Reply #7 on: January 26, 2010, 04:16:04 PM »
sorry for double post.

it turned to be quite lucky - kernel has crypto support and i just had to install mdadm (for dm-* modules), some development packages and get lvm + crypsetup compiled. now i can access my encrypted partitions properly from TC.

i hope somebody will package those two tools, as i'm sure i'm not the only person that could use them. i might try, after i experiment with packaging in TC for a while.\

edit: it seems TC is missing ext4 support. aww crap :D
« Last Edit: January 26, 2010, 04:31:13 PM by yoshi314 »

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: encrypted partition tools?
« Reply #8 on: January 26, 2010, 04:47:51 PM »
Quote
edit: it seems TC is missing ext4 support. aww crap Cheesy
ext4 is supported through the filesystems-2.6.29.1-tinycore extension.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
Re: encrypted partition tools?
« Reply #9 on: January 26, 2010, 05:19:17 PM »
yeah, i found it a few minutes later ;)

i'd better read up on packaging for TC tomorrow.

btw where do we report bugs with packages?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: encrypted partition tools?
« Reply #10 on: January 26, 2010, 06:17:11 PM »
The tce bugs area is best.

Offline catselbow

  • Newbie
  • *
  • Posts: 4
Re: encrypted partition tools?
« Reply #11 on: January 29, 2010, 01:31:48 PM »
I'm very interested in having LVM support in tinycore.  I'm planning to use microcore as a PXE-bootable install/maintenance image.  I've bundled in rsync, etc., but I still need LVM support.  Please post a note on the forum if you create packages, and thanks in advance.

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
Re: encrypted partition tools?
« Reply #12 on: January 29, 2010, 01:49:51 PM »
i did, but it's far from proper. but hey, at least it works (for me, that is) ;-)

http://www.4shared.com/file/210551409/68fde1d6/lvm.html

it's LVM + cryptsetup packaged together (that's what i meant by far from proper). i still have them packaged separately in .tar.gz packs if somebody needs them.

you need to create .md5.txt for it.  i assume this is absolutely required by tce loader.

Code: [Select]
md5sum lvm.tcz >> lvm.tcz.md5.txt
i don't think this needs any special dependencies.
you need mdadm package because of dm* kernel modules it contains.

Offline catselbow

  • Newbie
  • *
  • Posts: 4
Re: encrypted partition tools?
« Reply #13 on: January 29, 2010, 03:17:23 PM »
i did, but it's far from proper. but hey, at least it works (for me, that is) ;-)

http://www.4shared.com/file/210551409/68fde1d6/lvm.html


Beautiful!  This works great!  I've dropped your lvm.tcz into /opt/tce/optional along with:

Code: [Select]
gcc_libs.tcz
mdadm.tcz
md.tcz
openssh.tcz
openssl-0.9.8h.tcz
popt.tcz
rsync.tcz

and their respective md5 files, then created links in /opt/tce, pointing to the tcz files in "optional".  I re-made the image with
Code: [Select]
find | cpio -o -H newc | gzip -2 > ../microcore-rsync.gz
and everything works!  Thanks so much.

Bryan

Offline yoshi314

  • Full Member
  • ***
  • Posts: 135
Re: encrypted partition tools?
« Reply #14 on: January 29, 2010, 03:32:25 PM »
cool. i remember that popt was a build dependency. i didn't expect it to be a runtime dep. or maybe i was thinking about some other package ;)

aaagh, nevermind that :]