Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-31-2005, 08:27 AM   #1
Registered: Nov 2004
Distribution: Ubuntu
Posts: 68

Rep: Reputation: 15
What to Mirror - RAID 1

Hi -
I would like to use RAID1 to mirror my OS. If I understand correctly just trying to mirror / will be my entire file system and isn't what I want to do. Will mirroring /boot give me the best chance of booting after one mirrored drive crashes?
Old 12-31-2005, 08:36 AM   #2
Registered: Sep 2005
Location: Warsaw, Poland
Distribution: Slackware 10.2, Caldera OpenLinux 3.1, Corel Linux (Thanks xhi!), Debian GNU/HURD etc...
Posts: 296
Blog Entries: 1

Rep: Reputation: 30
Better ideas:
1. Get a live-cd, make a backup hadrcopy of /boot (hmm, how bout cd-r?) and restore, if anything happens.
2. Well, first of all , make a GRUB floppy.
3. As we all know, just for safety , get some decent dstro. Say, Debian? (FC4 is the main troublemaker round here.)
Old 01-14-2006, 01:04 AM   #3
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: debian IceWM
Posts: 5,715

Rep: Reputation: Disabled
if first drive crashes then its mbr as crashed.

therefore you need to re-do grub into the backup drive .....the live cd is a very good idea for every troubleshooting so get one please.

once you rebuild or install a new drive....have a look at my preferred way of installing grub into mbr in the it offers feedback.

then do it for (hd0) and (hd1)

I do not actually use raid my self as I throw salt over my shoulder every nanosec for luck, heh heh....(i prefer partimage)
Old 01-14-2006, 04:17 PM   #4
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278

Rep: Reputation: Disabled
What I do is have swap on each disk. Mirror /boot and /. After your install is done, su then 'grub':

grub> device (hd0) /dev/hda
grub> root (hd0,1)
you will get a message describing your file system.
grub> setup (hd0,1) [you might not need (hd0,1) here]

Then do hdb. To make sure it works, shut off your machine, unplug hda and see if the machine boots. I'm doing this off the top of my head ( I don't have my cheat sheet here) so take the code with a small grain of salt

This way if hda dies you can still boot normally without having to use a cd or boot floppy.
Old 01-14-2006, 07:17 PM   #5
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: debian IceWM
Posts: 5,715

Rep: Reputation: Disabled
almost perfect....the setup is used to install the bootloader so it will be used in this way

root (hdX,Y) per tut where is /boot partition or subfolder to /
setup (hdX)

where X will be first 0 then 1

if you do setup (hdX,Y) you are putting grub into the partition and will need a bootloader still in mbr....nothing wrong with that could use lilo ...ntldr etc but why have 2 bootloaders when 1 suffices?


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
Is there a way to both mirror and combine drives in RAID? Spitfire24 Linux - General 6 01-02-2006 05:21 PM
Undo a RAID mirror curlyroger Linux - General 2 09-18-2005 01:54 PM
Remove raid and mirror Chaiyakorn Linux - General 0 07-06-2004 01:59 AM
Mirror Raid support? Mediocre_Driver Linux - Hardware 1 01-20-2004 08:14 PM
Dual CPU, Raid Mirror glock19 Linux - General 1 05-01-2002 01:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 PM.

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
Open Source Consulting | Domain Registration