openzfsonwindows / ZFSin

OpenZFS on Windows port
https://openzfsonwindows.org
1.2k stars 68 forks source link

Windows 8.1, Not working at all #278

Closed BullShark closed 4 years ago

BullShark commented 4 years ago

I installed the 0.23 release in Windows 8.1. I rebooted. The drive with zfs is not detected. I tried installing again and rebooting again. Nothing at all changed. See the screenshot.

zfs windoze

lundman commented 4 years ago

Presumably the ZFSin.sys driver doesn't load due to some function(s) that aren't supported by Win8.1 - Wonder what they could be, and if there is a way to get it to tell us which.

BullShark commented 4 years ago

Maybe you could download Windows 8.1 and try it in a VM like Virtual Box or VMWare to see? I originally had Windows 8, and it updated to 8.1.

https://www.microsoft.com/en-us/software-download/windows8ISO

Let me know if you'd like me to submit some Windows logs and which ones.

lundman commented 4 years ago

OK, so this is what I learnt. The install log is apparently C:/Windows/inf/setupapi.dev.log; in that, i get code 37 CM_PROB_FAILED_DRIVER_ENTRY.

Searching on that came up with the suggestion to run Depends.exe to find out what fails to link; It lists; MSRPC.SYS STORPORT.SYS WDFLDR.SYS

Storport surprises me a bit, as I went that route with the recommendation of the nt-dev guys. The other two are unfamiliar to me.

Screen Shot 2020-07-03 at 1057 14 (2)

BullShark commented 4 years ago

Here is my C:/Windows/inf/setupapi.dev.log if it helps. setupapi.dev.log

lundman commented 4 years ago

OK so all three files it complains about, are in Windows/system32/drivers, and if I copy them into the same place as ZFSin.sys, the Depends.exe util comes up with no errors. Wonder I am supposed to set dependencies to them, so they are automatically loaded.

lundman commented 4 years ago

Aha, ok, I built the SYS for Win10 Universal. Let me build one for "Desktop" and Win8

lundman commented 4 years ago

https://openzfsonosx.org/wiki/Windows_builds

lundman commented 4 years ago

heh, no, forgot I stuck Win8 on the name, one sec

lundman commented 4 years ago

Ok updated: http://www.lundman.net/OpenZFSOnWindows-debug-20200703-Win8x64.exe

BullShark commented 4 years ago

It's not fixed for me. I have dependency walker. I am getting the same error about missing files. I am using the one from your link to install.

image

BullShark commented 4 years ago

OK so all three files it complains about, are in Windows/system32/drivers, and if I copy them into the same place as ZFSin.sys, the Depends.exe util comes up with no errors. Wonder I am supposed to set dependencies to them, so they are automatically loaded.

I did this. I copied the files.

image

Then I did a reboot.

I am still receiving this message.

$ zpool status
Unable to open \\.\ZFS: No such file or directory.
Verify the ZFS module stack is loaded by running '/insert windows magic here/' as root.
The /dev/zfs device is missing and must be created.
Try running 'udevadm trigger' as root to create it.

My drive is a usb hard drive. It is this one.

https://www.newegg.com/black-seagate-expansion-4tb/p/N82E16822184784?item=N82E16822184784

lundman commented 4 years ago

Indefinitely had it loading over debugger, but maybe I stuffed something up during packaging - I'll try the installer myself to make sure

lundman commented 4 years ago

I tried Win8 install from yesterday, and it didn't work. So I tried today's Win7 install, and then it worked. So either the recompile today helped, or that I installed it twice? Odd.

BullShark commented 4 years ago

No error from "zpool status", but the pool is not found from the command.

The drive with an encrypted zfs pool and dataset I created in Linux is not showing in Windows Explorer. No drive letter for the drive with ZFS (example C: )

The Partition Manager sees the drive and pool.

image

BullShark commented 4 years ago

image

BullShark commented 4 years ago

Read Only???? That's not good!

image

BullShark commented 4 years ago

image

BullShark commented 4 years ago

Is this a different issue? It did not prompt me for the encryption password either.

image

BullShark commented 4 years ago

Error.

image

BullShark commented 4 years ago

Reproduce the bug:

  1. Download Manjaro with KDE from here.

https://manjaro.org/download/#kde-plasma

  1. Run in Virtual Box or USB Drive with Rufus.

https://rufus.ie/

  1. Open Konsole and

sudo passwd root sudo su - pacman -S zfs-dkms zfs-utils modprobe zfs zpool create -O encryption=on -O keyformat=passphrase -O keylocation=prompt -f storage /dev/sde

Change /dev/sde to your drive for ZFS testing. Check with fdisk -l

image

  1. Now try using the drive in Windows 8.1.
BullShark commented 4 years ago

image

lundman commented 4 years ago

The readonly was because objquota and projectquota was enabled, two features that ZFSin do not yet understand, create a pool without those features. Use zpool import -l to have it ask for passwd on import. Give up on driveletter for now, there is an issue for it, as it doesnt work for the pool.

Aerol commented 4 years ago

Give up on driveletter for now, there is an issue for it, as it doesnt work for the pool.

How does one use the zfs pool in Explorer without assigning a drive letter?

lundman commented 4 years ago

It gives you the first available driveletter (instead of a specific one). You can run zfs mount to see what was assign. You often need to push F5 in Explorer to fresh it to show.

BullShark commented 4 years ago

The readonly was because objquota and projectquota was enabled, two features that ZFSin do not yet understand, create a pool without those features.

Would this be correct for creating a pool and dataset with encryption, prevent disk writing when reading if atime <= 24 hours, enable compression, and those 2 features disabled in the pool?

zpool create -O encryption=on -O keyformat=passphrase -O keylocation=prompt -O compression=on -O relatime=off -o feature@userobj_accounting=disabled -o feature@project_quota=disabled -f storage /dev/sde
lundman commented 4 years ago

I believe you have to use zpool create -d where -d disables everything, then you can turn the features you want back on again. It's a bit of a pain, but fixes for that is suppose to come from upstream.

BullShark commented 4 years ago

Filesystem features can be turned on and off after creation. Pool features cannot be toggled on and off after creation. So far, everything is good using my command.