bug-grub
[Top][All Lists]
Advanced

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

Re: Grub doesn't recognize Minix in its own partition, but everywhere el


From: Jochen Hoenicke
Subject: Re: Grub doesn't recognize Minix in its own partition, but everywhere else
Date: Tue, 5 Dec 2000 15:50:35 +0100 (MET)

On Dec 3, Ralf Medow wrote:
> Hi,
> 
> while familiarizing myself with Grub, using grub-0_5_96_1-i386-pc.ext2fs
> dd'd to a floppy and booted from it, I once accidentially installed a
> Minix filesystem into a type-83-partition and only noticed my fault when
> the geometry-command of grub told me so:
> 
>    Partition num: 6, filesystem type is minix, partition type is 83
> 
> After correcting the fault grub told me:
> 
>    Partition num: 6, filesystem type is unknown, partition type is 81
> [...]
> 
> To me that looks like Minix is recognized everywhere *except* on its own
> partition. Maybe a wrong negation in an if-statement?

Yes, you are right, a missing negation.  I will fix it in the cvs
repository in a few minutes.

  Jochen

diff -u -r1.5 fsys_minix.c
--- stage2/fsys_minix.c 2000/09/10 16:45:15     1.5
+++ stage2/fsys_minix.c 2000/12/05 14:49:43
@@ -160,8 +160,8 @@
 int
 minix_mount (void)
 {
-  if (((current_drive & 0x80 || current_slice != 0))
-      && IS_PC_SLICE_TYPE_MINIX (current_slice)
+  if (((current_drive & 0x80) || current_slice != 0)
+      && ! IS_PC_SLICE_TYPE_MINIX (current_slice)
       && ! IS_PC_SLICE_TYPE_BSD_WITH_FS (current_slice, FS_OTHER))
     return 0;                  /* The partition is not of MINIX type */
   



reply via email to

[Prev in Thread] Current Thread [Next in Thread]