Skip to content

Review partition sizes #67

Closed
Closed
@borpin

Description

re PR #66 (documentation)
re Issue #58

https://community.openenergymonitor.org/t/emonsd-17oct19-image-partition-sizes/12282/

The current script/image fixes the size of the rootfs and only works for 16GB cards.

Suggest the script is amended to fix the Ext2 partition to the end of the card at a max size.

#EmonSD Fix end of Rootfs
if [ $ROOT_DEV_SIZE -gt 16000000 ]; then
  #16GB card or above, assign last 10GB for data 
  TARGET_END=$(($ROOT_DEV_SIZE - 20972544 - 1 ))
elif [ $ROOT_DEV_SIZE -gt 8000000 ]; then
  #8GB card, assign last 4GB for data 
  TARGET_END=$(($ROOT_DEV_SIZE - 7341056 - 1 ))
fi

More discussion on community thread.

I'm not certain this is a robust solution.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions