Code Monkey home page Code Monkey logo

Comments (4)

Aorimn avatar Aorimn commented on August 30, 2024

Hi @thvasilo

This error is most probably due to an error while giving the drive to dislocker. Are you sure you're giving the encrypted partition to dislocker, and not the disk? What's the exact commandline you're using?

from dislocker.

thvasilo avatar thvasilo commented on August 30, 2024

You are correct, I was trying to mount the whole drive instead of the partition. It works fine now.

from dislocker.

sh3lan93 avatar sh3lan93 commented on August 30, 2024

how to give encrypted partition to dislocker instead of the drive ?

from dislocker.

Aorimn avatar Aorimn commented on August 30, 2024

You can use fdisk on the drive and look for the right partition. Once you get it (or in order to get it), you can use the --offset option of dislocker (multiplying the sector start number by the sector size).

For example, on a disk like the following one, let's say /dev/sda2 is BitLocker-encrypted:

# fdisk -l /dev/sda
Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xe3102a4b

Device     Boot     Start        End   Sectors   Size Id Type
/dev/sda1            2048   52430847  52428800    25G 1c Hidden W95 FAT32 (LBA)
/dev/sda2  *     52430848  638488575 586057728 279.5G  7 HPFS/NTFS/exFAT
/dev/sda3       638488576  639512575   1024000   500M 83 Linux
/dev/sda4       639512576 1465149167 825636592 393.7G  5 Extended
/dev/sda5       639514624 1465147391 825632768 393.7G 83 Linux

Then you can run dislocker in the following way (where 52430848 is the beginning sector number of the /dev/sda2 encrypted partition):

dislocker -V /dev/sda -o $((52430848 * 512)) -- /mnt/dislocker/

from dislocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.