Questions tagged [boot]
The boot phase broadly refers to the set of operations that a computer system performs between power-on and access to a graphical/textual shell. Do NOT use this tag for Spring Boot or Twitter Bootstrap. Use [spring-boot] and [twitter-bootstrap] instead.
1,607
questions
102
votes
4
answers
68k
views
The difference between initrd and initramfs
As far as I know, initrd acts as a block device, thus requiring a filesystem driver (such as ext2). The kernel must have at least one built-in module for detecting filesystem of initrd. In this ...
74
votes
9
answers
106k
views
BroadcastReceiver not receiving BOOT_COMPLETED
I've looked around here for similiar problems, but for some reason my BroadcastReceiver never ends up receiving the android.intent.action.BOOT_COMPLETED Intent.
Here is my (relative) Android.Manifest ...
68
votes
3
answers
80k
views
What is the booting process for ARM?
As we know, for X86 architecture: After we press the power button, machine starts to execute code at 0xFFFFFFF0, then it starts to execute code in BIOS in order to do hardware initialization. After ...
66
votes
3
answers
38k
views
Android emulator - Don't save state by default
In the latest update for Android studio, the emulator has started saving snapshots of the current state of the device by default and going back to that snapshot when reopened, which is not the ...
51
votes
8
answers
86k
views
How to start Solr automatically?
At the moment I have to go to /usr/java/apache-solr-1.4.0/example and then do:
java -jar start.jar
How do I get this to start automatically on boot?
I'm on a shared Linux server.
42
votes
8
answers
81k
views
Make persistent changes to init.rc
I want to change the init.rc file of an android pad. But after I change it and reboot the system, the original init.rc comes back.
How can I make the change to the init.rc persistently without ...
41
votes
18
answers
175k
views
Run script with rc.local: script works, but not at boot
I have a node.js script which need to start at boot and run under the www-data user. During development I always started the script with:
su www-data -c 'node /var/www/php-jobs/manager.js
I saw ...
26
votes
1
answer
9k
views
How do I debug a slow rails app boot time?
Our rails app is nice and fast once it is loaded but the startup is brutally slow. Console, passenger etc all take almost 10 seconds to kick in. Seems to be way more than it should be.
What tools ...
25
votes
1
answer
23k
views
Best way to start Zookeeper automatically on Ubuntu Server 14.04?
I have installed Zookeeper using sudo apt-get install zookeeper on an Ubuntu server 14.04. I am having trouble understanding how to configure Zookeeper to start automatically, on boot. Also, I can ...
24
votes
2
answers
17k
views
Android - Trying to test a service on boot (java.lang.SecurityException: Permission Denial)
I've been trying to test a service when a device boots up on android, but I cannot get it to work.
I'm trying to start it with this command from CMD:
(in ..\AppData\Local\Android\sdk\platform-tools)
...
23
votes
5
answers
36k
views
Duplicating identical BeagleBone Black setups
After having set-up and customized my "master" BeagleBone Black (BBB) with applications etc. on the on-board eMMC, I want to duplicate it on other BBB boards.
What is the best way to duplicate the ...
23
votes
4
answers
15k
views
Starting Vagrant VM on host boot
I am new to vagrant and have set up a couple of vagrant vm's which I use for development and testing purposes. My issue is that I cant get these boxes to start up automatically on my machine (Ubuntu). ...
22
votes
5
answers
31k
views
Is it possible to boot the Linux kernel without creating an initrd image? [closed]
As I understand, initrd is a small image that is loadable in the RAM. It is used to boot a complete kernel with all the loadable modules. As part of the process, we need the vmlinuz kernel image which ...
22
votes
2
answers
21k
views
Getting started in creating simple bootable C program
Could someone guide me on what path/steps to take to create a simple bootable hello world program? I have the basic knowledge of C/C++.
My aim is to create a very simple OS.
I would like as much ...
20
votes
4
answers
4k
views
Android - How to start an application on the /sdcard after boot
Is there a way how to start and android application after a boot automatically if it is on the /sdcard?
Ok, probably by BroadcastReceiver. But which action is the right one?
ACTION_BOOT_COMPLETED - ...
19
votes
8
answers
56k
views
java: cannot access org.springframework.boot.SpringApplication bad class file
java: cannot access org.springframework.boot.SpringApplication
bad class file: /C:/Users/xyz/.m2/repository/org/springframework/boot/spring-boot/3.0.0-SNAPSHOT/spring-boot-3.0.0-20220910.145857-773....
18
votes
4
answers
2k
views
Why does the BIOS entry point start with a WBINVD instruction?
I'm investigating the BIOS code in my machine (x86_64 Linux, IvyBridge). I use the following procedure to dump the BIOS code:
$ sudo cat /proc/iomem | grep ROM
000f0000-000fffff : System ROM
$ sudo ...
17
votes
1
answer
110k
views
Startup script with systemd in Linux
Can I do This start up service below, there are no errors showing once run, but the server script below does not run!
ln /lib/systemd/aquarium.service aquarium.service
systemctl daemon-reload
...
17
votes
2
answers
9k
views
How does the GRUB 2 UEFI loader know where to look for the configuration file (or where the 2nd stage's files are located)?
If I use GRUB 2 on a GPT-enabled partition, how does the loader "know" where to find its configuration file and other second stage's files?
Note: I found some mentions about a configuration ...
16
votes
1
answer
19k
views
Starting Docker-Engine on boot
When I restart my host, I want my docker engine to start on boot.
Is this possible?
Can anyone point me in right direction ?
My OS is RHEL 7.3 and
my /usr/lib/systemd/system/docker.service fiel ...
16
votes
5
answers
37k
views
Failed to start PostgreSQL Cluster 10-main when booting
when I try to boot Ubuntu, it never finishes the boot process because it appears the message "Failed to start PostgreSQL Cluster 10-main." I also get the same message with 9.5-main. But lets focus on ...
15
votes
2
answers
6k
views
how multicore processors boot?
talking in very low level, how the cores are initialized ?
14
votes
5
answers
67k
views
after upgrade 18.04 no gui available only tty [closed]
After upgrading my Ubuntu desktop from 17.10 to 18.04, everything went smooth until I restarted my PC.
The first suspicious thing I noticed was that it has the same grub with 17.10 - it selected the ...
14
votes
2
answers
16k
views
Linux: Start daemon on connected USB-serial dongle
On my Linux (Angstrom distro on BeagleBone Black) I have a USB dongle which presents as a serial port and per default is available as /dev/ttyUSB0
I want to start a daemon, which will connect to the ...
14
votes
2
answers
5k
views
Do normal x86 or AMD PCs run startup/BIOS code directly from ROM, or do they copy it first to RAM? [closed]
I understand modern computers have modified Harvard architectures.
Can the fact that they can read instructions from somewhere other than where they hold data allow them to fetch instructions ...
14
votes
3
answers
21k
views
How can I autorun Android Chrome homescreen app on startup
After adding a certain website to homescreen through Chrome for Android, I'm looking for a way to autorun that homescreen app as the device boots up. I found a few apps in the Google Play store that ...
13
votes
4
answers
30k
views
How to enable adbd to listen to a port at boot time in Android?
I have a rooted HTC Hero, and what I want to do is to enable the adbd
to listen to a port at boot time.
I tried some code found here:
setprop service.adb.tcp.port 5555
stop adbd
start adbd
in an ...
13
votes
3
answers
5k
views
What information does BIOS load into RAM?
I know that, on booting, BIOS loads the first sector (512 bytes) of a pre-defined device drive on memory 0x7c00 and then jump to that address.
So, memory from 0x7c00 to 0x7dff is occupied. Is there ...
13
votes
2
answers
33k
views
Understanding Linux load address for U-Boot process
I'm trying to understand embedded Linux principles and can't figure out addresses at u-boot output.
For example, I have UDOO board based on i.MX6 quad processor and I got following output from U-Boot:...
13
votes
2
answers
9k
views
How can i put a compiled boot sector onto a USB stick or disk?
I'm actually interested in how an OS works, from the POST over the Boot process to the Kernel, GUI, etc.
Well I have to start at the beginning: The bootsector
Most tutorials only specify how to get ...
13
votes
1
answer
11k
views
Why 55 AA is used as the boot signature on IBM PCs? [closed]
Why does the IBM PC architecture use 55 AA magic numbers in the last two bytes of a bootsector for the boot signature?
I suspect that has something to do with the bit patterns they are: 01010101 ...
13
votes
3
answers
1k
views
Implementing a Sticky Service in android/flutter
I need to add a native sticky background service in a flutter application, in order to achieve 2 things:
Starting at boot time and running in background indefinitely
Exchange data with the main Dart ...
13
votes
0
answers
3k
views
Launch FCM services on boot without the activity
I've followed the Firebase Quickstart Messaging Tutorial, and I've a problem.
I'd like to launch the two services (MyFirebaseMessagingService and MyFirebaseInstanceIDService) on the boot of the ...
12
votes
4
answers
17k
views
Boot Receiver not working
Manifest:
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".AlarmActivity"
android:label="@...
12
votes
2
answers
8k
views
What memory is used for storing the reset vector?
from wikipedia: The reset vector for the 8086 processor is at address FFFF0h
Where is the reset vector stored?
12
votes
1
answer
12k
views
Who loads the BIOS and the memory map during boot-up
For the BIOS, Wikipedia states:
The address of the BIOS's memory is located such that it will be executed when the computer is first started up. A jump instruction then directs the processor to ...
12
votes
2
answers
12k
views
What are ATAGs for a device that uses Linux Kernel?
I am trying to understand how a kernel boots. I am currently trying to port a new kernel to hTC Incredible S VIVO (s710e) device, but I cannot get it to boot. So, I looked into the device's original ...
11
votes
5
answers
28k
views
Flow of Startup code in an embedded system , concept of boot loader?
I am working with an embedded board , but i don't know the flow of the start up code(C/assembly) of the same.
Can we discuss the general modules/steps acted upon by the start up action in the case of ...
11
votes
1
answer
19k
views
How to get Android system boot time
How can I get the absolute system boot time within the shell?
i tried cat/proc/uptime, but this only returns the time since reboot.
11
votes
3
answers
4k
views
How does bootstrapping work for gcc?
I was looking up the pypy project (Python in Python), and started pondering the issue of what is running the outer layer of python? Surely, I conjectured, it can't be as the old saying goes "turtles ...
11
votes
2
answers
9k
views
How do I debug a process that starts at boot time?
I am trying to set a breakpoint into a Windows service that starts at boot time. Because of an unfortunate mistake on my end, the service forces the machine into a reboot loop: this means that I can't ...
11
votes
1
answer
18k
views
How does UEFI boot mode boot flows?
The expression of this question is same as What is UEFI's boot sequence?, but it doesn't seem what I want. I'd like to know UEFI sequence in instruction perspective.
For example, in case of BIOS ...
11
votes
4
answers
3k
views
C# - How to know when Windows is "settled" after startup?
I'm writing an application that will have an option to run on Windows Startup.
I can't stand when applications bog my PC down before it has really settled, and this is a non-critical application. I'...
10
votes
1
answer
36k
views
How to make our own lock screen in android instead of default lock screen [duplicate]
I have an idea of creating my own phone lock app similar to android pattern lock. I need to display or start my app whenever the phone boots/restarts/phone, lock/phone, and unlock. I don't know how to ...
10
votes
2
answers
16k
views
How to turn off Windows kernel debugging at boot time?
I have a Vista 32 bit machine which I wanted to enable local kernel debugging on.
In WinDbg I selected File/Kernel Debug and selected the Local tab and clicked ok.
I got the following message.
The ...
10
votes
1
answer
1k
views
What does "CPU performs an endless jump" mean?
I was reading this: https://www.cs.bham.ac.uk/~exr/lectures/opsys/10_11/lectures/os-dev.pdf
And I read on page 8 the following:
e9 fd ff 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 ...
10
votes
4
answers
42k
views
Kernel Panic : No working init found. Try passing init= option to kernel
I have just started to understand the kernel working and internals and to begin with, I am trying to build the kernel and boot it.
I am using qemu as simulator for x86 architecture.
I am following ...
10
votes
1
answer
461
views
Cron boot script only during certain times of the day
So I have a collection of scripts which are used to control my reciever and tv power during certain events like boot, screensaver, and remote control. One of these is executed during login but the ...
9
votes
4
answers
9k
views
0xffff0 and the BIOS
When a pc first boots up, it starts executing at physical address 0xffff0. This address contains a jmp instruction to the BIOS.
Now for my question, I always assume the physical addresses are mapped ...
9
votes
3
answers
3k
views
Keep Android debugger alive even after device restart
I am having trouble debugging some code in my DeviceBootReceiver (handles android.intent.action.BOOT_COMPLETED intent). I want to debug this bit, but how does one keep the debugger alive, when the ...