• February 26, 2025, 03:13:56 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: RAID-1 and Encrypted Partition  (Read 3316 times)

alvin

  • Level 1 Member
  • *
  • Posts: 5
RAID-1 and Encrypted Partition
« on: August 26, 2009, 10:54:27 AM »

Hello,

This post is a follow up to my previous topic[1].

I have successfully cross-compiled libdevmapper, cryptsetup et al. I have tested these tools by creating a encrypted filesystem in a file (loopback).

Does anyone have any advice on how I should go about creating the encrypted partition (true partition - not a file)? Here is what I am thinking:

Take the drive in slot2 out of the dns-323. Then, partition the drive in slot1 into two: 1GB and ~740GB. The 1GB would be ext2/ext3 (what ever is default on the dns-323) and would contain fun-plug and the cross-compiled cryptsetup (et al.). I would then setup the second partition to be fully encrypted using luksFormat (aes-cdc-essiv:sha256 I think).

Once I have the dns-323 all configured, I would then reinsert the drive (the one I initially took out) into slot2.

At this point I am hoping that the RAID-1 mechanism of the dns-323 will resync the drive in slot1 onto the drive in slot2.

Will the above work? I've read in various places that the resync'ing may not work and in fact could sync the drive in slot2 onto the drive in slot1 (thus loosing all my effort).

The drives I have right now don't have anything on them other then FFP and cryptsetup (et al.). Plus I have a backup of those on my desktop (which I will need when I repartition the slot1 drive into two). So, I'm not worried about messing up the drive contents or loosing the drive contents. I just would rather not loose the contents after I have configured the drives.

Any thoughts or experience with fdisking the drives would be greatly appreciated. If I repartition the drive does the dns-323 web configuration break?

Many thanks,

Alvin

[1] http://forums.dlink.com/index.php?topic=7257.msg43539
Logged

ttmcmurry

  • Level 4 Member
  • ****
  • Posts: 438
Re: RAID-1 and Encrypted Partition
« Reply #1 on: August 26, 2009, 11:39:25 AM »

I hate to be the one to say it... but...

You won't find help on this in this forum.  Look elsewhere.  D-Link will never officially sanction the modification of their product in these forums. 

If encryption is something you really want, I'd buy an older pc and put linux on it and have at it.
Logged

alvin

  • Level 1 Member
  • *
  • Posts: 5
Re: RAID-1 and Encrypted Partition
« Reply #2 on: August 26, 2009, 11:44:17 AM »

Oh, so topics relating to modding the DNS-323 are not allowed here? I didn't know that.

Thanks for the info.

Alvin
Logged