import an encrypted partition created under ubuntu

Everything Windows related

import an encrypted partition created under ubuntu

Postby geole » Tue Jun 18, 2024 4:50 am

Good morning
This is feedback
1) The sharenfs functionality is not supported. I had to deactivate it
2) The encryption key was stored in the /root/ZFS.pwd file. I didn't know how to code to say look for it in the C:/ZFS.pwd file
It should probably be said keylocation=file:///Harddisk0Partition4/ZFS.pwd. I got around the problem by saying keylocation=prompt
3) Legacy mounts do not work. I had to do it manually.
But the Microsoft Visual C++ Runtile Librarye reports errors whose severity I cannot measure.
Debug Assertion Failed!
Program c:\Program Files\OpenFS On Windows\fs.exe
File: minkernel\crts\ucrt\src\appport\heaps\debug_heap.cpp
line: 904

expression: _CrtlsValidHeapPointer(block)

For information on how your program can cause an assertion
failure, see the Visual C++ documenttation on asserts
(Press Retry to debug the application)


4) in the end, the pool is allocated to a letter: and I can copy a large directory to it at a rate of around 10MB/s.
AND
Code: Select all
zfs get mountpoint
NAME                                PROPERTY    VALUE                   SOURCE
MesDonneesPersonnelles              mountpoint  /media/ZFS              local
MesDonneesPersonnelles/sports       mountpoint  /media/ZFS/sports       inherited from MesDonneesPersonnelles
MesDonneesPersonnelles/sports/Foot  mountpoint  /media/ZFS/sports/Foot  inherited from MesDonneesPersonnelles
TEST1                               mountpoint  /TEST1                  default
TEST3                               mountpoint  /TEST3                  default

PS C:\> zfs mount -vl MesDonneesPersonnelles

Enter passphrase for 'MesDonneesPersonnelles':
PS C:\> zfs get mounted

NAME                                PROPERTY  VALUE    SOURCE
MesDonneesPersonnelles              mounted   yes      -
MesDonneesPersonnelles/sports       mounted   no       -
MesDonneesPersonnelles/sports/Foot  mounted   no       -
TEST1                               mounted   yes      -
TEST3                               mounted   yes      -
PS C:\> zfs mount -vl MesDonneesPersonnelles/sports


PS C:\> zfs get mounted MesDonneesPersonnelles

NAME                    PROPERTY  VALUE    SOURCE
MesDonneesPersonnelles  mounted   yes      -

PS C:\> zfs get mounted MesDonneesPersonnelles

PS C:\> zfs get mounted

NAME                                PROPERTY  VALUE    SOURCE
MesDonneesPersonnelles              mounted   yes      -
MesDonneesPersonnelles/sports       mounted   yes      -
MesDonneesPersonnelles/sports/Foot  mounted   no       -
TEST1                               mounted   yes      -
TEST3                               mounted   yes      -

PS C:\>
geole
 
Posts: 3
Joined: Sat Jun 15, 2024 8:07 am

Re: import an encrypted partition created under ubuntu

Postby gea » Tue Jun 18, 2024 11:26 am

The ZFS sharenfs/ sharesmb property is only supported on Solaris/ Ilumos directly as a OS/ZFS kernel service. On BSD/ Linux Open-ZFS it requires an NFS/SMB server that cares about. On Windows, NFS is not available per default and SMB sharing has its own settings.

If you want keylocation = file, use something like file:///c:/keys/k1.txt

Pool mount after bootup must be done manually or via planned task.

There are some problems with current rc5,
see https://github.com/openzfsonwindows/openzfs/issues
gea
 
Posts: 24
Joined: Tue Jan 23, 2024 9:56 am

Re: import an encrypted partition created under ubuntu

Postby geole » Thu Jun 20, 2024 9:23 am

Hello
It is good!
geole
 
Posts: 3
Joined: Sat Jun 15, 2024 8:07 am


Return to Windows

Who is online

Users browsing this forum: No registered users and 1 guest

cron