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

Notices


Reply
  Search this Thread
Old 10-26-2013, 10:57 AM   #1
peterdbj
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, 11:17 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,621

Rep: Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577
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, 12:40 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,910

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


Reply

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration