Comments (4)
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.
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.
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.
Thanks!
from brunch.
Related Issues (20)
- Sound Not Working on Brunch HOT 3
- Is it possible to create a dual boot installation in partition style instead of image file? HOT 2
- Opening Android Apps causing Graphical Hang on ChromeOS 100 - 114 HOT 3
- iptsd failed to launch due to missing libfmt.so.9 HOT 6
- integrate Linuxloops
- Thinkpad 10 2nd gen - no devices in the BT pairing list (BCM4356)
- android not opening HOT 3
- Brunch on Macbook Pro 2018 - Need help with some things :) HOT 1
- Confusing Instructions HOT 3
- No Sound Devices - HP Elitebook 1030 X360 G8 HOT 3
- Asus FA506ICB - F15 HOT 2
- Brunch on MacBooks - Fixes and Issues. HOT 76
- No Internet on r115 HOT 2
- Install `pv` on older versions of ChromeOS
- Android VM won't init HOT 1
- Brunch on MacBooks - Solution for: No touchpad - Missing bcm5974 module. HOT 1
- No sound through speakers of a monitor, neither through HDMI or USB-C HOT 1
- ChromeOS black screen after boot HOT 16
- Audio doesn't work HOT 11
- Bosch Sensotec Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brunch.