PDA

View Full Version : Increase partition size



clivejo
14-04-20, 22:35
I wanted to install kodi on my box but unable to do so due to not having enough space on the device. From reading other posts, I should have at least a gig for the / partition, but on mine I only have 524M. I don't really need multiboot, so is there a way to increase the partition size and decrease the multi-boot slots?


root@zgemmah7:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p3 523.9M 448.5M 35.1M 93% /
devtmpfs 185.8M 4.0K 185.8M 0% /dev
tmpfs 64.0K 0 64.0K 0% /media
/dev/mmcblk0p1 3.0M 10.0K 3.0M 0% /boot
tmpfs 502.0M 980.0K 501.0M 0% /var/volatile
/dev/sda1 464.7G 342.6G 122.1G 74% /media/hdd

birdman
15-04-20, 02:32
Another possibility is to move some of the stuff you already have on / to be under /media/hdd.

What do you have on / - it seems to be abnormally full?

twol
15-04-20, 06:32
When did you last usb flash??

Can you do a cat /proc/partitions would like see what that gives you - as above just doesn‘ t look correct

clivejo
15-04-20, 14:59
When did you last usb flash??

Don't think I have flashed it via USB since last May when I got the box. I did have to do a manual update from OpenViX 5.2 to 5.3, but I think I dropped the image on the HDD and installed it in a slot.


Can you do a cat /proc/partitions would like see what that gives you


root@zgemmah7:~# cat /proc/partitions
major minor #blocks name

1 0 8192 ram0
1 1 8192 ram1
1 2 8192 ram2
1 3 8192 ram3
1 4 8192 ram4
1 5 8192 ram5
1 6 8192 ram6
1 7 8192 ram7
1 8 8192 ram8
1 9 8192 ram9
1 10 8192 ram10
1 11 8192 ram11
1 12 8192 ram12
1 13 8192 ram13
1 14 8192 ram14
1 15 8192 ram15
8 0 488386584 sda
8 1 488385536 sda1
179 0 3817472 mmcblk0
179 1 3072 mmcblk0p1
179 2 8192 mmcblk0p2
179 3 819200 mmcblk0p3
179 4 8192 mmcblk0p4
179 5 819200 mmcblk0p5
179 6 8192 mmcblk0p6
179 7 819200 mmcblk0p7
179 8 8192 mmcblk0p8
179 9 819200 mmcblk0p9
179 10 502784 mmcblk0p10
179 48 512 mmcblk0rpmb
179 32 4096 mmcblk0boot1
179 16 4096 mmcblk0boot0

twol
15-04-20, 19:08
So that looks like the original layout (kernel/root pairs) whereas now most of the roots are using a shared partition.
Can you backup your settings and then do a usb flash?!

clivejo
15-04-20, 19:27
So that looks like the original layout (kernel/root pairs) whereas now most of the roots are using a shared partition.
Can you backup your settings and then do a usb flash?!

I guess so, but surely that will leave me with 4 slots again by default? I'd prefer to reduce that down to 2 slots with more storage.

dsayers
15-04-20, 19:32
Pure2 have images that uses 2 partitions so you get more memory per slot.

You can usb flash the image then use multiboot to flash vix into slot 2? Have a look at the read me file http://www.pur-e2.club/OU/images/index.php?dir=6.3/airdigital/H7-2partitions/



Zgemma H7 Image mit nur zwei größeren Partitionen in Flash (ca. 1,5 GB)

Um es zu verwenden, muss dieses Image (nur einmal) über USB und die Taste an der Vorderseite des Geräts geflasht werden.

Danach können Sie Image online (vom SW-Manager oder pure2-Manager) in STARTUP_1 oder STARTUP_2 frei flashen.

-------------------------------------

Zgemma H7 image with only two, bigger partitions in flash (cca. 1.5GB)

To use it, it is necessary (only once) to flash this image via USB and the button on the fornt panel.

After this you can freely flash images on-line (from SW manager or pure2 manager) in STARTUP_1 or STARTUP_2.

twol
15-04-20, 20:15
May not be that simple as OE-A images use a resize command to expand the root to fill the partition and may not work on a non standard image -

clivejo
22-04-20, 13:49
So I finally got round to flashing from USB and the device now reports the following:


root@zgemmah7:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p3 950.3M 486.3M 403.8M 55% /
devtmpfs 185.8M 4.0K 185.8M 0% /dev
tmpfs 64.0K 0 64.0K 0% /media
/dev/mmcblk0p1 3.0M 10.0K 3.0M 0% /boot
tmpfs 502.0M 53.7M 448.3M 11% /var/volatile
/dev/sda1 464.7G 272.4G 192.3G 59% /media/hdd


With kodi-addons-meta installed :


/dev/mmcblk0p3 950.3M 567.1M 323.0M 64% /

twol
22-04-20, 16:41
So I finally got round to flashing from USB and the device now reports the following:


root@zgemmah7:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p3 950.3M 486.3M 403.8M 55% /
devtmpfs 185.8M 4.0K 185.8M 0% /dev
tmpfs 64.0K 0 64.0K 0% /media
/dev/mmcblk0p1 3.0M 10.0K 3.0M 0% /boot
tmpfs 502.0M 53.7M 448.3M 11% /var/volatile
/dev/sda1 464.7G 272.4G 192.3G 59% /media/hdd


With kodi-addons-meta installed :


/dev/mmcblk0p3 950.3M 567.1M 323.0M 64% /


So better! And a swap partition (240MB) on mmcblk0p7 (if my memory is correct)

clivejo
22-04-20, 22:18
So better! And a swap partition (240MB) on mmcblk0p7 (if my memory is correct)

Don't think so, I think the swap file is on the HDD, would probably be better on MMC, but I didn't see an option to do that in the OpenViX menus.

twol
23-04-20, 06:52
This is part of the image build and partition setup for the h7 on eMMC
parted -s ${EMMC_IMAGE} unit KiB mkpart linuxkernel3 ${THRID_KERNEL_PARTITION_OFFSET} $(expr ${THRID_KERNEL_PARTITION_OFFSET} \+ ${KERNEL_PARTITION_SIZE})
parted -s ${EMMC_IMAGE} unit KiB mkpart linuxkernel4 ${FOURTH_KERNEL_PARTITION_OFFSET} $(expr ${FOURTH_KERNEL_PARTITION_OFFSET} \+ ${KERNEL_PARTITION_SIZE})
parted -s ${EMMC_IMAGE} unit KiB mkpart swap linux-swap ${SWAP_PARTITION_OFFSET} $(expr ${SWAP_PARTITION_OFFSET} \+ ${SWAP_PARTITION_SIZE})

Swap size: SWAP_PARTITION_SIZE = "262144"