Flash erweitern

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Flash erweitern

      Hi,

      kann mir jemand einen Tipp geben, wie ich einen 8GB Stick als Flasherweiterung nutzen kann? Oder gibt es eine andere Möglichkeit?
      Wäre es auch möglich ein Teil (Partition) v0j einer 2tb Festplatte als Flasherweiterung nutzen zu können?
      lg
    • Quellcode

      1. Filesystem Size Used Avail Use% Mounted on
      2. /dev/root 961M 629M 267M 71% /
      3. devtmpfs 492M 0 492M 0% /dev
      4. tmpfs 500M 0 500M 0% /dev/shm
      5. tmpfs 500M 33M 467M 7% /run
      6. tmpfs 500M 0 500M 0% /sys/fs/cgroup
      7. /dev/mmcblk0p3 6,1G 34M 5,7G 1% /data
      8. tmpfs 500M 48K 500M 1% /var/volatile
      9. tmpfs 500M 4,0K 500M 1% /tmp
      10. /dev/sda1 217G 151G 56G 73% /media/hdd
      11. root@dm920:~$
      Alles anzeigen
      die nutzen aber nichts Werk fur mich, da sie nach /data eingebunden sind oder kann man die umwunden automatisch?
    • maxiking32 schrieb:

      Quellcode

      1. Filesystem Size Used Avail Use% Mounted on
      2. /dev/root 961M 629M 267M 71% /
      3. devtmpfs 492M 0 492M 0% /dev
      4. tmpfs 500M 0 500M 0% /dev/shm
      5. tmpfs 500M 33M 467M 7% /run
      6. tmpfs 500M 0 500M 0% /sys/fs/cgroup
      7. /dev/mmcblk0p3 6,1G 34M 5,7G 1% /data
      8. tmpfs 500M 48K 500M 1% /var/volatile
      9. tmpfs 500M 4,0K 500M 1% /tmp
      10. /dev/sda1 217G 151G 56G 73% /media/hdd
      11. root@dm920:~$
      Alles anzeigen
      die nutzen aber nichts Werk fur mich, da sie nach /data eingebunden sind oder kann man die umwunden automatisch?
      Die Frage ist ? Warum legt du Sachen die viel Platz brauchen nicht nach /data ? z.B. Picon und co. oder backups etc. Dann ist genug Platz im flash.
      .................Gruß Ketschuss...................
      DM 920UHD + DM 900UHD + DMTwo alles Merlin-Images
    • und die Dinge die unter /data liegen, bleiben beim neu flashen der Box auch erhalten.
      Es gibt keinen Grund alles in die 2GB Flash zu installieren/kopieren.
      Man kann bestimmt den Speicher umpartitionieren und somit den Flashspeicher erweitern und /data verkleinern, nur würde ein größerer Flashspeicher deine Box auch langsamer machen.
    • nachdem ich das hier folgende Befehle durchgeführt habe, also beide Befehle. Bekomme ich nur noch diesen greenscreen bekomme.

      update-rescue -v dreamboxupdate.com/opendreambo….14-r0-dm920-20201201.bin


      sgdisk /dev/mmcblk0 -z -n 1:2048:65535 -c 1:kernel -t 1:8301 -n 2:65536:4194303 -c 2:rootfs -t 2:8307 -n 3:4194304: -c 3:data -t 3:8300
      Dateien
    • Hallo @Joey

      I habe deine Anleitung für das root partition Erweiterung zum 2 gb erfolgreich gemacht (und vielen dank für die Anleitung). Der Grund das ich die Erweiterung zu 2 gb gemacht habe ist, das ich sporadische Ausrufezeichen bei meine DM920 habe. Leider ist das Problem nach die Erweiterung immer noch da und ich wolte eigentlich gern zurück zu eine 1 gb root Partition weil Booten dann einen Tick schneller ist und ich 2 gb nicht brauche.

      Kennen Sie den Befehl um das root Partition zurück zu 1 gb zu bekommen? (DM920)

      Viele Grüsse aus Dänemark

      Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Kaver100 ()

    • Without flash extension in original state the partition table looks like this:

      Quellcode

      1. root@dm900:~# parted -s /dev/mmcblk0 unit s print
      2. Model: MMC 4FPD3R (sd/mmc)
      3. Disk /dev/mmcblk0: 7634944s
      4. Sector size (logical/physical): 512B/512B
      5. Partition Table: gpt
      6. Disk Flags:
      7. Number Start End Size File system Name Flags
      8. 1 2048s 65535s 63488s kernel
      9. 2 65536s 2097151s 2031616s ext4 rootfs
      10. 3 2097152s 7634910s 5537759s ext4 data
      11. root@dm900:~#
      Alles anzeigen


      For better understanding in an output format that can be further processed:

      Quellcode

      1. root@dm900:~# parted -sm /dev/mmcblk0 unit s print
      2. BYT;
      3. /dev/mmcblk0:7634944s:sd/mmc:512:512:gpt:MMC 4FPD3R:;
      4. 1:2048s:65535s:63488s::kernel:;
      5. 2:65536s:2097151s:2031616s:ext4:rootfs:;
      6. 3:2097152s:7634910s:5537759s:ext4:data:;
      7. root@dm900:~#


      From this you can derive the partitioning command for a 1GB rootfs partition.
      You have only to change the rootfs size to 2031616 units and the start poition unit for data to 2097152

      I am not sure if I should post the full command for repartitioning without testing it first.
      Gruß Fred

      Die Dreambox ist tot, es lebe die Dreambox

      ¯\_(ツ)_/¯

      Quellcode

      1. root@dm920:~$ mount | grep "/ "
      2. /dev/mmcblk1p1 on / type ext4 (rw,relatime,data=ordered)
      3. root@dm920:~$
    • Thanks a lot!

      From the command for enlarging to 2 gb it seems that I should change the end position of the rootfs from 4194393 to 2097151 and not change the rootfs size as (from what can see) the rootfs size isn't part of the 2 gb command line (see below). Correct?

      My data for the 2 gb enlargement:

      Quellcode

      1. Number Start End Size File system Name Flags
      2. 1 2048s 65535s 63488s kernel
      3. 2 65536s 4194303s 4128768s ext4 rootfs
      4. 3 4194304s 15269854s 11075551s ext4 data


      The DM9X0 2gb command line is as follows:
      sgdisk /dev/mmcblk0 -z -n 1:2048:65535 -c 1:kernel -t 1:8301 -n 2:65536:4194303 -c 2:rootfs -t 2:8307 -n 3:4194304: -c 3:data -t 3:8300

      In the above line I would then only change 4194303 to 2097151 and 4194304 to 2097152 right?

      Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Kaver100 ()

    • For my understandig yes.

      Resizing the endsector of partition 2 (rootfs) will resize the size of flash, as the start sector of the partition is the same as before.

      Since I do not want to be the cause of an "accident" it's also possible to test the command by partitioning an USB device ( >= 4GB ) first with 2GB for the second partition and the rest for partition 3 with the command by @Joey
      After this you can test your command to resize the second partition of the USB device without risk and then have a look what happening :D


      Do find out the correct device name of your usb device you can use the command lsblk



      Find out your USB devcice(s

      Quellcode

      1. root@dm900:~# lsblk -fpS
      2. NAME FSTYPE LABEL UUID MOUNTPOINT NAME HCTL TYPE VENDOR MODEL REV TRAN
      3. /dev/sda /dev/sda 0:0:0:0 disk ATA ST2000LM003 HN-M 2BE1 sata
      4. /dev/sdb /dev/sdb 2:0:0:0 disk Imation Atom USB Device PMAP usb
      5. root@dm900:~#


      I recommand to install allways the packages coreutils and binutils to have extensive tools instead of the mostly less powerful busybox tools.


      Find out if there are partitons and if it is/are mounted. If yes, umount the partition(s) first

      Quellcode

      1. root@dm900:~# lsblk -fp /dev/sd?
      2. NAME FSTYPE LABEL UUID MOUNTPOINT
      3. /dev/sda
      4. ├─/dev/sda1 ext4 dreambox-storage de954d30-ec21-4cc7-a60b-f9590177e7d8 /media/hdd
      5. └─/dev/sda2 swap eedf4165-d01e-46dc-95f3-64c7a3a02d0b
      6. /dev/sdb
      7. ├─/dev/sdb1 ext4 ead10c9e-5717-46a0-90a0-f8f35d5daea6
      8. └─/dev/sdb2 ext4 c6637b72-9f5a-42f6-83f2-3401a967d398
      9. root@dm900:~#



      Be careful, all data on the usb device will be deleted!
      Gruß Fred

      Die Dreambox ist tot, es lebe die Dreambox

      ¯\_(ツ)_/¯

      Quellcode

      1. root@dm920:~$ mount | grep "/ "
      2. /dev/mmcblk1p1 on / type ext4 (rw,relatime,data=ordered)
      3. root@dm920:~$

      Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Fred Bogus Trumper ()

    • thanks again @Fred Bogus Trumper ! I really appreciate your help.

      I will for sure try it out on a USB stick first in the coming days. I have read that the so called Mr. Big plugin could do these resizings of the root partition but the plugin has apparently been withdrawn together with the other Gutemine plugins for the DM9X0 which is really a pity.
    • Because i never resized the flash of a dm9x0 before and I do not want to harm anyone I tested it with a 4GB USB device on site.

      Yes it worked according to your information.


      So the command to resize the rootfs partition of a dm9x0 back to 1GB should be

      rezise the rootfs partiton of a dm9x0 back to 1GB - be careful

      Quellcode

      1. sgdisk /dev/mmcblk0 -z -n 1:2048:65535 -c 1:kernel -t 1:8301 -n 2:65536:2097151 -c 2:rootfs -t 2:8307 -n 3:2097152: -c 3:data -t 3:8300


      Or should I test it on my own dm900 first? :D ;)
      Gruß Fred

      Die Dreambox ist tot, es lebe die Dreambox

      ¯\_(ツ)_/¯

      Quellcode

      1. root@dm920:~$ mount | grep "/ "
      2. /dev/mmcblk1p1 on / type ext4 (rw,relatime,data=ordered)
      3. root@dm920:~$

      Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von Fred Bogus Trumper ()