Hi all,

I have an encrypted file that was made on 4.7. Here are the steps I took.

1. Created around a 22G file zero'd out.

# dd if=/dev/zero of=/path/encrypted_file bs=512 count=109113984

2. Created a salt file.

# dd if=/dev/arandom of=/etc/salt/secure.salt count=1

3. Associated svnd1 with 'encrypted_file' (and entered my password).

# vnconfig -v -c -K 1440 -S /etc/salt/secure.salt svnd1 /path/encrypted_file

4. Partitioned and formatted the virtual device with one 'a' partition.

# fdisk -i svnd1
# disklabel -E svnd1
# newfs /dev/rsvnd1a

However, I'm having trouble opening the 'encrypted_file' on 4.8. Here's the
steps
I'm taking.

1. Associated svnd1 with 'encrypted_file' (and entered my password).

# vnconfig -v -c -K 1440 -S /etc/salt/secure.salt svnd1 /path/encrypted_file



The following is a comparison between 4.7 and 4.8 fdisk svnd1.

<OpenBSD 4.7>
# fdisk svnd1

 Disk: svnd1     geometry: 464230/1/100 [46423072 Sectors]
Offset: 0       Signature: 0xAA55
           Starting         Ending         LBA Info:
#: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused

1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused

2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused

*3: A6      1   0  29 - 464229   0 100 [         128:    46422872 ] OpenBSD

<OpenBSD 4.8>
# fdisk svnd1

           Starting         Ending         LBA Info:
#: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
0: EF 11848640   0  83 - 29058358   0  66 [  1184864082:  1720971784 ] EFI
Sys
1: 9C 32141118   0  39 - 29854738   0  95 [  3214111838:  4066329353 ]
<Unknown ID>
2: 3D 1033132   0  22 - 26888558   0  19 [   103313221:  2585542598 ]
<Unknown ID>
3: AC 39002669   0  86 - 16827162   0   4 [  3900266985:  2077416515 ]
<Unknown ID>

The partitions are un-aligned. And I'm unable to mount the 'a' partition
that
I made in 4.7.

Anyone have any ideas what the problem might be??

Thanks all for your time,
Mike

Reply via email to