System: macOS Monterey (12.4) 2021 Macbook Pro w/ M1 Pro
I have been using my Raspberry Pi as a Network Access Share (NAS) with Samba for around a year now without any issues. Today, however, I noticed that I no longer have access to my NAS mounted on my Raspberry Pi. I recently got a new laptop and attempted to connect to it, and I think this may have potentially caused the change I'm seeing now.
Previously, I have been able to log in to view my NAS files by going to Finder > Connect As > (Enter pi
as username and my <password>
as password), but now when I do these steps I get this message:
The operation can’t be completed because the original item for “my_nas” can’t be found.
My share is/was located in: /media/pi/extd
, but now when I ssh into my pi and try to cd
to that path, I get a message saying the following error:
-bash: cd: /media/pi/extd: No such file or directory
However, /media/pi
still exists and when I enter ls
, I get no files listed out.
Among the things I have tried:
- Relaunching Finder, logging out, and logging back into my Mac.
- Ensuring I have installed all the latest updates for my raspberry pi programs with:
sudo apt update
sudo apt full-upgrade
sudo reboot
- Running
lsblk
to see if I can see my NAS (It is the 2T one):
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
└─sda1 8:1 0 1.8T 0 part
mmcblk0 179:0 0 29.7G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 29.5G 0 part /
- Seeing if there is anything out of the ordinary in my
/etc/samba/smb.conf
file:
# Global parameters
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
server role = standalone server
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb
[homes]
browseable = No
comment = Home Directories
create mask = 0700
directory mask = 0700
valid users = %S
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[my_nas]
create mask = 0777
directory mask = 0777
guest ok = Yes
path = /media/pi/extd/
read only = No
valid users = pi
- Seeing if my NAS is reachable with
smbclient -N -L //<my-raspberry-pis-ip-address-here>
:
do_connect: Connection to 192.168.86.29 failed (Error NT_STATUS_HOST_UNREACHABLE)
Any help would be hugely appreciated.
Edit
After running systemctl status smbd
, this is my output:
● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-07-05 20:44:07 CDT; 1h 32min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1714 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Main PID: 1715 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 4 (limit: 4915)
CGroup: /system.slice/smbd.service
├─1715 /usr/sbin/smbd --foreground --no-process-group
├─1718 /usr/sbin/smbd --foreground --no-process-group
├─1719 /usr/sbin/smbd --foreground --no-process-group
└─1720 /usr/sbin/smbd --foreground --no-process-group
Jul 05 20:57:20 raspberrypi smbd[2150]: pam_unix(samba:session): session opened for user pi by (uid=0)
Jul 05 20:57:30 raspberrypi smbd[2150]: pam_unix(samba:session): session closed for user pi
Jul 05 21:18:00 raspberrypi smbd[2362]: pam_unix(samba:session): session opened for user pi by (uid=0)
Jul 05 21:19:00 raspberrypi smbd[2362]: pam_unix(samba:session): session closed for user pi
Jul 05 21:19:05 raspberrypi smbd[2370]: pam_unix(samba:session): session opened for user pi by (uid=0)
Jul 05 21:19:05 raspberrypi smbd[2370]: pam_unix(samba:session): session closed for user pi
Jul 05 21:19:05 raspberrypi smbd[2373]: pam_unix(samba:session): session opened for user pi by (uid=0)
Jul 05 21:19:05 raspberrypi smbd[2373]: pam_unix(samba:session): session closed for user pi
Jul 05 21:19:07 raspberrypi smbd[2375]: pam_unix(samba:session): session opened for user pi by (uid=0)
Jul 05 21:19:07 raspberrypi smbd[2375]: pam_unix(samba:session): session closed for user pi
After running sudo fdisk -l
:
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x84e25c90
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk0p2 532480 62333951 61801472 29.5G 83 Linux
Disk /dev/sda: 1.8 TiB, 2000398843904 bytes, 3907028992 sectors
Disk model: Extreme SSD
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disklabel type: gpt
Disk identifier: 0BA8FA95-D191-472A-9756-2B141A3583B7
Device Start End Sectors Size Type
/dev/sda1 2048 3907026943 3907024896 1.8T Linux filesystem
After running sudo fsck -N /dev/sda
:
[/usr/sbin/fsck.ext2 (1) -- /dev/sda] fsck.ext2 /dev/sda
findmnt
show?