Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use all remaining available space on a disk? #2755

Open
zenlord opened this issue Oct 23, 2024 · 6 comments
Open

How to use all remaining available space on a disk? #2755

zenlord opened this issue Oct 23, 2024 · 6 comments

Comments

@zenlord
Copy link
Contributor

zenlord commented Oct 23, 2024

Which ISO version are you using?

2024-10-01

The installation log

Irrelevant

describe the problem

Description of the issue

I wanted to use archinstall to install a host from scratch with 2 partitions. I found at least one config.json file which suggested I could set the 'size' key of a partition to a value of "100%". Using this value in a config.json with archinstall 2.8.6 results in an error referencing the 'size' key.

I also tried transposing this value into the new config format

"size": {
  "sector_size": {
    "unit": "B",
    "value": 512
  },
  "unit": "%",
  "value": 100
},

... but that also failed. I then settled for using an absolute value in GiB that comes close to what I want to achieve.

I have submitted a PR to update the sample-config.json in the git repo - would make sense to document this option (if it is available) in that file as well, as probably others will want to use such option as well.

@zenlord
Copy link
Contributor Author

zenlord commented Oct 23, 2024

Just adding that I tried this as well with 'percent' and with 'Percent' as unit. Both made archinstall fail before showing the TUI.

@claudemods
Copy link

claudemods commented Oct 23, 2024

Why not use the Arch install menu to select partitioning and then press the spacebar on the disk you want to use? This is not a bug, it's just pure laziness. Time, research, and the right .config or manually setting up with the menu will get you your answers.

@zenlord
Copy link
Contributor Author

zenlord commented Oct 23, 2024

If you want to use the same configuration to install multiple identical hosts, you value the option to set an option to the desired value in a single config file and avoid human mistakes.
Additionally: several online examples indicate that this used to work in at least one older version and it does no longer work. That means this is a bug. Not laziness.

@claudemods
Copy link

Hmm maybe try using archinstall to setup and then copy the newely made .config it may have newer settings i dunno im no expert sorry for the way i spoke before

@andyfozzy
Copy link

I would like this option, too, so that we can setup servers with less effort on both virtual and physical platforms. It looks like this ability was removed last September at commit: b141609

@vonpupp
Copy link

vonpupp commented Dec 16, 2024

I second this. I just stumbled with this issue myself too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants