Answer the question
In order to leave comments, you need to log in
Automatic partitioning in Linux?
Has anyone set out to write a script that will create new partitions on the specified disk with the right proportions?
For example, we have a 160 GB disk, you need to create partitions:
swap - 2gb
/ boot - 0.2% (but not less than 200Mb)
/ - 10% (but not less than 15Gb)
/
home - all the remaining space
make it parted.
Perhaps someone already has experience on this topic. I would be very grateful for help.
Answer the question
In order to leave comments, you need to log in
Most installation scripts do something similar. The problem is that it is extremely difficult to come up with a universal solution: some values are needed for the server, others for the desktop, I don’t have a swap at all on a machine with 8GB of memory, for example. And even giving all the remaining space under /home can be good for a desktop, but for a web server it will be more like /var.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question