LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-14-2012, 02:40 PM   #1
cafemondegar
LQ Newbie
 
Registered: Jan 2012
Location: Fort Collins
Distribution: SuSE
Posts: 2

Rep: Reputation: Disabled
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?

Thanks!
 
Old 01-14-2012, 03:40 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi cafemondegar,

Welcome to LQ!!!

As far as I am aware you can only specify disk size in terms of cylinder or in MB or GB not in terms of percentage.
 
1 members found this post helpful.
Old 01-14-2012, 03:48 PM   #3
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by cafemondegar View Post
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?

[X] Doc CPU
 
Old 01-14-2012, 04:04 PM   #4
cafemondegar
LQ Newbie
 
Registered: Jan 2012
Location: Fort Collins
Distribution: SuSE
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for replying, Doc CPU.

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.
 
Old 01-14-2012, 04:36 PM   #5
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by cafemondegar View Post
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 View Post
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.

[X] Doc CPU
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to extend volume group size over the remaining space scrat75 Linux - Software 3 03-29-2010 03:51 PM
Disk size/partitions jinnstar Linux Mint 6 03-29-2009 10:58 AM
listing file size by percentage? abolishtheun Linux - Software 12 03-26-2008 06:22 AM
USB Memorystick cylinder size / no of cylinders misreported lpwevers Linux - Hardware 2 06-11-2006 03:15 AM
find remaining percentage of cpu happy78 Programming 11 09-26-2005 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration