-
Notifications
You must be signed in to change notification settings - Fork 13
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
LUKS device opened successfully but failed to mount | Suggestions for usage instructions on windows #2
Comments
Hi @dosssman! Thanks for reaching out. Please try running As for the failure connecting to the SMB share, it seems like Windows is complaining because some of the SMB security features were disabled. It was done intentionally as Linsk is never exposed to anything but the host machine itself. Unfortunately they don't tell you exactly what is missing, so you have multiple options to try: https://answers.microsoft.com/en-us/windows/forum/all/you-do-not-have-permission-to-access-pcname/704f39f0-a03e-4f1c-bead-a45df97e455d. |
I added a double-mount warning here: 9ccd820. As for the |
Thanks for the prompt answer. Regarding the filesystem, I have tried to mount it manually inside the VM (--vm-debug as well as linsk shell), but I get the same superblock error. Ran From there, I unlocked the device manually, and check the type with /dev/mapper/cryptmnt: UUID=<xxxxxxx> BLOCK_SIZE="4096" TYPE="ext4" but manually mounting with Doing the same on my native linux system works without problem though.
I feel the pain. The path is |
You need to add
Can you please check and confirm to be 100% sure? I can clearly remember |
As of |
That's weird, but thanks for confirming. I'll check on my end. |
Same error even with |
Try running
Since Alpine Linux is a very lightweight Linux distribution, it could be it doesn't have built-in file system auto-correction features. Also, you are right, it's just |
Also made FS checks with parted /dev/sdc1 # Fresh ext4 partition
align-check opt 1 # because sdc1
# Output: aligned Maybe I should try to build the whole project instead ? Will there be any significant difference compared to the pre-build binaries ? |
No, there won't be any difference. This is weird. Please try mounting in the shell, and after you run into the same "read superblock" error, do |
I will give it a rest for today. Just for later reference, but how do you usually create the ext4 partition on your side ? |
This appears to be an issue with with QEMU block device passthrough. Reads seem to be okay, but not writes. Not an Please try building and running off Link: https://github.com/AlexSSD7/linsk/tree/qemu-debug I might suspect that it could be some sort of antivirus blocking write access to raw drives. |
Cloned the repo, checked out into qemu-debug branch, ran Also, I have no antivirus running, not even Windows Defender. Is it maybe because I put the PhysicalDrive3 as "Offline" in diskmgmt.exe ? Thank you for your time. |
Do you see additional warnings when the new version is run? And yes, I suggest bringing it online, now that you don’t have an NTFS partition to be mounted.
…On Wed, Sep 6, 2023 at 14:13, Rousslan F.J. Dossa ***@***.***(mailto:On Wed, Sep 6, 2023 at 14:13, Rousslan F.J. Dossa <<a href=)> wrote:
> Please try building and running off qemu-debug branch with --vm-debug flag. I implemented direct QEMU log passthrough, so you will see if there are any warnings emitted by QEMU in the terminal.
Cloned the repo, checked out into qemu-debug branch, ran go build and copied the resulting linsk.exe into C:\Users\%USERNAME%\go\bin so that it is detected, run linsk with --vm-debug and attempt to manually mount it, but the exact same error message is shown.
Also, I have no antivirus running, not even Windows Defender.
Is it maybe because I put the PhysicalDrive3 as "Offline" in diskmgmt.exe ?
It is the only thing that does not make linsk say "configure vm cmd block device passthrough: device \\.\PhysicalDrive3' seems to be already mounted in the host system".
I am curious on how you "unmount" the drive so that it is not used by Windows.
Thank you for your time.
—
Reply to this email directly, [view it on GitHub](#2 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AKIMUEFAUH6J5F3CTN7JPDDXZBZJJANCNFSM6AAAAAA4NFVCBA).
You are receiving this because you commented.Message ID: ***@***.***>
|
Got it. It was because it was put "Offline".
Thansk a lot for the assistance. |
You're most welcome! I think it's a good idea to add a note somewhere that drives should be online. |
Sounds good. Do you have any recommendation on how to setup the share as something more permanent ? |
This is something that needs to be implemented. You are welcome to open a feature-request-style issue here. |
Hello there.
Thanks a lot for making this tool and publishing it.
I have been looking for this kind of features for a while now, the WSL based alternative I found was not really cutting it.
Failing to mount LUKS device
Thought I would give it a try, but I stumbled upon this error I could not solve, so I was wondering if you had any idea on what might be the cause.
Following INSTALL_WINDOWS.md:
Following USAGE_WINDOWS.md, and running commands in
cmd.exe
started as administrator.linsk build
\\.\PhysicalDrive3
linsk ls
returns:For reference, I can mount that partition on a native linux machine with:
I tried to mount the
ntfs
devicevdb1
instead.While the mounting did succeed, I could not access the network share.
After entering the address into Windows Epxloror, it prompts for the username (linsk) and password (randomly generated one), but even after entering those two as per instructions, it shows:
I am not that familiar with Network Shares, so maybe I am doing it completely wrong.
Would appreciate any feedack or additional instructions on how to do this.
Suggestion for INSTALL_WINDOWS
After installing
qemu
using the link provided, the install path ofqemu-img
had to be added to thePATH
environment variable of Windows, otherwise, runninglinsk build
would throw an error along the line ofcould not find 'qemu-img' in %PATH%
.It might be worth mentioning to make the downstream usage experience smoother.
Suggestion for USAGE_WINDOWS
Around here, after identifying the disk of interest, it might be worth adding a note for the user to make sure that drive is not mounted by Windows.
One way to do it is to startdiskmgmt
, select the corresponding drive, and putting it "Offline".There might be an equivalentwmic
command, but not much time to look it up sorry.Others
Not sure if those features are already there, or on the roadmap, but here are some things I thought would be a nice addition while trying to get it running.
vdb2
partition available all the time at a fixed location. Having to log in every time with different credential is not really convenient for this use case.)Thanks a lot for your time.
Best regards.
The text was updated successfully, but these errors were encountered: