LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 12-12-2019, 11:10 AM   #1
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,149

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Partitioning scheme


Next week I'll be getting a new desktop, my old one having just died. This means moving from a 32-bit computer to a 64-bit and from CentOS 6 to CentOS 7. Ideally, I should also be moving from BIOS to UEFI, but I may chicken out!

I shall be installing on a 120GB SSD, with no other operating system. My questions are

1. How much space do I need for root?

2. The installation guide refers to a /boot partition. Is that just because they assume that you will follow their advice and use LVM, which I shan't be doing?

3. The CentOS documentation refers to the ESP partition as mounted at /boot/efi. Other distros say it doesn't need a mount point. Any explanations?

4. Will CentOS still install Grub, despite the fact that UEFI can boot an OS directly? I do like the idea of still having Grub, in case I need to alter anything.
 
Old 12-12-2019, 01:14 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I would just follow the installer's guidance for EUFI, use LVM if it's default and then worry about whether to use the remaining space as one large partition (easier if your OS grows beyond what you expact) or seperate 30GB root (perhaps 20, certainly no more than 30) and the rest /home for easier install without losing your data from home.
Personally, I'd buy another drive of some kind either for home or backups of data (and make sure I made them) then just use the "all one partition" scheme.
 
1 members found this post helpful.
Old 12-12-2019, 01:21 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by DavidMcCann View Post
2. The installation guide refers to a /boot partition. Is that just because they assume that you will follow their advice and use LVM, which I shan't be doing?
/boot has nothing to do with LVM. The guide refers to a /boot partition because you will normally get one (I don't know if it's possible to run Centos without a boot partition).
Quote:
3. The CentOS documentation refers to the ESP partition as mounted at /boot/efi. Other distros say it doesn't need a mount point. Any explanations?
/boot/efi contains grub and grub.cfg, so yes, you need it.
Quote:
4. Will CentOS still install Grub, despite the fact that UEFI can boot an OS directly? I do like the idea of still having Grub, in case I need to alter anything.
Yes it will.
 
Old 12-12-2019, 02:56 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
It all depends on what packages/programs you install. Potential size of databases etc

Legacy grub could not read a LVM and therefore a separate /boot partition was required. grub2 can but CentOS still automatically creates a separate partition. Yes it is possible to run without a separate /boot. If you want a separate /home as suggested a min of 20GB for /(root) would be ok.
 
1 members found this post helpful.
Old 12-12-2019, 03:48 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Use UEFI - don't even consider not using it.
I haven't installed CentOS in a while, but it will presumably format the disk as gpt. This is also what you want - msdos (MBR) format is a thing of the past.

Welcome to your future.
 
2 members found this post helpful.
Old 12-13-2019, 05:05 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by syg00 View Post
...
I haven't installed CentOS in a while, but it will presumably format the disk as gpt. This is also what you want - msdos (MBR) format is a thing of the past.
...
I could be misremembering, but the last time I installed CentOS 7, I think from memory it wanted to use LVM by default. I chose MBR partitioning instead - as I currently have no need for LVM or GPT partitioning.
 
Old 12-13-2019, 07:11 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Slightly different scenarios. msdos (aka MBR) and gpt are partitioning systems of physical hard disk/SSD (whatever). LVM is a block device emulation that (typically) sits on top of that partitioning. Each can exist without the others, but usually MBR/gpt defines the underlying architecture.

Nothing is ever as simple as it first seems ... now I wonder when have I said that before ?
 
Old 12-13-2019, 11:22 AM   #8
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,149

Original Poster
Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
@michaelk Thank you for answering my first question.

@273 Why tell me to use LVM when I've just said I have no intention of doing so? Why tell me I need another drive? I bought a 120GB drive because that's all I need.

@berndbausch You can run CentOS without /boot — I've been doing it for years. If CentOS puts Grub on the EFI partition, that would explain the need for a mount point, but since you don't seem familiar with CentOS, I shall seek confirmation elsewhere.
 
Old 12-13-2019, 12:55 PM   #9
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
Quote:
Originally Posted by DavidMcCann View Post
2. The installation guide refers to a /boot partition. Is that just because they assume that you will follow their advice and use LVM, which I shan't be doing?
Owing to your placement of the comma and question mark that communicated uncertainty rather than the emphatic rejection you intended. I can see why 273 might have thought you were soliciting opinion on LVM.

"Is that just because they assume that you will follow their advice and use LVM? Which I shan't be doing." -- here the intent is much clearer.
 
Old 12-13-2019, 01:32 PM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
@DavidMcCann: that is what, in my experience, makes a smoother install.
If you don't want LVM then don't use it, I assume you know why you don't want to use it?
The seperate drive issue is that, simply, things are much easier if you keep your data (products of your computer use you want to keep) seperate from your OS. If you don't want to, or cannot, then you must simply back up any data you want and, then, it matters not what you do because the important things are triplicated, at least.
 
1 members found this post helpful.
Old 03-23-2020, 10:22 AM   #11
jhasaurav
LQ Newbie
 
Registered: Mar 2020
Location: MUMBAI
Distribution: Centos7
Posts: 7

Rep: Reputation: Disabled
if you use LVM is will be much better in future , like you can easily extend disk size if your partitioning run out of spaces.

and for root you can give 2G of space would be enough.
 
Old 03-23-2020, 10:28 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by jhasaurav View Post
if you use LVM is will be much better in future , like you can easily extend disk size if your partitioning run out of spaces.

and for root you can give 2G of space would be enough.
First, this thread had been closed for months before you reopened it. And telling someone that having 2GB for a root "/" file system is a HORRIBLE idea, since most distros take up more space than that, not to mention any updates/patches/additions they may need later.
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password generation failed for scheme {CRYPT}: scheme not recognized olva Linux - General 0 11-05-2006 11:21 AM
Linux partitioning scheme leeman_s Linux - Newbie 5 10-23-2003 09:51 AM
Partitioning scheme for performance Bruce Hill Linux - Hardware 11 10-11-2003 11:42 PM
Recommended partitioning scheme? embalmedlenin *BSD 7 09-25-2003 04:58 PM
Best Partitioning Scheme? rivang Slackware 28 05-19-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 06:14 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