[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mbr rdb...



On Sat, 7 Apr 2001 noxis@noxis.prv.pl wrote:

> hi! i have some problems with my amiga and debian. my harddisk have pc
> mbr on the first block and amiga rdb after that mbr.

So you basically want to use the HD in a PC als well as in the Amiga?

> [...] (i cant compile this feature into kernel, becouse kernel sees
> only pc mbr after reboot).

What about changing the order in which different partition types are
probed? That way, Linux will only see the MBR if there is no RDB.

   Simon

--- drivers/block/genhd.c.orig	Sat Apr  7 13:00:34 2001
+++ drivers/block/genhd.c	Sat Apr  7 13:01:01 2001
@@ -264,6 +264,9 @@
 	u32 magic;
 	int (*func)(struct gendisk *hd, kdev_t dev, struct buffer_head *bh_0);
 } partbl_modules[] = {
+#ifdef CONFIG_AMIGA_PARTITION_MODULE
+	{ "amiga", FUNC,   0,      0, probe_amiga_partition },
+#endif
 #ifdef CONFIG_MSDOS_PARTITION_MODULE
 	{ "msdos", LE16, 510, 0xAA55, NULL },
 #endif
@@ -272,9 +275,6 @@
 #endif
 #ifdef CONFIG_SUN_PARTITION_MODULE
 	{ "sun",   BE16, 508, 0xDABE, NULL },
-#endif
-#ifdef CONFIG_AMIGA_PARTITION_MODULE
-	{ "amiga", FUNC,   0,      0, probe_amiga_partition },
 #endif
 #ifdef CONFIG_ATARI_PARTITION_MODULE
 	{ "atari", FUNC,   0,      0, probe_atari_partition },

-- 
GPG public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc
 Fingerprint: DC26 EB8D 1F35 4F44 2934  7583 DBB6 F98D 9198 3292
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!



Reply to: