Giter VIP home page Giter VIP logo

Comments (4)

sebanc avatar sebanc commented on July 16, 2024 2

The resize-data script path is "/usr/sbin/resize-data", though now that i think i understand what you are trying to achieve, i don't think modifying this script will help. I will provide further explanation in your other issue.

from brunch.

sebanc avatar sebanc commented on July 16, 2024

Hi,

The below part of the resize-data script handles the expansion of the data partition:

cgpt add -i 1 -b $(cgpt show -i 1 -b "$source") -s $(( disk_size - $(cgpt show -i 1 -b "$source") - 48 )) -t $(cgpt show -i 1 -t "$source") -l $(cgpt show -i 1 -l "$source") "$source"

Specifically, -s $(( disk_size - $(cgpt show -i 1 -b "$source") - 48 )) is used to attribute all the remaining disk space to the data partition and could be replaced by a specific size (in sectors).

Expanding the partition is quite easy as only requires afterwards to also expand the filesystem. However, shrinking partitions would be much more complicated or require to format the filesystem.

With that said, I am not sure what would be your use case for not providing the data partition with all the remaining space ?

from brunch.

jhedfors avatar jhedfors commented on July 16, 2024

Thanks for the info!

The use case is for placing the image not in a dedicated partition, but one shared by other OS. I have successfully done this, but found that I needed more space, but did not want to expand to take over the rest of this shared capacity.

Where can i find the resize-data script to edit it?

from brunch.

jhedfors avatar jhedfors commented on July 16, 2024

Thanks!

from brunch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.