FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 09-30-2010, 07:42 AM
Default installing grub on a RAID1


I'm moving my system partitions from an old IDE disk to a RAID1 made
of two disks. The RAID1 has been created directly on the physical
disks (/dev/sda and /dev/sdb). The RAID1 is partitioned as follows:

Device Boot Start End Blocks Id System
/dev/md127p1 257 16777472 67108864 82 Linux swap / Solaris
/dev/md127p2 16777473 17301760 2097152 83 Linux
/dev/md127p3 17301761 43516160 104857600 83 Linux
/dev/md127p4 43516161 122096356 314320784 5 Extended
/dev/md127p5 43516417 69730816 104857600 83 Linux
/dev/md127p6 69731073 95945472 104857600 83 Linux
/dev/md127p7 95945729 122096356 104602511+ 83 Linux

Some of the partitions on the RAID1 are already in use:

/dev/md127p1 (swap)
/dev/md127p3 /usr
/dev/md127p5 /var
/dev/md127p6 /opt
/dev/md127p7 /tmp

Now /dev/md127p2 is supposed to become the new root partition (I
forgot to set the "bootable" flag for that partition.). But
'grub-install /dev/md127p2' gives me an error message:

/usr/sbin/grub-setup: error: can't open /dev/md/127: No such file or

The md devices show up under /dev, /dev/md is emtpy. Now how do I
install grub on the RAID1 to be able to boot from it, with
/dev/md127p2 being the root partition?

If I use

grub-install /dev/sda /dev/sdb

(how) does grub-install figure out that the root partition is
/dev/md127p2? Would that work at all or destroy the RAID1 by
overwriting data directly on the physical disks?

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100930074203.GB5993@yun.yagibdah.de">http://lists.debian.org/20100930074203.GB5993@yun.yagibdah.de

Thread Tools

All times are GMT. The time now is 10:18 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org