Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MFT is missing, kinda #615

Open
salty4n6 opened this issue Nov 17, 2023 · 9 comments
Open

MFT is missing, kinda #615

salty4n6 opened this issue Nov 17, 2023 · 9 comments

Comments

@salty4n6
Copy link

I ran into this old issue today. #9

The MFT isn't "visible" but as stated in the other thread, you can copy it out.

I'm running SIFT installed via cast on Ubuntu 22.04 in a VM.

I was attempting to run mftecmd, but discovered this issue.

Any idea what is going on?

~Salty

@salty4n6
Copy link
Author

salty4n6 commented Nov 18, 2023

I did a quick test on a Fedora 39 system and the MFT file is present without needing to copy it off.

Fedora:
ewfmount 20140812
bdemount 20231106

SIFT:
ewfmount 20140814
bdemount 20221031

mount -o ro,loop,show_sys_files,streams_interface=windows was used on both systems to mount the bitlockered E01.

Not sure if that helps, but it seems like we just need to figure out which package has the issue and get it upgraded or downgraded.

~Salty

@digitalsleuth
Copy link

Hi @salty4n6 , thanks for bringing this up. I'll take a look this weekend and see if I can identify why it's not showing up in one, but is in the other. Have you tried testing this already on a non-bitlockered E01 to see if there was still a difference?

@salty4n6
Copy link
Author

Hi @digitalsleuth
I tested a non-encrypted E01 and the MFT file is missing, too.

I'm going to do an update just to make sure that I have all the latest files for SIFT.

~Salty

@digitalsleuth
Copy link

Sounds good. I'm taking a look now and will keep you posted.

@digitalsleuth
Copy link

Hi @salty4n6 , it turns out that this is "expected" behaviour for the ntfs-3g driver in linux. According to their documentation (man mount.ntfs):

show_sys_files
              Show the metafiles in directory listings. Otherwise the default behaviour is to hide the metafiles, which are special files used to store the NTFS structure. Please note that even when this option is specified, "$MFT" may not be visible due  to  a  glibc  bug.
              Furthermore, irrespectively of show_sys_files, all files are accessible by name, for example you can always do "ls -l '$UpCase'".

Now, it could be that your version of Fedora has an updated version of the NTFS-3G driver, or the version of glibc installed doesn't have the same issue as it does on Ubuntu. I'll see if there's a workaround or a fix, but since this was already expected behaviour from the developers, I won't get my hopes up.

Hope this helps!

@mpilking
Copy link

Note that you can still interact with the $MFT without needing to copy it first. Just escape it on the command line. For example:

ls -lh /path/to/mount/\$MFT
md5sum /path/to/mount/\$MFT

@digitalsleuth
Copy link

Absolutely, it just won't be visible in the ls output.

@salty4n6
Copy link
Author

salty4n6 commented Nov 20, 2023

Appreciate you both looking into this.

I did some additional testing this morning and Ubuntu 23.10 with GLIBC 2.38 (which is what Fedora 39 also uses) shows $MFT using ls.

Based on what I've read, it is what it is for Ubuntu 22.04.

Thanks again.
~Salty

@digitalsleuth
Copy link

Well, since we're not far off from a new LTS, chances are this issue will also be resolved in 24.04 and we won't have to worry about it when we support it.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants