Finding or mounting boot partition to create /boot/sshShould I install NOOBS or Raspbian?SSH fix in headless modeSSH connection refused even though ssh file is in /bootCan't enable ssh for first boot because latest Raspbian image boot partition is read onlyHow do I enable SSH on raspbian stretch (2018-04-18) by default on boot without a monitorSSH and wpa_supplicant.conf file disappearingCan't find /boot nor etc folder in downloaded NOOBS in SD Card. Need to add wpa_supplicant.conf file to connect to wifi on first boot in headless mode“Put an empty 'ssh' file in /boot/” trick not working anymoreInitialize a headless RaspberryPi connected by Wifi, 100% from Windowsssh not working after creation ssh fileHow to get SSH access to headless Raspbian Stretch Lite? Official way seems not to work

Why should I allow multiple IP addresses on a website for a single session?

Classify 2-dim p-adic galois representations

2019 2-letters 33-length list

How come having a Deathly Hallow is not a big deal?

How useful would a hydroelectric power plant be in the post-apocalypse world?

Square wave to sawtooth wave using two BJT

What is the meaning of "it" in "as luck would have it"?

Crop production in mountains?

Are all notation equal by derivatives?

Is it OK to throw pebbles and stones in streams, waterfalls, ponds, etc.?

What was the ASCII end of medium (EM) character intended to be used for?

Other homotopy invariants?

How can I smooth the top side of this ring?

Avoiding repetition when using the "snprintf idiom" to write text

What could a Medieval society do with excess animal blood?

Could citing a database like libgen get one into trouble?

Synthesis of an epoxide from 1,2-diol

What's the difference between the Find Steed and Find Greater Steed spells?

Was Wolfgang Unziker the last Amateur GM?

What was the point of separating stdout and stderr?

Are the Gray and Death Slaad's Bite and Claw attacks magical?

My mom helped me cosign a car and now she wants to take it

I agreed to cancel a long-planned vacation (with travel costs) due to project deadlines, but now the timeline has all changed again

Why would Dementors torture a Death Eater if they are loyal to Voldemort?



Finding or mounting boot partition to create /boot/ssh


Should I install NOOBS or Raspbian?SSH fix in headless modeSSH connection refused even though ssh file is in /bootCan't enable ssh for first boot because latest Raspbian image boot partition is read onlyHow do I enable SSH on raspbian stretch (2018-04-18) by default on boot without a monitorSSH and wpa_supplicant.conf file disappearingCan't find /boot nor etc folder in downloaded NOOBS in SD Card. Need to add wpa_supplicant.conf file to connect to wifi on first boot in headless mode“Put an empty 'ssh' file in /boot/” trick not working anymoreInitialize a headless RaspberryPi connected by Wifi, 100% from Windowsssh not working after creation ssh fileHow to get SSH access to headless Raspbian Stretch Lite? Official way seems not to work













2















To permanently enable ssh for a headless setup, my understanding is that the simplest method is to create an empty file /boot/ssh on the boot partition. However, when I write to a file using this pathname, the change doesn't persist after I reboot. If I'm understanding correctly, then this is because I'm not actually accessing the boot partition, and I need to mount that somehow. How do I do that? I'm running Raspbian on a pi-zero, installed from NOOBS.










share|improve this question







New contributor



Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 1





    Have you tested that the ssh server is not now always started after a reboot?

    – GramThanos
    Jun 24 at 0:55











  • @GramThanos: What I meant was that the file no longer exists after a reboot.

    – Ben Crowell
    Jun 24 at 1:07











  • I know, it is normal.

    – GramThanos
    Jun 24 at 1:18















2















To permanently enable ssh for a headless setup, my understanding is that the simplest method is to create an empty file /boot/ssh on the boot partition. However, when I write to a file using this pathname, the change doesn't persist after I reboot. If I'm understanding correctly, then this is because I'm not actually accessing the boot partition, and I need to mount that somehow. How do I do that? I'm running Raspbian on a pi-zero, installed from NOOBS.










share|improve this question







New contributor



Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 1





    Have you tested that the ssh server is not now always started after a reboot?

    – GramThanos
    Jun 24 at 0:55











  • @GramThanos: What I meant was that the file no longer exists after a reboot.

    – Ben Crowell
    Jun 24 at 1:07











  • I know, it is normal.

    – GramThanos
    Jun 24 at 1:18













2












2








2








To permanently enable ssh for a headless setup, my understanding is that the simplest method is to create an empty file /boot/ssh on the boot partition. However, when I write to a file using this pathname, the change doesn't persist after I reboot. If I'm understanding correctly, then this is because I'm not actually accessing the boot partition, and I need to mount that somehow. How do I do that? I'm running Raspbian on a pi-zero, installed from NOOBS.










share|improve this question







New contributor



Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











To permanently enable ssh for a headless setup, my understanding is that the simplest method is to create an empty file /boot/ssh on the boot partition. However, when I write to a file using this pathname, the change doesn't persist after I reboot. If I'm understanding correctly, then this is because I'm not actually accessing the boot partition, and I need to mount that somehow. How do I do that? I'm running Raspbian on a pi-zero, installed from NOOBS.







headless






share|improve this question







New contributor



Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question







New contributor



Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question






New contributor



Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked Jun 24 at 0:44









Ben CrowellBen Crowell

1437 bronze badges




1437 bronze badges




New contributor



Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Ben Crowell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









  • 1





    Have you tested that the ssh server is not now always started after a reboot?

    – GramThanos
    Jun 24 at 0:55











  • @GramThanos: What I meant was that the file no longer exists after a reboot.

    – Ben Crowell
    Jun 24 at 1:07











  • I know, it is normal.

    – GramThanos
    Jun 24 at 1:18












  • 1





    Have you tested that the ssh server is not now always started after a reboot?

    – GramThanos
    Jun 24 at 0:55











  • @GramThanos: What I meant was that the file no longer exists after a reboot.

    – Ben Crowell
    Jun 24 at 1:07











  • I know, it is normal.

    – GramThanos
    Jun 24 at 1:18







1




1





Have you tested that the ssh server is not now always started after a reboot?

– GramThanos
Jun 24 at 0:55





Have you tested that the ssh server is not now always started after a reboot?

– GramThanos
Jun 24 at 0:55













@GramThanos: What I meant was that the file no longer exists after a reboot.

– Ben Crowell
Jun 24 at 1:07





@GramThanos: What I meant was that the file no longer exists after a reboot.

– Ben Crowell
Jun 24 at 1:07













I know, it is normal.

– GramThanos
Jun 24 at 1:18





I know, it is normal.

– GramThanos
Jun 24 at 1:18










2 Answers
2






active

oldest

votes


















3














From the raspberry pi ssh documentation page (here)




When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.




Don't forget to change the default password.






share|improve this answer

























  • I see...so is the effect permanent, even though the file gets deleted?

    – Ben Crowell
    Jun 24 at 1:32











  • The file is just an easy way to set the ssh server to auto start.

    – GramThanos
    Jun 24 at 1:38











  • Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?

    – Ben Crowell
    Jun 24 at 1:42






  • 1





    Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.

    – GramThanos
    Jun 24 at 1:47











  • So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P

    – GramThanos
    Jun 24 at 1:48


















0














You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.



This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).



Just enable ssh through raspi-config (or the GUI equivalent).






share|improve this answer























  • I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.

    – Ben Crowell
    Jun 24 at 3:43






  • 1





    If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!

    – Milliways
    Jun 24 at 3:49













Your Answer






StackExchange.ifUsing("editor", function ()
return StackExchange.using("schematics", function ()
StackExchange.schematics.init();
);
, "cicuitlab");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "447"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f99875%2ffinding-or-mounting-boot-partition-to-create-boot-ssh%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














From the raspberry pi ssh documentation page (here)




When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.




Don't forget to change the default password.






share|improve this answer

























  • I see...so is the effect permanent, even though the file gets deleted?

    – Ben Crowell
    Jun 24 at 1:32











  • The file is just an easy way to set the ssh server to auto start.

    – GramThanos
    Jun 24 at 1:38











  • Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?

    – Ben Crowell
    Jun 24 at 1:42






  • 1





    Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.

    – GramThanos
    Jun 24 at 1:47











  • So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P

    – GramThanos
    Jun 24 at 1:48















3














From the raspberry pi ssh documentation page (here)




When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.




Don't forget to change the default password.






share|improve this answer

























  • I see...so is the effect permanent, even though the file gets deleted?

    – Ben Crowell
    Jun 24 at 1:32











  • The file is just an easy way to set the ssh server to auto start.

    – GramThanos
    Jun 24 at 1:38











  • Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?

    – Ben Crowell
    Jun 24 at 1:42






  • 1





    Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.

    – GramThanos
    Jun 24 at 1:47











  • So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P

    – GramThanos
    Jun 24 at 1:48













