Windows 10 isn't seeing DietPi...

Having issues with your DietPi installation or found a bug? Post it here.
Nohippychicks
Posts: 23
Joined: Fri May 04, 2018 3:15 am

Re: Windows 10 isn't seeing DietPi...

Post by Nohippychicks »

I didn't know those apps existed.

I installed Astro File Manager for Android and tried to gain access to the Pi and no joy there either. I get an "Access denied," with that, even after double checking my password.

We lost power the other day and my Pi was corrupted. I'm now working with a shiny new install, and when I map the network drive (I don't actually yet have the drive hooked up, I'm just trying to log in anywhere before moving on) the error I now get is "Access denied," with my Windows box, which seems like a step forward.

I can also see the Pi in the map network drive window, when I enter it's IP and click on "Browse." Beneath is is listed "Diet Pi," so there is progress being made, as that was not the case before; there was nothing there when I tried this before.

I double checked the password I'm using by logging in as Root locally to the Pi and logging in via SSH.

Should I have needed to turn on SMB1 package in Windows to get this far? I think I missed what version of SMB DietPi uses.

Back when I had DietPi working a few years ago, I never played around with SMB1 settings to get things working, but I also know at some point MS shut it down with an update.
User avatar
Joulinar
Posts: 5096
Joined: Sat Nov 16, 2019 12:49 am

Re: Windows 10 isn't seeing DietPi...

Post by Joulinar »

The user to login is user dietpi and not user root
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Nohippychicks
Posts: 23
Joined: Fri May 04, 2018 3:15 am

Re: Windows 10 isn't seeing DietPi...

Post by Nohippychicks »

Well, I feel pretty silly about that. She works now.

Be that as it may, I got different results before I re-flashed the image yesterday after the blackout. Before that, even though I may have been using the wrong username, I was getting errors not related to that. The errors were not "Access denied," so I'm confident that, while the username was wrong, it wasn't the problem. It happened with different OSs' too.

Would that have been because SMB1 was off on my Windows laptop? Do I NEED SMB1 to be turned on? I'm about to go start playing around with this to see for myself, but I'll likely get faster answers here. A few weeks ago, I turned SMB1 back on and didn't have the progress I made tonight, so I believe there was some issue that I've solved that I don't even know about.

This situation also happened with various OS I used on my Pi, including Raspbian, RPIOS and Debian.

Is it common for images to be corrupted as they flash and maybe I was having that issue in the recent past?

After a fresh flash of an OS (DietPi or otherwise), is there a way I can verify the integrity of the image to be sure that every aspect of the OS is working properly?

Am in the right forum to be asking what kinda seem to be general Linux questions?

Thank you for all of your time that you've invested in this.
User avatar
Joulinar
Posts: 5096
Joined: Sat Nov 16, 2019 12:49 am

Re: Windows 10 isn't seeing DietPi...

Post by Joulinar »

usually there is no need to enable SMB1 on Windows as the SAMBA version installed supports v2 and 3.

Yes SD cards have a risk for data corruption and physical damage. This depends on the usage and how many data are written down. The more you writing down (like using a download client), the more risk you have. Better to use a SSD, if you operate something like NextCloud or a torrent client. In your case, you like to use it as NAS. Probably you should rethink the usage of SD card. But yeah it depends on your device if it supports mass storage boot. Personally I use a small USB stick, instead of SD card, on my RPi3B+ and 4B.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Nohippychicks
Posts: 23
Joined: Fri May 04, 2018 3:15 am

Re: Windows 10 isn't seeing DietPi...

Post by Nohippychicks »

I just disabled SMB1 again and now can no longer access the Pi; should I start another thread to deal with that or keep on going here?

The error is now: "The local device name is already in use. This connection has not been restored."

Mapping the network drive is the same result I started this thread with, it'll ask for my password twice, then say that the path cannot be found.

I did a little playing around and, consistently, with SMB1 turned off I'm unable to see the Pi from Windows.

Through some experimenting I wound up partially enabling SMB1 by just enabling the client support and we're golden again, but I don't know if that still leaves the network vulnerabilities that SMB1 enables.
User avatar
Joulinar
Posts: 5096
Joined: Sat Nov 16, 2019 12:49 am

Re: Windows 10 isn't seeing DietPi...

Post by Joulinar »

what does net use shows to you?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Nohippychicks
Posts: 23
Joined: Fri May 04, 2018 3:15 am

Re: Windows 10 isn't seeing DietPi...

Post by Nohippychicks »

With SMB 1.0/CIFS Client enabled, I get a successful command and the Pi shows up along with the IP address.

With SMB 1 disabled (This is the ideal situation for security, correct?) I get "System error 1222 has occurred. The network is not present or not started," right back to where I was at the start of the thread.

I can't remember if I mentioned but I've tried turning on and off SMB1 for weeks before starting this thread with several different variations of Linux, including Diet Pi, Raspbian, RPI OS and Ubuntu as well as some others I can't quite remember. After the fresh install of DietPi the other day, things changed and I don't really know why.
User avatar
Joulinar
Posts: 5096
Joined: Sat Nov 16, 2019 12:49 am

Re: Windows 10 isn't seeing DietPi...

Post by Joulinar »

I have disabled SMB1 and I don't have such issues. For me it looks quite strange that net use is not working as soon as you disable SMB1. Probably something to ask on a Windows specialized board.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3089
Joined: Sat Nov 18, 2017 6:21 pm

Re: Windows 10 isn't seeing DietPi...

Post by MichaIng »

It is a Raspberry Pi Buster system, right?
Nohippychicks
Posts: 23
Joined: Fri May 04, 2018 3:15 am

Re: Windows 10 isn't seeing DietPi...

Post by Nohippychicks »

If DietPi is based on Buster, then yes. A RPI 4.
MichaIng wrote: Tue Jun 15, 2021 4:59 pm It is a Raspberry Pi Buster system, right?
Thank you for your time as well!
Post Reply