Questions tagged [boot]

These questions refer to the initial starting up of the Raspberry PI.

Filter by
Sorted by
Tagged with
225 votes
12 answers
931k views

Execute script on start-up

I am trying to execute a script when my Raspberry Pi boots up. I would like the web browser to open up automatically. I have tried to find a simple solution, (like dropping my script in some "...
Tyler Murry's user avatar
  • 2,353
58 votes
4 answers
45k views

Emulation on a Linux PC

How can I connect an SD card containing a Raspberry Pi OS to my Linux PC, and boot the OS in an emulator? Why won't VMWare work? What are the limitations of this method? Related: Emulation on a ...
Alex L's user avatar
  • 7,595
34 votes
3 answers
43k views

Running Headless - checking boot screen messages

It's fairly easy now to run headless from scratch with a Raspberry Pi. One area that might have an issue though is debugging issues with devices that have been added to the Raspberry Pi. Often you ...
Jon Egerton's user avatar
  • 3,053
27 votes
5 answers
334k views

Run bash script on startup

I know this question has been asked before, but I can't find a fix for my problem, I just can't get my script to run on startup. Here's my script: #!/bin/bash iptables -A INPUT -m state --state NEW -...
user avatar
76 votes
1 answer
74k views

How does Raspberry Pi boot?

I have a raspberry mini computer and I am wondering how that thing does whole the boot process. I can compile my own kernel and init ramdisk with my own scripts and build my own minimal linux system ...
Petr's user avatar
  • 921
45 votes
2 answers
50k views

What is the boot sequence?

I am wondering what the boot sequence of the Raspberry Pi is in a typical setup (say NOOBS), from power application (or warm reset if that's different) up to, say, the apparition of the logo; or where ...
fgrieu's user avatar
  • 563
18 votes
6 answers
26k views

Use /boot/cmdline.txt for creating first-boot script

Many questions have been asked about how to find my Pi on my network. Others - including myself - have time consuming issues while trying to deploy a batch of fresh Pi's. While the creation of ...
EDP's user avatar
  • 1,681
3 votes
1 answer
6k views

How to make an image file from scratch

I want to make my own image file for a Raspberry Pi so I can copy any usable operating system to it and boot it. This way I'm also able to size down partitions or use other partition sizes. Is it ...
Ingo's user avatar
  • 41.9k
8 votes
1 answer
4k views

Netbooting multiple "workers" RPi from a "master" RPi

My question is, I believe, a little bit complex, and I think it would be better to fully describe what I have and what I want to achieve, with what I am able to do. What I have I have a group of ...
Longwelwind's user avatar
22 votes
3 answers
34k views

Why are some GPIO pins HIGH when the Raspberry Pi boots up?

I have an easy circuit wired up, with an LED connected to pin 18 on the BOARD reference. I run a simple program to put pin 18 to HIGH, which turns the LED on, and then a couple of seconds later, I set ...
Viktor Raspberry's user avatar
10 votes
3 answers
20k views

How to set up "kiosk" mode in Raspbian?

I want to set up my Raspberry Pi in a sort of "kiosk" mode where it boots up into a single full screen application. I know my way around the command line, but am a novice when it comes to customizing ...
Andrew's user avatar
  • 422
6 votes
2 answers
21k views

Raspberry Pi 4 B GPIO boot and shutdown button(s)

I've been doing some research on power buttons for the Raspberry Pi, but I'm having quite a hard time finding information. Right now, I have button working on GPIO5, and when I connect it to the ...
are_end's user avatar
  • 169
48 votes
6 answers
21k views

Boot from USB hard disk?

Is there a way to boot from an external hard drive connected to the device through the USB port (as opposed to booting from the SD card)?
System Down's user avatar
27 votes
8 answers
50k views

How to improve boot time for Raspberry Pi?

I'm creating an embeddable remote application that won't be permanently switched on. I've been playing around with different OS distributions and can reduce the time to boot substantially by using ...
Layke's user avatar
  • 373
14 votes
5 answers
22k views

How can I use an init ramdisk (initramfs) on boot up Raspberry Pi?

I need to load driver on early stage booting. For development I use LVM (logical volume manager) so I can easily revert test setups to the default image from a snapshot. For this I have to load the ...
Ingo's user avatar
  • 41.9k
4 votes
2 answers
1k views

How do I make the OS reset itself every time it boots up?

I'm looking to set up a simple system for public usage, probably with Raspbian. I would like to set it up to be a specific way, and have it stay that way. The goal is for the entire OS to wipe and ...
Aaron Franke's user avatar
2 votes
2 answers
4k views

No methods for running python script on startup are working

I can not get my python file to start on startup. I've tried four different methods (below) and they all work in command line but none of them appear to run on start up. As an example, the file is ~...
Seph Reed's user avatar
  • 301
2 votes
1 answer
3k views

Pi 3 model B+ won't boot

I was using this specific Pi for over a month now without any issues. Today, out of the blue, the screen started flickering. I decided to shut it down. When I replugged it, the green led wasn't ...
user3371927's user avatar
103 votes
3 answers
182k views

Boot without starting X-server

During the installation of Raspian I chose "Start X-Server after boot", but now I want to boot it once without starting the X-Server, so I've got more memory to run a program. How do I boot without ...
Stein's user avatar
  • 1,768
47 votes
4 answers
58k views

Boot from external USB stick / drive?

I know it's not possible to directly boot from an external USB stick / drive, but instead you have to boot from the SD card and then the external device can take over. What's the easiest and preferred ...
stefan.at.kotlin's user avatar
51 votes
2 answers
81k views

How to add custom loading screen?

I would like to make Raspberry PI useful for TV purpose or so... Therefore I would like to show to end user loading image before entering the X-Windows and starting customized desktop... So instead ...
E.W.'s user avatar
  • 511
39 votes
3 answers
25k views

What is the power on state of the GPIOs?

What is the state of the GPIOs when power is applied? eg High, Low, Hi-Z? Also does any OS change the state of any GPIOs when it loads? Hopefully not.
John La Rooy's user avatar
  • 11.9k
34 votes
4 answers
49k views

How do I load a module at boot time?

As stated in Why is my Audio (Sound) Output not working?, to initialise the sound driver, you must run sudo modprobe snd_bcm2835 every time you want to output sound. How do I get this to run on boot? ...
Alex Chamberlain's user avatar
5 votes
1 answer
3k views

Output fsck on boot to a log file

I'd like to use fsck on every boot of my RPi 3B+ server. To do this I will be using tune2fs -c 1 /dev/mmcblk0p2. When fsck runs I'd like the output to be added to a log file in /home/pi/fsck.log with ...
dominic03's user avatar
  • 357
3 votes
1 answer
926 views

which ubuntu version to install

I have installed ubuntu snappy but I can't find apt-get which is not a problem but I can't find some packages as vim... Which is the best Ubuntu version to install ? What are the pros and cons ?
epsilones's user avatar
  • 219
42 votes
4 answers
15k views

Is it possible to dual boot from the SD card?

Say I wished to have Debian Squeeze and Arch Linux ARM on my SD card. Would it be possible to dual boot from Grub?
Jivings's user avatar
  • 22.5k
32 votes
3 answers
80k views

Remove boot messages (all text) in Jessie

I have a custom python app that I wanted to have started automatically on the RPi with the official touch screen. This used to work fine without a sleuth of boot messages appearing until the latest ...
G Trawo's user avatar
  • 840
29 votes
1 answer
8k views

What happens during the boot process?

What happens during the boot process after the Raspberry PI is turned on? I know that it differs from the standard Linux boot process ( no complex boot manager like Lilo/Grub ), I also know that the ...
asalamon74's user avatar
  • 4,018
23 votes
4 answers
85k views

Raspberry Pi 3 and Raspbian Jessie - How to run fsck at boot?

How to run fsck at boot when using Pi 3 and Raspberry Jessie? I have read some tutorial but they differ. I have run sudo touch /forcefsck but what else I have to do? I know that I should set FSCKFIX=...
JPX's user avatar
  • 553
21 votes
6 answers
68k views

Green LED blinks 4 times, did I brick my Pi?

Out of nowhere my pi stopped booting. The red led lights up, they a long flash of the green led and then a cycle of 4 green blinks. HDMI screen shows nothing. I tried this with two different SD cards, ...
shoosh's user avatar
  • 327
17 votes
6 answers
101k views

How to install Raspbian without an SD card reader

I'm new to the Raspberry Pi platform and I just bought one! I downloaded Raspbian from the download location and then realized that I don't have a card reader to install the ISO. How can I install it ...
Imesh Chandrasiri's user avatar
15 votes
4 answers
41k views

Won't boot after removing and inserting the SD Card?

I've installed Arch Linux on my SD Card with Win32DiskImager. If I shut down the RPi, remove the card, insert it, and start the RPi again, everything works fine. But if I do full system update in ...
Gergely Fehérvári's user avatar
11 votes
4 answers
20k views

How to keep watchdog timer running during reboot/shutdown

In my research so far I've noticed there are two approaches to activating a watchdog timer on raspberry: using systemd or installing watchdog. It's all explained well here: https://www.raspberrypi.org/...
Duje's user avatar
  • 241
3 votes
2 answers
1k views

execute Python file on Systemstart

I want to run a simple python script like: import webbrowser webbrowser.open('http://google.com/', new=2) when the startup progress of my RPI 4 is finished. I tried something like "[How to run a ...
Soam.P's user avatar
  • 57
2 votes
1 answer
2k views

Raspberry Pi4 systemctl suspend or systemctl hibernated not supported?

I need to get my Pi4 running Raspbian to sleep or hibernate. The when I type the commands systemctl suspend or systemctl hibernated I get the error 'not supported'. Is it possible to enable this ...
Sarphati's user avatar
77 votes
13 answers
288k views

How do I turn on my Raspberry Pi after shutdown?

My Raspberry Pi runs OpenELEC. The XBMC has a Power-button in the left-bottom corner where I can shutdown the Raspberry Pi. That works fine, but I can't figure out how to turn it on again after the ...
ThomasCle's user avatar
  • 879
37 votes
3 answers
15k views

Level of Hackability of raspberry pi

I have been working with embedded systems (mostly micro controllers) for about 3 years. I want to know how much of RPi of actually open source?? I know arduino gives us complete details of hardware /...
deepak's user avatar
  • 581
21 votes
4 answers
26k views

Easiest way to return to a known good state when overclocking

If I try to overclock my Pi, I want to go up to the point where the Pi won't boot anymore, or won't be stable enough. At this point, I want to come back to the latest known good settings for the /...
Xavier Nodet's user avatar
15 votes
5 answers
18k views

Enable num-lock at boot Raspberry Pi

I am trying to toggle num-lock on my Raspberry Pi 2 running Raspbian jessie, I need it to run during the initial CLI boot up (before <hostname> login: or startx), I have tried numlockx and setleds ...
absenthecon's user avatar
11 votes
4 answers
31k views

Oops I need runlevel 1

So I have a bug in a script in my init.d directory and bottom line...I can't completely boot the pi. How can I boot into runlevel 1 (single user mode) so I can fix the bug?
Deac Karns's user avatar
9 votes
6 answers
60k views

SD Card Showing as 30 MB on a 32 GB Card. Can't Format, Can't create a partition table

A couple of days ago I received a new 32 GB SD card from Sandisk. Upon arrival, I flashed the Retropie 4.1 image for the Pi Zero onto it. I then put the card into my Pi, and plugged it in. Nothing. It ...
thatoneguy245's user avatar
6 votes
3 answers
54k views

Error on Boot. 'No working init found.'

My Raspberry won't boot anymore. I had some problems, with mostly Mysql crashes in the past. But now it won't boot anymore. The error it gives on boot: Not syncing: No working init found. Try ...
janw's user avatar
  • 523
3 votes
1 answer
2k views

Disable boot on plug in power cable

I'm owning a Rasperry Pi3 I want to disable automatic boot when plug in power cable. I don't want to use a simple mechanic switch because I want passive power still avaible for the board for various ...
user59821's user avatar
3 votes
3 answers
4k views

How do I run a single line of code (with sudo) on boot up?

I'm creating a server on my RPi that's on a timer, so I want to have a command run at startup to begin the server processes. I've seen this: Execute script on start-up, but it doesn't explain it well ...
Anonymous Penguin's user avatar
1 vote
2 answers
11k views

Start python script at startup using SYSTEMD in RPI jessie

Setup: Raspberry Pi 2 Model B V1.1 Raspbian Jessie Version March 2016 Hi I am new in the RPI world, I managed to setup 2 DHT22 temperature sensors connected to GPIOs 22 and 23, 2 analog temperature ...
jmmb392's user avatar
  • 13
1 vote
6 answers
16k views

How to move mouse pointer to a specific location on the screen AT BOOT?

I recently downloaded the latest and greatest Raspbian OS for my PI, enabled hide function on taskbar and have installed xdotool. For what I want to use PI for, I need to have the taskbar hidden at ...
ThN's user avatar
  • 1,015
0 votes
2 answers
5k views

Start and run a Python script at boot and use Cron to make sure its still alive

Hopefully someone can tell me if I'm going at this the right way. I have a Python script which I want to launch at boot. That was easy enough by putting a file in /etc/init.d/myBootFile I want to ...
KHibma's user avatar
  • 270
63 votes
9 answers
206k views

What password to use to log in after the first boot?

The first time I boot up my Raspberry Pi I get a login screen. What username and password should I use? That is, what is the default password for Raspberry Pi?
Maria Zverina's user avatar
37 votes
2 answers
157k views

Open chromium full screen on start up

I would like to set up a couple of Raspberry Pis to open automatically chromium or any other browser available to at start-up, and in full screen mode. I was wondering if any of you can help me. ...
Catalin's user avatar
  • 387
30 votes
4 answers
9k views

Is there anything I can do to improve boot speed?

I love my Pi, but it takes a considerable time to boot. If I want to use it as a Media Centre, it's quite important that it powers up quickly. Are there any steps I can take to improve boot ...
Jivings's user avatar
  • 22.5k

1
2 3 4 5