• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Use larger SD-Card with original Hilscher-Image
#4
Meanwhile I found out why the command

Code:
lvresize -L +1G -n -f --resizefs rootfs/SYSTEM

did not work as expected.

Physically the LVM volume BACKUP is directly following the SYSTEM volume. If you now resize the SYSTEM volume with the command above then the original SYSTEM volume remains as it is and at its place - cause there is no immediate space left due to followin BACKUP - and a second socalled "segment" for SYSTEM is created behind the BACKUP volume. So SYSTEM is split in two segments and this cannot be resolved by netPI.

The trick is now to delete the BACKUP volume first and then resize the SYSTEM volume. Volume BACKUP is of no relevance for netPI so you can delete it without remorse. So call first

Code:
lvremove /dev/rootfs/BACKUP

Make sure you have not called a resizing command before. So take a fresh 1:1 copy of your orignal SD card image. If a second segment was created during resizing the procedure will not work at all.

Now call

Code:
lvresize -L +1G -n -f --resizefs rootfs/SYSTEM

with any size (1G = example) you want.

If you want to create the BACKUP volume afterwards too again then call

Code:
lvcreate -L 372M -n BACKUP rootfs

at the end and you have a 100% partition structure as before but with a larger memory that can be used by netPI.

Insert the card afterwards back into your netPI and boot it and feel happy.


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-7th-2019, 05:46 AM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)