Here is a patch that adds a kind of Sofrware-RAID support for Linux.
Linux software RAID uses partition type 0xfd to mark a partition as a part
of RAID array. Grub (by default) decides this partition type is unknown
and won't mount it as ext2 (in my case, it is...). This patch changes this
so Grub thinks that partition with 0xfd holds an ext2 filesystem, so I can
have /boot partition on a raid1 array.
diff -Nur grub-0.5.96.1.orig/stage2/fsys_ext2fs.c grub-0.5.96.1/stage2/fsys_ext2fs.c
--- grub-0.5.96.1.orig/stage2/fsys_ext2fs.c Fri Jul 28 18:51:15 2000
+++ grub-0.5.96.1/stage2/fsys_ext2fs.c Thu Jan 18 12:48:51 2001
@@ -256,7 +256,8 @@
int retval = 1;
if ((((current_drive & 0x80) || (current_slice != 0))
- && (current_slice != PC_SLICE_TYPE_EXT2FS)
+ && ((current_slice != PC_SLICE_TYPE_EXT2FS) &&
+ (current_slice != PC_SLICE_TYPE_LINUX_RAID))
&& (! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_OTHER)))
|| part_length < (SBLOCK + (sizeof (struct ext2_super_block) / DEV_BSIZE))
|| !devread (SBLOCK, 0, sizeof (struct ext2_super_block),
diff -Nur grub-0.5.96.1.orig/stage2/pc_slice.h grub-0.5.96.1/stage2/pc_slice.h
--- grub-0.5.96.1.orig/stage2/pc_slice.h Sun Sep 10 18:45:15 2000
+++ grub-0.5.96.1/stage2/pc_slice.h Thu Jan 18 12:46:20 2001
@@ -113,6 +113,7 @@
#define PC_SLICE_TYPE_LINUX_MINIX 0x81
#define PC_SLICE_TYPE_EXT2FS 0x83
#define PC_SLICE_TYPE_LINUX_EXTENDED 0x85
+#define PC_SLICE_TYPE_LINUX_RAID 0xfd
/* For convinience. */
/* Check if TYPE is a FAT partition type. Clear the hidden flag before
D.
_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub