pi-safe icon indicating copy to clipboard operation
pi-safe copied to clipboard

Any way to use it on Windows (or WSL)?

Open jeffrey734 opened this issue 3 years ago • 6 comments

Hi, first thanks a lot for your work on that awsome tool.

I have a lot of things in mind and suggestions, but I will first start with my main point. I tried someway to use Pisafe, but having my pc on windows I have to boot a live linux each time wich makes the process quite slow. I tried to use it on WSL, it runs, but it can't detect my micro sd card. I also tried on a virtual machine, but there again I can't make it see my micro sd card.

On WSL I can see my card sd card on /mnt with also all my other drives. I thought it could be a simple path to add when the tool search to list the drives. I hope it could be easy, I guess WSL could be the easiest way to use it on windows for now as it's all bash.

Thanks

jeffrey734 avatar Apr 21 '22 19:04 jeffrey734

Hello Jeffry,

I have used PiSafe with virtualbox on windows very successful. I fired up WSL but I didn't get PiSafe running on it yet. I don't remember the exact errors, but it seamed like it was missing a lot of basic Linux functions.

RichardMidnight avatar Apr 21 '22 21:04 RichardMidnight

Hello Jeffry, OK, I got WSL running on a clean Windows 10. PiSafe installed OK (PIGZ does not install, but that is OK). It seams that WSL does not list usb disks the same a a native linux installation does. For example the "lsblk" command does not show usb devices. I see some articles of people working on fixes, but they seem to be still in development. If I find a fix, I will post it here. If you find a way to connect a USB drive to WSL and have it show up with the "lsblk" command, let me know. "usbipd-win project" looks promising, but only works with windows 11.

Richard

RichardMidnight avatar Apr 24 '22 22:04 RichardMidnight

Ok good thanks. Maybe your first try was on WSL 1 , I saw that WSL 2 was supposed to make things more like real linux system, but I'm nos a pro on that. I'm actually on Windows 11. I will try to look to your suggestion when I have free time and will let you know.

Thanks

jeffrey734 avatar Apr 25 '22 16:04 jeffrey734

OK, I got WSL 2 running on Windows 11. I needed some update patch, but that was mentioned in the install error, and it worked OK. Now I see that WSL 2 does not support USB devices. This is the root of the problem. The best resource I found is: https://docs.microsoft.com/en-us/windows/wsl/connect-usb. I did not get this to work. It seems to be a work-in-progress. At then end of the day, PiSafe is expecting the usb drive to be listed when you type in "lsblk".

RichardMidnight avatar Apr 25 '22 20:04 RichardMidnight

Hi, thanks for your effort you're fast. I see what you mean. I did some research too and probably found the same post you found that redirected me on the same projet on the Microsoft blog. I guess the good news there is that seems to be an official project and the team seems to be active.

I tried the install and successfully got my SD on my lsusb list using a usb adapter, but not with my SD card port. But it seems that it can't mount it yet as it doesn't appear using lsblk.

I guess we'll have to let them work a bit more and come back here later. I'll keep an eye on it on my free time and go on my next suggestion.

jeffrey734 avatar May 04 '22 20:05 jeffrey734

I see some progress on usb support for wsl, but still not working for pisafe. Following the links below, I got "lsusb" to show the usb stick, but "lsblk" still does not.
For simplicity, I am running windows 11 (updated), wsl 2, and Ubuntu.

https://learn.microsoft.com/en-us/windows/wsl/install https://learn.microsoft.com/en-us/windows/wsl/connect-usb

RichardMidnight avatar Mar 28 '23 14:03 RichardMidnight