NOOBS Custom OS Image erstellen

Heute ist Stammtischzeit:
Jeden Donnerstag 20:30 Uhr hier im Chat.
Wer Lust hat, kann sich gerne beteiligen. ;)
  • Hallo,

    ich besitze eine 32 GB SD Karte mit NOOBS Lite. Da ich gerne auf NOOBS umsteigen würde, damit ich Custom OS's installieren kann, hätte ich gerne ein eigenes Raspbian und OpenELEC Image welche ich dann einfach mit installieren könnte. Gibt es eine Möglichkeit direkt von der Karte ein Image zu erstellen?

    spyfly

    Raspberry Pi B :@ | FHEM

    Intel Celeron powered Mini-ITX Server :bravo2: | Owncloud, Bots and Server Applications

  • Wenn ich dich richtig verstehe, läuft dein RaspberryPi momentan unter NOOBS Lite, mit Raspbian und OpenElec, richtig ? Und nun möchtest ein Image bzw. Backup von den laufenden Systemen machen, richtig ?

    Code
    sudo mkdir /backups/


    Damit hast einen Pfad für das Image. Jetzt schließ einen USB-Stick oder eine Festplatte an und suche den Pfad mit:

    Code
    sudo blkid

    Danach mountest du die Platte unter /backups/.

    Code
    sudo mount /dev/sda1/ /backups/


    /dev/sda1 änderst du dann gegen deinen Pfad zum Stick bzw. zur Festplatte.

    Nun kann das Backup auch schon erstellt werden. Dazu müssen wir zunächst den Pfad der root-Partition finden.

    Code
    sudo cat /etc/fstab


    Normalerweise ist diese unter /dev/mmcblk0p2 gemountet.

    Jetzt wird das Backup erstellt.

    Code
    sudo dd if=/dev/mmcblk0p2 of=/backups/backup1.img bs=1M

    Liebe Grüße
    Noahgie

  • Cool, probier ich gleich mal aus ;).

    Cool, probier ich gleich mal aus ;).

    Yeah, hat geklappt. Datei ist ca. 4,2 GB groß.

    Ok, das Image hab ich jetzt ja. Wie krieg ich das Image jetzt mit NOOBS installiert?

    Raspberry Pi B :@ | FHEM

    Intel Celeron powered Mini-ITX Server :bravo2: | Owncloud, Bots and Server Applications

    Einmal editiert, zuletzt von spyfly (27. Juni 2014 um 16:56)

  • Unter Noobs weiß ich da nicht direkt bescheid. Was ich dir aber auf jeden Fall empfehlen kann ist BerryBoot! Es kommt die auf die SD-Karte, und mit grafischer Oberfläche kannst du dann viele Betriebssysteme aus dem Internet heraus installieren, aber auch eigene Images installieren. Außerdem installiert BerryBoot die Systeme nicht auf die SD-Karte sondern auf Wunsch auch auf einen Stick oder eine Festplatte. Lies dich am besten hier und hier mal ein :thumbs1:


  • Unter Noobs weiß ich da nicht direkt bescheid. Was ich dir aber auf jeden Fall empfehlen kann ist BerryBoot! Es kommt die auf die SD-Karte, und mit grafischer Oberfläche kannst du dann viele Betriebssysteme aus dem Internet heraus installieren, aber auch eigene Images installieren. Außerdem installiert BerryBoot die Systeme nicht auf die SD-Karte sondern auf Wunsch auch auf einen Stick oder eine Festplatte. Lies dich am besten hier und hier mal ein :thumbs1:


    Hatte schon BerryBoot, kommt aber wegen meinem Custom Kernel nicht in Frage.

    So müsste man dies bei einem System ohne NOOBS machen:

    Replace the .tar.xz root and boot filesystem tarballs with copies created from your custom OS version (these instructions assume you're only using a single OS at a time with NOOBS - they won't work if you're running multiple OSes from a single SD card). The name of these tarballs needs to match the labels given inpartitions.json.

    To create the root tarball you will need to run tar -cvpf <label>.tar /* --exclude=proc/* --exclude=sys/* --exclude=dev/pts/* from within the root filesystem of your custom OS version. You should then compress the resulting tarball with xz -9 -e <label>.tar.To create the boot tarball you will need to run tar -cvpf <label>.tar .at the root directory of the boot partition of your custom OS version. You should then compress the resulting tarball withxz -9 -e <label>.tar.

    Wie krieg ich jetzt mein Image in dieses Format?

    Raspberry Pi B :@ | FHEM

    Intel Celeron powered Mini-ITX Server :bravo2: | Owncloud, Bots and Server Applications

    Einmal editiert, zuletzt von spyfly (27. Juni 2014 um 19:40)


  • Hatte schon BerryBoot, kommt aber wegen meinem Custom Kernel nicht in Frage.

    So müsste man dies bei einem System ohne NOOBS machen:

    Replace the .tar.xz root and boot filesystem tarballs with copies created from your custom OS version (these instructions assume you're only using a single OS at a time with NOOBS - they won't work if you're running multiple OSes from a single SD card). The name of these tarballs needs to match the labels given inpartitions.json.

    To create the root tarball you will need to run tar -cvpf <label>.tar /* --exclude=proc/* --exclude=sys/* --exclude=dev/pts/* from within the root filesystem of your custom OS version. You should then compress the resulting tarball with xz -9 -e <label>.tar.To create the boot tarball you will need to run tar -cvpf <label>.tar .at the root directory of the boot partition of your custom OS version. You should then compress the resulting tarball withxz -9 -e <label>.tar.

    Wie krieg ich jetzt mein Image in dieses Format?

    Hi,
    Gibt es dazu eventuell inzwischen neue Ergebnisse?
    Ich habe das gleiche Problem, ich verstehe die Anleitung zur Erstellung eines Custom Images unter NOOBS nicht so richtig.
    Hat da jemand Ahnung von?

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!