3












3








3







From the raspberry pi ssh documentation page (here)




When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.




Don't forget to change the default password.






share|improve this answer















From the raspberry pi ssh documentation page (here)




When the Pi boots, it looks for the ssh file. If it is found, SSH is
enabled and the file is deleted.




Don't forget to change the default password.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jun 24 at 1:41

























answered Jun 24 at 1:18









GramThanosGramThanos

4112 silver badges11 bronze badges




4112 silver badges11 bronze badges












  • I see...so is the effect permanent, even though the file gets deleted?

    – Ben Crowell
    Jun 24 at 1:32











  • The file is just an easy way to set the ssh server to auto start.

    – GramThanos
    Jun 24 at 1:38











  • Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?

    – Ben Crowell
    Jun 24 at 1:42






  • 1





    Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.

    – GramThanos
    Jun 24 at 1:47











  • So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P

    – GramThanos
    Jun 24 at 1:48

















  • I see...so is the effect permanent, even though the file gets deleted?

    – Ben Crowell
    Jun 24 at 1:32











  • The file is just an easy way to set the ssh server to auto start.

    – GramThanos
    Jun 24 at 1:38











  • Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?

    – Ben Crowell
    Jun 24 at 1:42






  • 1





    Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.

    – GramThanos
    Jun 24 at 1:47











  • So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P

    – GramThanos
    Jun 24 at 1:48
















I see...so is the effect permanent, even though the file gets deleted?

– Ben Crowell
Jun 24 at 1:32





I see...so is the effect permanent, even though the file gets deleted?

– Ben Crowell
Jun 24 at 1:32













The file is just an easy way to set the ssh server to auto start.

– GramThanos
Jun 24 at 1:38





The file is just an easy way to set the ssh server to auto start.

– GramThanos
Jun 24 at 1:38













Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?

– Ben Crowell
Jun 24 at 1:42





Thanks. What I'm trying to ask is, if I then reboot a second time, with the file no longer existing, will ssh still be enabled?

– Ben Crowell
Jun 24 at 1:42




1




1





Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.

– GramThanos
Jun 24 at 1:47





Yes. You created the ssh file inside the boot partition, the raspberry saw it and deleted it, it set the ssh service to start on boot, and now ssh server will start every time automatically.

– GramThanos
Jun 24 at 1:47













So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P

– GramThanos
Jun 24 at 1:48





So you may now, change the default pi password and set a static ip to your raspberry (if you want) :P

– GramThanos
Jun 24 at 1:48











0














You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.



This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).



Just enable ssh through raspi-config (or the GUI equivalent).






share|improve this answer























  • I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.

    – Ben Crowell
    Jun 24 at 3:43






  • 1





    If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!

    – Milliways
    Jun 24 at 3:49















0














You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.



This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).



Just enable ssh through raspi-config (or the GUI equivalent).






share|improve this answer























  • I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.

    – Ben Crowell
    Jun 24 at 3:43






  • 1





    If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!

    – Milliways
    Jun 24 at 3:49













0












0








0







You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.



This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).



Just enable ssh through raspi-config (or the GUI equivalent).






share|improve this answer













You NEED a keyboard and display to setup NOOBS so the solution to enable ssh on a headless system is superfluous.



This CANNOT be done on NOOBS, until Raspbian is installed (because the boot partition does not exist).



Just enable ssh through raspi-config (or the GUI equivalent).







share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 24 at 3:34









MilliwaysMilliways

32.2k14 gold badges57 silver badges123 bronze badges




32.2k14 gold badges57 silver badges123 bronze badges












  • I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.

    – Ben Crowell
    Jun 24 at 3:43






  • 1





    If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!

    – Milliways
    Jun 24 at 3:49

















  • I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.

    – Ben Crowell
    Jun 24 at 3:43






  • 1





    If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!

    – Milliways
    Jun 24 at 3:49
















I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.

– Ben Crowell
Jun 24 at 3:43





I have a keyboard and display. I'm setting the pi up initially using them, so that I can run it headless later.

– Ben Crowell
Jun 24 at 3:43




1




1





If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!

– Milliways
Jun 24 at 3:49





If you want to run headless DO NOT use NOOBS (which wastes 1.3GB of your SD Card) and is only useful for multi-boot. Install Raspbian!

– Milliways
Jun 24 at 3:49










Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.












Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.











Ben Crowell is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Raspberry Pi Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f99875%2ffinding-or-mounting-boot-partition-to-create-boot-ssh%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림