V
V
Vladimir2012-01-03 17:35:22
linux
Vladimir, 2012-01-03 17:35:22

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

2 answer(s)
P
pazhitnov, 2012-01-03
@pazhitnov

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.

P
phasma, 2012-01-03
@phasma

RHEL has KickStart fedoraproject.org/wiki/Anaconda/Kickstart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question