3

I've had a look at these other questions that popped up but I don't think the first really answered any of my needs because it is for a media center. And the second one just has me scared to leave my Pi on all the time making it even more meaningful that I get faster boot times.

I have considered installing the system on a USB and using the SD only to boot. So I am open to any and all suggestions.

This is a demo model of a product we have developed and we know that after we get better hardware we may just have the faster boot time, but not only is this about getting our boot time to under 1 min or 30 sec but is also about learning about what is going on. Maybe many things are starting that should not be starting.

Is there anything I can do to improve boot speed?

Is the Raspberry Pi suitable for running continuously, 24/7?

  • 2
    Sorry, but this is ridiculous. 1) The boot time for raspbian is < 30 seconds -- so who cares? What do you want to save, 5 seconds? 10 seconds? Do you want it to boot instantaneously? Be specific and explain why you need this boot time. 2) If you want to leave the pi on 24/7, just do it, but don't run emergency room equipment, heart monitors, etc. This way no human beings will die because of a (quite nice!) $35 piece of toy electronics. Beyond that there is nothing to be scared of -- unless you can think of something specific and explain what it is. – goldilocks Mar 5 '13 at 1:56
  • 1
    Mine is closer to 3 min. Also this is about creating new things and this is the heart of a project I am making that is the heart of a new business. We will upgrade to newer/better hardware after we make some money, but this is not ridiculous to me. – Spencer Mar 5 '13 at 3:01
  • 1
    Let's try something more... constructive, shall we? Spencer, are you starting with a fresh OS install, or something you've built up? If the latter, can I suggest a fresh OS image and then installing only the bits that you need in order for your project to work? The other thing to do is to run 'dmesg' once the Pi has booted and make note of anything that seems to be taking a while to get through. Paste any lines where the timecode on the left side seems very high. (This is subjective, of course). Let's see if we can help you through this - 3 minutes is way to long so something must be happening – recantha Mar 5 '13 at 6:47
  • Oh, can you also say what SD card you're using as the speed of it will have some bearing on the speed of boot up. – recantha Mar 5 '13 at 6:52
  • 2
    If your startup time is really 3 minutes. Then it's not Raspbian at fault. Remove some services and programs. Even better if you can, start from a fresh image. – Vincent P Mar 5 '13 at 6:54
3

First select an SD card with a good 4k random read/write speed, sandisk tend to be good for this.

The following will shave 2-3 seconds off the boot time

edit cmdline.txt to read:

dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=commit=120,data=writeback elevator=deadline noatime nodiratime fastboot data=writeback rootwait quiet

and remove services on boot. I've managed under 20 seconds.

Or use Archlinux, which can easily be made to boot under 10 seconds.

2

You want faster? You have to make a custom kernel. Or you can just use one that somebody made.

Basically all the junk is ripped out, and you are left with basics. Then you add what you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.