July-5th-2019, 01:31 PM
(This post was last modified: November-4th-2020, 06:48 PM by Armin@netPI.)
Well Andi,
the following procedure described needs a separate Linux machine (like ubuntu) along with an external SD card reader. This procedure does not work on netPI booted with the original SD card since this image is secure and does not allow you to make any partition modifications.
In general the SD card image of netPI consists of 3 partitions:
Partition 1 : Filesystem FAT32 , name RESC
Partition 2 : Filesystem FAT32, name BOOT
Partition 3 : Filesystem LVM2, noname, containing two logical volumes named SYSTEM and BACKUP, both ext4 formatted.
What can be quite easily handled is to extend the size of the Partition 3 from 6GB to 32GB and is what you might have successfully done already. For this you probably used for the Linux partition tool named "gparted" and is a thing of a minute. But this is not enough because the logical volume SYSTEM - responsible for netPI's usable flash memory - within Partition 3 was not changed in its size during this procedure.
In order to change the size of the SYSTEM volume additionally you need help of a Linux system supporting the LVM(2) file system. You install it using the command
After that call the command
just to display all the found LVM volumes. One of the listed volumes will be:
After that you know the name of the SYSTEM volume. Then continue with a command like the following to add +1Gbyte (or more) memory to this volume
Thx
Armin
the following procedure described needs a separate Linux machine (like ubuntu) along with an external SD card reader. This procedure does not work on netPI booted with the original SD card since this image is secure and does not allow you to make any partition modifications.
In general the SD card image of netPI consists of 3 partitions:
Partition 1 : Filesystem FAT32 , name RESC
Partition 2 : Filesystem FAT32, name BOOT
Partition 3 : Filesystem LVM2, noname, containing two logical volumes named SYSTEM and BACKUP, both ext4 formatted.
What can be quite easily handled is to extend the size of the Partition 3 from 6GB to 32GB and is what you might have successfully done already. For this you probably used for the Linux partition tool named "gparted" and is a thing of a minute. But this is not enough because the logical volume SYSTEM - responsible for netPI's usable flash memory - within Partition 3 was not changed in its size during this procedure.
In order to change the size of the SYSTEM volume additionally you need help of a Linux system supporting the LVM(2) file system. You install it using the command
Code:
apt-get install lvm2
After that call the command
Code:
vgdisplay -v
just to display all the found LVM volumes. One of the listed volumes will be:
Code:
--- Logical volume ---
LV Path /dev/rootfs/SYSTEM
LV Name SYSTEM
VG Name rootfs
LV UUID HmnD5O-wBzR-PME6-LxZV-gbMM-ucQW-MaCWuA
LV Write Access read/write
LV Creation host, time (none), 2019-03-27 15:54:47 +0100
LV Status available
# open 0
LV Size <6,19 GiB
Current LE 2096
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
After that you know the name of the SYSTEM volume. Then continue with a command like the following to add +1Gbyte (or more) memory to this volume
Code:
lvresize -L +1G -n -f --resizefs rootfs/SYSTEM
Thx
Armin
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)