Open Chewbakka-Wakka opened 1 year ago
Yeah having some way of doing this a bit easier would be nice.
Does \Device\Harddisk0\Partition4 actually work?
I don't know where I found it but this is what I use when I have a raw partition without a drive letter zpool.exe create -f tank Harddisk0Partition4
That PowerShell snippet looks useful so I'll be taking that :)
Also I should point out that the repo for the build you are running is https://github.com/openzfsonwindows/openzfs/
Passing the full device path does not work it would appear. You can pass \?\G: as seen above and the pool is fully functional.
zpool create -f -O casesensitivity=insensitive -O compression=zstd -O atime=off -O dedup=on -O recordsize=512k data \Device\Harddisk0\Partition4 cannot open 'C:\Device\Harddisk0\Partition4': No such file or directory
Yes that way by using only Harddisk0Partition4 also works, yet flags the same error:
zpool create -f -O casesensitivity=insensitive -O compression=zstd -O atime=off -O dedup=on -O recordsize=512k -O sync=disabled data Harddisk0Partition4
Expanded path to '\?\Harddisk0Partition4' working on dev '\?\Harddisk0Partition4' setting path here '/dev/Harddisk0Partition4' setting physpath here '\?\Harddisk0Partition4' cannot open '/dev/Harddisk0Partition4': No such file or directory
I will raise another issue after more experiments on https://github.com/openzfsonwindows/openzfs/ for the duplicate drive letters if it is. I have found it is possible to have 2 D:\ drives...
It would be good to add onto the existing readme file how to do this correctly by identification of full partition path, but as it stands the drive on the separate partition must be mounted in order to create the pool. Otherwise it will not work but this seems a bit clumsy having 2 drive letters for 1 partition as shown here.