Questions tagged [boot]

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

Filter by
Sorted by
Tagged with
222 votes
12 answers
924k 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 "...
user avatar
  • 2,323
55 votes
4 answers
44k 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 ...
user avatar
  • 7,385
33 votes
3 answers
42k 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 ...
user avatar
  • 2,983
27 votes
5 answers
328k 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
72 votes
1 answer
71k 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 ...
user avatar
  • 881
17 votes
6 answers
22k 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 ...
user avatar
  • 1,661
3 votes
1 answer
5k 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 ...
user avatar
  • 40.1k
43 votes
2 answers
45k 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 ...
user avatar
  • 541
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 ...
user avatar
21 votes
3 answers
32k 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 ...
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 ...
user avatar
  • 422
27 votes
8 answers
48k 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 ...
user avatar
  • 373
47 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)?
user avatar
12 votes
5 answers
17k 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 ...
user avatar
  • 40.1k
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 ~...
user avatar
  • 281
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 ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
102 votes
3 answers
178k 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 ...
user avatar
  • 1,748
51 votes
2 answers
80k 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 ...
user avatar
  • 511
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 ...
user avatar
4 votes
2 answers
10k 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 ...
user avatar
  • 149
38 votes
3 answers
24k 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.
user avatar
  • 11.8k
33 votes
4 answers
48k 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? ...
user avatar
3 votes
1 answer
916 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 ?
user avatar
  • 219
22 votes
4 answers
76k 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=...
user avatar
  • 543
30 votes
3 answers
75k 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 ...
user avatar
  • 810
11 votes
4 answers
18k 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/...
user avatar
  • 241
29 votes
1 answer
7k 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 ...
user avatar
  • 3,918
15 votes
4 answers
40k 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 ...
user avatar
20 votes
6 answers
62k 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, ...
user avatar
  • 317
17 votes
6 answers
90k 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 ...
user avatar
4 votes
1 answer
2k 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 ...
user avatar
  • 347
1 vote
1 answer
1k 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 ...
user avatar
3 votes
2 answers
834 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 ...
user avatar
  • 57
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 /...
user avatar
  • 581
77 votes
12 answers
285k 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 ...
user avatar
  • 871
41 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?
user avatar
  • 22.2k
6 votes
3 answers
50k 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 ...
user avatar
  • 503
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 /...
user avatar
10 votes
4 answers
30k 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?
user avatar
14 votes
5 answers
16k 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 ...
user avatar
7 votes
6 answers
48k 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 ...
user avatar
3 votes
3 answers
3k 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 ...
user avatar
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 ...
user avatar
1 vote
6 answers
14k 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 ...
user avatar
  • 1,032
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 ...
user avatar
  • 13
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 ...
user avatar
  • 260
62 votes
7 answers
203k 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?
user avatar
33 votes
2 answers
134k 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. ...
user avatar
  • 347
29 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 ...
user avatar
  • 22.2k

1
2 3 4 5