Disk partitions where size is specified as percentage of remaining cylinders.
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Disk partitions where size is specified as percentage of remaining cylinders.
Hi folks,
When creating a disk partition, is there a way to specify the size of the file system in terms of percentage of remaining disk space, as opposed to number of cylinders or size in MB or GB?
When creating a disk partition, is there a way to specify the size of the file system in terms of percentage of remaining disk space, as opposed to number of cylinders or size in MB or GB?
what's your reason for wanting to do that? It seems unusual to me, because usually, you need a certain amount of space for a partition, regardless of the remaining space.
I remember in the old days of DOS, fdisk would allow to specify either a number (which was taken as the number of megabytes), or a number followed by a percent sign, which was -obviously- taken as a percentage.
I'm not sure if Linux fdisk supports that, I think it doesn't. The graphical frontend gparted definitely doesn't. But is it a problem to do some simple math in your head? I mean, if you read that the remaining space is 86196MB (just an arbitrary figure), and you want 30% of that, you'd end up with about 26GB (or 26000MB). It ain't that difficult, is it?
I am trying to create a template I can use to automate OS builds on several servers that might differ in hard disk size but will each be used to run the same services (in different environments, like Development or QA).
You're right in saying that the math is not hard, if I am just doing a one time install on one server.
You are also right in suggesting that I am trying to do something unusual. Just because a server has a bigger hard drive doesn't mean the root or var filesystems suddenly need proportionately larger sizes.
I am trying to create a template I can use to automate OS builds
automated installations, okay, I see your point.
Quote:
Originally Posted by cafemondegar
You are also right in suggesting that I am trying to do something unusual. Just because a server has a bigger hard drive doesn't mean the root or var filesystems suddenly need proportionately larger sizes.
That's why I thought you'd allocate a constant size for most of the file systems, and leave all the remaining space to one of them, for instance the root file system or /home.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.