Hi,

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
directory.


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-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100930074203.gb5...@yun.yagibdah.de

Reply via email to