• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Use larger SD-Card with original Hilscher-Image
#2
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

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)

  Reply


Messages In This Thread
RE: Use larger SD-Card with original Hilscher-Image - by Armin@netPI - July-5th-2019, 01:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Broken SD card dusrma24 11 10,087 February-9th-2022, 02:31 PM
Last Post: dral2009
  [SOLVED]SD card writing speed m-yoshikawa 4 3,294 February-25th-2021, 07:13 AM
Last Post: m-yoshikawa
  SD card durability Armin@netPI 2 5,226 November-4th-2020, 06:01 PM
Last Post: Armin@netPI
  how to unpack netPI to replace the microSD card tad 2 3,010 September-2nd-2020, 05:47 AM
Last Post: tad
Wink SD card on NIOT-E-NPI3-51-EN-RE Lingyue 3 4,484 March-6th-2020, 07:34 AM
Last Post: Lingyue
  Sealed microSD memory card (no more) Armin@netPI 1 3,257 August-13th-2019, 10:51 AM
Last Post: Armin@netPI
  [SOLVED] Memory storage MGharat 1 2,312 April-2nd-2019, 05:32 AM
Last Post: Armin@netPI
  [SOLVED] Pin configuration Akhil 7 5,069 December-13th-2018, 07:30 AM
Last Post: Armin@netPI
  [SOLVED] Information for pin connector Justin 9 7,165 November-12th-2018, 09:25 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)