Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-26-2013, 09:57 AM   #1
LQ Newbie
Registered: Oct 2013
Posts: 10

Rep: Reputation: Disabled
raid1 boot Why does it work?

I am happy with my bootable raid1 debian with 2 partitions / and swap, by why is it woorking?
If I understand it correctly the MBR starts and then access the /boot directory and starts the booting of the OS.
But how is that possible? Does MBR includes filesystem handling? Impossible MBR is only 512 bytes long.
How can the computer start the loading of an OS before the filesystem is mounted?
Old 10-26-2013, 10:17 AM   #2
Senior Member
Registered: Aug 2009
Distribution: CentOS
Posts: 4,021

Rep: Reputation: 1769Reputation: 1769Reputation: 1769Reputation: 1769Reputation: 1769Reputation: 1769Reputation: 1769Reputation: 1769Reputation: 1769Reputation: 1769Reputation: 1769
Without knowing what bootloader you are using, I have to speak very generally, but the stage1 bootloader in the MBR is very primitive. It is given, at the time it is installed, the absolute disk addresses of the next stage bootloader, which includes handling for at least one filesystem. Often that next stage bootloader is located in the unpartitioned space that immediately follows the MBR so that it does not move when filesystems are updated. That intermediate bootloader, working with the filesystem that it understands, loads the final bootloader, which implements all of the user-visible features and loads the actual kernel, initramfs, etc.

Note that the above is very general, and is probably not entirely correct for any actual bootloader.
Old 10-26-2013, 11:40 AM   #3
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,035

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
I would guess that since the disks are mirrored each contains a perfectly valid boot sector so the system BIOS just has to point to one and the system will boot?


mbr, raid

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Best way to RAID1 the boot drive whitestar73 Linux - Server 4 05-18-2010 05:24 PM
raid1 degraded after every boot personalsoft_fabiano Linux - Server 4 01-17-2009 04:19 AM
raid1: md resyncing at every boot? gergra Linux - General 1 11-01-2006 04:42 PM
/boot on RAID1? Swakoo Linux - General 3 08-22-2006 07:38 PM
Slackware 10.2 boot from SATA RAID1? Rexxars Slackware 2 01-06-2006 11:04 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:55 AM.

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