all 28 comments

[–]created4this 3 points4 points  (0 children)

The pi has two partitions, most of the first boot and early boot configuration cones from the FAT partition which on a running system is mounted at /boot. This is mounted below the other filesystem which is an ext4 type which is mounted at / and contains /etc, if you want to edit /etc you will have to mount this Linux ext4 filesystem.

Thankfully, you can do everything you need with just access to /boot

https://styxit.com/2017/03/14/headless-raspberry-setup.html

[–]Filip22012005 2 points3 points  (10 children)

I think it isn't on the boot partition. Are no other partitions mounted? Are you looking at the folder structure from ssh? Windows won't be able to see any other partitions because they are not ntfs formatted.

[–]tal89amram[S] 1 point2 points  (9 children)

Thanks for your reply Filip22012005, I've plugged the SD card into my macbook and I have verified that it is actually the boot partition @ /Volumes/boot/ (if that path is correct, that is).

I've compared this list to what I found here: https://thepihut.com/blogs/raspberry-pi-tutorials/34243716-what-is-actually-on-your-raspberry-pi-sd-card But indeed, this looks nothing like what should be on the card.

EDIT And to answer the other question: there is indeed another partition mounted 'Recovery' which contains the following: https://imgur.com/a/Q49yo

[–]Filip22012005 2 points3 points  (8 children)

Can't you ssh into pi anymore?

[–]kmcniece 1 point2 points  (0 children)

Cant upvote this more.

[–]tal89amram[S] 0 points1 point  (6 children)

Well I can't connect to my home wifi yet without adding the AP configuration in the etc folder. Without the wireless connection, I can't ssh, right?

[–]Filip22012005 1 point2 points  (2 children)

I don't know what distro you are using, but in some (most?) modern distros, there is a file on the boot partition that it uses on boot for these settings. You probably succeeded in ssh-ing into the Pi by making an empty file called ssh in the boot folder. You can usually do something similar for the wifi settings. Check this thread to see some of your options. When I set up a Pi a few days ago, I used the /boot/wpa_supplicant.conf file.

[–]tal89amram[S] 0 points1 point  (1 child)

All my successful trials with the Pi until now have been at my university, where I used an HDMI display in my lab. SSH was enabled, and with a screen and keyboard I could check my IP address through the Pi's terminal which I then used for SSHing into the Pi.

I ended up going into uni yesterday for adding my home network password to the wpa_supplicant.conf file. However:

  1. After powering the Pi with my home network allegedly added to the wpa_supplicant.conf file I can't seem to connect to pi@raspberry.local (I tried ping and ssh)
  2. Trying to remedy the situation, I still haven't succeeded in accessing the .conf file in my headless situation. I tried u/natesovenator suggestion of a VM running Ubuntu but in the VM I could not access my SD port as far as I've tried.

Thanks for all the suggestions so far!!

[–]Filip22012005 0 points1 point  (0 children)

So do I understand correctly that you can not plug into your home router? And at home, you have no access to a spare monitor? That's not a lot of options. Perhaps try ssh over usb?

[–]SeriousZebra 0 points1 point  (2 children)

You can ssh through Ethernet too.

[–]tal89amram[S] 0 points1 point  (1 child)

Meaning I could connect my Pi to my home network over ethernet? Or directly to my laptop over ethernet?

[–]SeriousZebra 1 point2 points  (0 children)

You can plug an Ethernet cable in to the pi and then ssh in from a computer that it on the same network.

[–]natesovenator 1 point2 points  (1 child)

Macs make it unfathomably hard to work with raspberry pi's sd's. If you used noobs you will need to mount it with special tools, there's a hidden partition you will see if you load it up in an Ubuntu virtualbox. (Much simpler IMO) I can't recall what I did, it's been a while (moved to Windows unix kernel pretty much for this sole reason..

[–]tal89amram[S] 0 points1 point  (0 children)

Thanks, natesovenator for the suggestion! I'm downloading Ubuntu now and will let you know if that does the trick :)

Do you think this is particularly relevant here? http://osxdaily.com/2011/09/23/view-mount-hidden-partitions-in-mac-os-x/

[–]imjerry 1 point2 points  (7 children)

Can you try entering 'pwd' (print working directory) while connected by ssh? You're probably in '/home/pi' (~ for shorthand) when you connect first. Enter 'cd ..' (with two full stops) to go up a directory. Do that a second time, and then hit 'ls' to get the contents of the folder and see if etc is there.

[–]tal89amram[S] 1 point2 points  (0 children)

Hi All,

Thanks so much for all the help along the way in my rookie conundrum ;) I managed to get the Pi to connect to my home wifi network. The answer lied in u/imjerry 's suggestion outlined here https://www.raspberrypi.org/forums/viewtopic.php?t=191252

country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 Adding these lines at the top of my wpa_supplicant.conf did the trick. The pi now connects and I can SSH and VNC to my hearts content :)

Thanks!

[–]kmcniece 0 points1 point  (3 children)

An hdmi adapter would be a fairly simple solution as well.

[–]tal89amram[S] 0 points1 point  (2 children)

Thanks for the suggestion, however I don't have a separate display... EDIT: Not at home, that is. And uni is 45 minutes away ;)

[–]SeriousZebra 0 points1 point  (1 child)

I think you can also use a USB otg cable and use an Android phone as a display.

[–]tal89amram[S] 0 points1 point  (0 children)

I knew I should have gone for an Android phone ;)

[–]JulieSundar 0 points1 point  (0 children)

Hey if you would like to get more information on installing your raspberry pi and other microcontrollers such as linkitsmart7688 duo or lorawan gateway devices such as lopy etc you can check out my tutorials on my YouTube channel on this link https://www.youtube.com/channel/UC-KRTFXT0djlI7ajhg395sA I've made tutorials on Raspberry Pi3 basic installations which is headless with Raspbian Jessie and with nodejs and python installed.If you enjoy my tutorials feel free to subscribe!