Finally! Raspberry PI 4 boot from SSD, no MicroSD required!

See this thread

Its should work as long you run the procedure correctly

Hi,
since this is a bit off topic, but rather fundamental info, could it be you moved this to a separate thread, and continue there? I really think community members should easily find the power consumption comparisons easily, and not like I just did by chance…

especially since

snippem s observations dont come close to what I notice locally, and this is a calm moment in the life of my Rpi4 4gig:

very often nearing the 75-80 C point…especially in the summer :frowning:

so please dedicate a thread to the topic?

hi,

could you share the code in the image?

1 Like

Feel free to start a new one. I am not a mod here so I can’t split the topic.

sure, but it was almost completely copied from another thread which I cant find at the moment… my apologies to the original coder.

edit found it: Remove (border) space of cards - #14 by hajo62 it was @hajo62 :wink:

type: picture-elements
image: /local/homeassistant/homeassistant.png
style:
  '#root > bar-card':
    $: |
      ha-card {
        background: none;
        box-shadow: none;
      }
      bar-card-name {
        color: white;
        font-size: 100%;
        font-weight: normal;
        margin: 4px;
      }
      bar-card-currentbar {
        border-radius: 7pt;
      }
      bar-card-backgroundbar {
        border-shadow: 2pt;
        margin-top: -2pt;
        margin-left: -2pt;
        border-radius: 7pt;
        border-style: solid;
        background: rgba(255, 0, 0, 0.8);
      }
      bar-card-value {
        font-size: 125%;
        color: white;
        font-weight: bold;
        margin: 4px;
      }

elements:
  - entity: sensor.rpi_last_boot_macro
    prefix: 'Last boot: '
    style:
      color: white
      font-size: 90%
      left: 65%
      top: 25%
    title: text
    type: state-label

  - type: custom:bar-card
    animation:
      state: 'on'
    columns: 5
    direction: up
    width: 10px
    height: 90px
    positions:
      icon: 'off'
      indicator: 'off'
      minmax: 'off'
      title: outside
      value: outside
      name: outside
    style:
      left: 50%
      top: 68%
      width: 100%
      scale: 100%
    entities:
      - entity: sensor.processor_use
        max: 100
        min: 0
        name: Cpu
        severity:
          - color: '#40bf40'
            from: 0
            to: 40
          - color: '#ffde00'
            from: 41
            to: 80
          - color: '#fd0000'
            from: 81
            to: 100
      - entity: sensor.cpu_temperature
        max: 100
        min: 0
        name: Temperature
        decimal: 0
        severity:
          - color: '#40bf40'
            from: 0
            to: 40
          - color: '#ffde00'
            from: 41
            to: 75
          - color: '#fd0000'
            from: 75
            to: 100
      - entity: sensor.memory_use
        max: 4096
        min: 0
        name: Memory
        decimal: 0
        severity:
          - color: '#40bf40'
            from: 0
            to: 1280
          - color: '#ffde00'
            from: 1280
            to: 2500
          - color: '#fd0000'
            from: 2500
            to: 4096
      - entity: sensor.disk_use_home
        max: 64
        min: 0
        name: Disk
        decimal: 0
        severity:
          - color: '#40bf40'
            from: 0
            to: 25
          - color: '#ffde00'
            from: 25
            to: 50
          - color: '#fd0000'
            from: 50
      - entity: sensor.swap_use
        max: 1024
        min: 0
        name: Swap
        decimal: 0
        severity:
          - color: '#40bf40'
            from: 0
            to: 640
          - color: '#ffde00'
            from: 640
            to: 768
          - color: '#fd0000'
            from: 768
2 Likes

thank you !!

Really interested in the details of your mini-pc if you could provide them ?

It is a Beelink S2 I bought about 2 years ago. Based on a gemini lake pentium N5000 CPU. The same one as on the review above but with the higher clock than the N4100.

Edit: here is one. $138 free shipping.

This thread is really off topic.

HassOS 5.x now has “USB mass storage device support”. Has anyone tried this yet? I don’t have a spare rPi 4 to test it on and am not 100% sure what all needs to be done to do it. My guess is that you need to update the EEPROM and load a fresh HassOS install using etcher to the USB drive (or SSD). But is that all?

I wrote a complete guide to install HassOS 5.1 onto a Pi 4 on a SSD, but it is written in German (maybe you can use Google Translate).

Here it is: https://forum.smartapfel.de/forum/thread/6048-anleitung-installation-von-home-assistant-auf-einem-pi4b-mit-einer-über-usb-ange/?postID=90748#post90748

7 Likes

Thanks for the amazing guide! It worked more than smooth for me! :heart_eyes:

That is good to hear! Did you understand it without translating?
Maybe I can translate it when there is time and post it here somewhere.

I’m from Germany, so no need to translate. But Google translate or deepl.com should do the job sufficiently for everyone who’s not speaking German.

Ok, that explains it. :slight_smile:

1 Like

for the newbs like myself, when editing the file you need to replace “critical” with “stable” and not add “-stable” to the single line… who would make that mistake anyway.

this guyyyyy.
otherwise the instructions worked great.

ps cant install 32bit 5.1, only 64bit version worked. online via router within 2 minutes.

Ah, thanks for this remark! I have changed it to be better understandable!

Maybe that’s why I wrote “64”. :slight_smile:

Great to hear!

2 Likes

only tried none 64 bit in fear that it may not allow some plug ins to work, since the official site has 32bit recommended for all installs. i just hoped it would have been possible. and to be able to tell others that it worked or not ;D

however atm i am struggling to change to mariadb. ive been using hassio for over a year and have yet to figure out how to get a local database to work. atleast 5 hours tonight alone. all suggestions are welcome.

This is what works for me. I use a secrets file so recorder is set to look there

purge_keep_days: 5
db_url: !secret mysql_pi4

My secrets link

mysql_pi4: mysql://hass:mypassword@core-mariadb/homeassistant

and my MariaDB config in the addon

databases:
  - homeassistant
logins:
  - username: hass
    host: homeassistant
    password: mypassword
rights:
  - username: hass
    host: homeassistant
    database: homeassistant
    grant: ALL PRIVILEGES ON