LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-29-2012, 05:02 PM   #1
rootaccess
Member
 
Registered: Mar 2012
Posts: 311

Rep: Reputation: Disabled
Question about the /boot partition in CentOS and the ext3/4 fs


Hello folks. Well I found it strange that when I went to partition my sda (only disk on my laptop), I couldn't assign the ext3 fs, only the ext4 file system. That was strange. I then did partition my entire fs. I gave 3 primary partitions.

/boot
/
/opt

Then I made an extended partition to add
swap
/tmp
/usr
/var
/home

I only added /opt as a primary partition because I couldn't create an extended partition with 2 partitions in the installer. So I put opt in there. Not a big deal.

But the problem I faced was when it asked me where I wanted to put the bootloader. Of course my /boot partition in sda1. However, when I edited where I could put that, it listed MBR as sda (that does make sense), then it listed first sector 1024 on sda1 which is my /boot partition, then below that, where I could not change any options, it listed sda2 which was my / partition. I guess my question is, if its going to install the bootloader on the MBR (sda), then what is the purpose of the /boot partition on sda1 that I created?

Thanks for any input.
 
Old 03-29-2012, 07:25 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
In that scenario, there is probably little point in having a separate /boot partition, but it does no harm. I always assign one - partly habit from when it was a necessity.

The boot-loader has two major parts. The first is the actual loader code that the BIOS loads and transfers control to. This *must* be in the MBR.
The rest of the boot-loader is in a normal filesystem - and comprises executable code (update-grub or lilo commands for example), and configuration files. That is what is under /boot.

The installer is asking you about the MBR resident portion. You want to install that to the MBR.
The reason it asks is in case you already have a loader in the MBR that you wish to retain - then you would answer to install to the partition that contains your /boot. The other loader would need to be modified to chainload to the new system.
 
Old 03-29-2012, 07:45 PM   #3
rootaccess
Member
 
Registered: Mar 2012
Posts: 311

Original Poster
Rep: Reputation: Disabled
Thanks a lot. I totally understand now. If I haven't specified installing to sda aka MBR, it would install to sda1 (if theoretically I had another bootloader installed on there like LILO for example and as you said I would need to modify it to chainload my other OS's). I did check out my /boot partition and I guess I'm used to doing it that way. Really appreciate it.
 
  


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
How To Create linux ext3 ext2 partition CentOS 5 ytd Linux - General 17 04-11-2010 07:39 AM
Shrinking the ext3 partition during the boot and creation of new partition saleem_ak Linux - Newbie 2 05-05-2009 01:52 AM
Resizing Centos (ext3/LVM) partition alexpacio Linux - Software 6 08-11-2007 01:39 AM
Question about mounted ext3 usb partition in FC4 2.6 linux_marine Fedora 2 09-19-2006 12:53 PM
Ext3 partion corrupts with RH8/CentOS 4 dual boot simonb Red Hat 1 05-31-2005 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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