Open johannes-pfefferkorn opened 4 years ago
libbde_io_handle_read_volume_header: unsupported volume boot entry point.
indicates you're hitting a format safe guard.
What can help debug the issue is debug output https://github.com/libyal/libbde/wiki/Troubleshooting#verbose-and-debug-output
I'll have a look later when time permits to see what part of the boot entry point is different for your volume.
Thanks for replying, pretty sure all of the .so libraries are installed; would editing libmap.conf be a potential answer?
root@home:/usr/home # pkg -d install libbde DBG(1)[2539]> pkg initialized Updating FreeBSD repository catalogue... DBG(1)[2539]> PkgRepo: verifying update for FreeBSD DBG(1)[2539]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite' DBG(1)[2539]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/meta.conf with opts "i" DBG(1)[2539]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/meta.txz with opts "i" DBG(1)[2539]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/packagesite.txz with opts "i" FreeBSD repository is up to date. All repositories are up to date. DBG(1)[2539]> want to get an advisory lock on a database DBG(1)[2539]> solver: for package: libbde cannot find provide for requirement: libfuse.so.2 DBG(1)[2539]> solver: for package: libbde cannot find provide for requirement: libpython3.7m.so.1.0 DBG(1)[2539]> solver: for package: libbde cannot find provide for requirement: libintl.so.8 DBG(1)[2539]> problem has no requests Checking integrity...DBG(1)[2539]> check integrity for 0 items added done (0 conflicting) The most recent versions of packages are already installed DBG(1)[2539]> release an advisory lock on a database
I was referring to the format debug output libbde provides, see the link https://github.com/libyal/libbde/wiki/Troubleshooting#verbose-and-debug-output
00000000 eb 58 90 2d 46 56 45 2d 46 53 2d 00 02 08 00 00 |.X.-FVE-FS-.....|
So boot entry point: eb 58 90
should be supported:
So I'm wondering what value the library is getting.
Hope this is what you meant: root@home:/usr/home/libbde # gdb --ex r --args bdeinfo -p *** /dev/da0s1 GNU gdb (GDB) 9.2 [GDB v9.2 for FreeBSD] Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd12.1". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.
For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from bdeinfo... Starting program: /usr/local/bin/bdeinfo -p *** /dev/da0s1 bdeinfo 20200816
Unable to open: /dev/da0s1. libcfile_file_read_buffer_with_error_code: unable to read from file with error: Invalid argument libcfile_file_read_buffer: unable to read from file. libbfio_file_read_buffer: unable to read from file: /dev/da0s1. libbfio_file_range_io_handle_read_buffer: unable to read from file IO handle. libbfio_handle_read_buffer: unable to read from handle. libbde_metadata_block_header_read_file_io_handle: unable to read FVE metadata block header data. libbde_metadata_read_block: unable to read metadata block header. libbde_volume_open_read: unable to read primary metadata block. libbde_volume_open_file_io_handle: unable to read from file IO handle. info_handle_open_input: unable to open input volume. [Inferior 1 (process 36124) exited with code 01] (gdb) Quit (gdb) quit
Hope this is what you meant
Not entirely and this looks like a different error
libcfile_file_read_buffer_with_error_code: unable to read from file with error: Invalid argument
What I meant:
./configure --enable-verbose-output --enable-debug-output && make clean && make >/dev/null
. No need to install it./bdetools/bdeinfo -v /dev/da0s1
, you can initially run it without a passwordSorry, followed your instructions and this is what I got:
root@home:/usr/home/libbde # ./bdetools/bdeinfo -v /dev/da0s1
bdeinfo 20200816
libcfile_internal_file_get_size: device media size: 2000396746752
Reading BitLocker volume header:
libbde_io_handle_read_volume_header: reading volume header at offset: 0 (0x00000000)
libbde_io_handle_read_volume_header: volume header data:
00000000: eb 58 90 2d 46 56 45 2d 46 53 2d 00 02 08 00 00 .X.-FVE- FS-.....
00000010: 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 ........ ?.......
00000020: 00 00 00 00 e0 1f 00 00 00 00 00 00 00 00 00 00 ........ ........
00000030: 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000040: 80 00 29 00 00 00 00 4e 4f 20 4e 41 4d 45 20 20 ..)....N O NAME
00000050: 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4 FAT32 3.....
00000060: 7b 8e c1 8e d9 bd 00 7c a0 fb 7d b4 7d 8b f0 ac {......| ..}.}...
00000070: 98 40 74 0c 48 74 0e b4 0e bb 07 00 cd 10 eb ef .@t.Ht.. ........
00000080: a0 fd 7d eb e6 cd 16 cd 19 00 00 00 00 00 00 00 ..}..... ........
00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
000000a0: 3b d6 67 49 29 2e d8 4a 83 99 f6 a3 39 e3 d0 01 ;.gI)..J ....9...
000000b0: 00 00 2c c0 00 00 00 00 00 00 2d c0 00 00 00 00 ..,..... ..-.....
000000c0: 00 00 2e c0 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000100: 0d 0a 52 65 6d 6f 76 65 20 64 69 73 6b 73 20 6f ..Remove disks o
00000110: 72 20 6f 74 68 65 72 20 6d 65 64 69 61 2e ff 0d r other media...
00000120: 0a 44 69 73 6b 20 65 72 72 6f 72 ff 0d 0a 50 72 .Disk er ror...Pr
00000130: 65 73 73 20 61 6e 79 20 6b 65 79 20 74 6f 20 72 ess any key to r
00000140: 65 73 74 61 72 74 0d 0a 00 00 00 00 00 00 00 00 estart.. ........
00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000190: 00 00 00 00 00 00 00 00 78 78 78 78 78 78 78 78 ........ xxxxxxxx
000001a0: 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 xxxxxxxx xxxxxxxx
000001b0: 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 xxxxxxxx xxxxxxxx
000001c0: 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 xxxxxxxx xxxxxxxx
000001d0: 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 xxxxxxxx xxxxxxxx
000001e0: 78 78 78 78 78 78 78 78 ff ff ff ff ff ff ff ff xxxxxxxx ........
000001f0: ff ff ff ff ff ff ff ff ff ff ff 00 1f 2c 55 aa ........ .....,U.
libbde_io_handle_read_volume_header: boot entry point:
00000000: eb 58 90 .X.
libbde_io_handle_read_volume_header: signature : -FVE-FS-
libbde_io_handle_read_volume_header: bytes per sector : 512
libbde_io_handle_read_volume_header: sectors per cluster block : 8
libbde_io_handle_read_volume_header: unknown1
00000000: 00 00 00 00 00 .....
libbde_io_handle_read_volume_header: total number of sectors (16-bit) : 0
libbde_io_handle_read_volume_header: media descriptor : 0xf8
libbde_io_handle_read_volume_header: unknown2 : 0
libbde_io_handle_read_volume_header: sectors per track : 63
libbde_io_handle_read_volume_header: number of heads : 255
libbde_io_handle_read_volume_header: number of hidden sectors : 2048
libbde_io_handle_read_volume_header: total number of sectors (32-bit) : 0
libbde_io_handle_read_volume_header: unknown4:
00000000: e0 1f 00 00 00 00 00 00 00 00 00 00 01 00 06 00 ........ ........
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 80 00 29 ........ ......)
libbde_io_handle_read_volume_header: volume serial number : 0x00000000
libbde_io_handle_read_volume_header: volume label : NO NAME
libbde_io_handle_read_volume_header: file system signature : FAT32
libbde_io_handle_read_volume_header: bootcode
00000000: 33 c9 8e d1 bc f4 7b 8e c1 8e d9 bd 00 7c a0 fb 3.....{. .....|..
00000010: 7d b4 7d 8b f0 ac 98 40 74 0c 48 74 0e b4 0e bb }.}....@ t.Ht....
00000020: 07 00 cd 10 eb ef a0 fd 7d eb e6 cd 16 cd 19 ........ }......
libbde_io_handle_read_volume_header: identifier : 4967d63b-2e29-4ad8-8399-f6a339e3d001
libbde_io_handle_read_volume_header: first metadata offset : 0xc02c0000
libbde_io_handle_read_volume_header: second metadata offset : 0xc02d0000
libbde_io_handle_read_volume_header: third metadata offset : 0xc02e0000
libbde_io_handle_read_volume_header: unknown5:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000030: 00 00 00 00 00 00 00 00 0d 0a 52 65 6d 6f 76 65 ........ ..Remove
00000040: 20 64 69 73 6b 73 20 6f 72 20 6f 74 68 65 72 20 disks o r other
00000050: 6d 65 64 69 61 2e ff 0d 0a 44 69 73 6b 20 65 72 media... .Disk er
00000060: 72 6f 72 ff 0d 0a 50 72 65 73 73 20 61 6e 79 20 ror...Pr ess any
00000070: 6b 65 79 20 74 6f 20 72 65 73 74 61 72 74 0d 0a key to r estart..
00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
000000d0: 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 xxxxxxxx xxxxxxxx
000000e0: 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 xxxxxxxx xxxxxxxx
000000f0: 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 xxxxxxxx xxxxxxxx
00000100: 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 xxxxxxxx xxxxxxxx
00000110: 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 xxxxxxxx xxxxxxxx
00000120: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ........ ........
00000130: ff ff ff 00 1f 2c .....,
libbde_io_handle_read_volume_header: sector signature : 0xaa55
Reading BitLocker primary metadata block:
libbde_metadata_read_block: reading metadata at offset: 3224109056 (0xc02c0000)
Unable to open: /dev/da0s1.
libcfile_file_read_buffer_with_error_code: unable to read from file with error: Invalid argument
libcfile_file_read_buffer: unable to read from file.
libbfio_file_read_buffer: unable to read from file: /dev/da0s1.
libbfio_file_range_io_handle_read_buffer: unable to read from file IO handle.
libbfio_handle_read_buffer: unable to read from handle.
libbde_metadata_block_header_read_file_io_handle: unable to read FVE metadata block header data.
libbde_metadata_read_block: unable to read metadata block header.
libbde_volume_open_read: unable to read primary metadata block.
libbde_volume_open_file_io_handle: unable to read from file IO handle.
info_handle_open_input: unable to open input volume.
Again this error libcfile_file_read_buffer_with_error_code: unable to read from file with error: Invalid argument
might have something to do with libcfile not properly interacting with devices on Freebsd. I'll have a look to see if I can reproduce it. What version of Freebsd are you using?
12.1-RELEASE-p8
Hello having difficulty using bdemount, and I am new to Unix like systems, so if this is due to inability on my part I appologize .If you can help me to gain access to bitlocker It would be greatly appreciated; this is what I get from:
and this is typical of the output I get when trying bdemount:
Thank you for your time