bug-grub
[Top][All Lists]
Advanced

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

Re: grub cannot find ufs sub-partition `e'


From: Jeff Sheinberg
Subject: Re: grub cannot find ufs sub-partition `e'
Date: Tue, 5 Dec 2000 19:20:23 -0500 (EST)

Jochen Hoenicke writes:
 > On Dec 4, Jeff Sheinberg wrote:
 > > Hi,
 > > 
 > > I find that both grub 0.5.96.1 and 0.5.97 (cvs 2000-12-11) cannot
 > > find the `e' ufs partition, however, both can find the `a' on
 > > partition (hd2,3).  This happens with the grub shell as well.
 > 
 > Have you seen the mail from Heikki Vatiainen:
 > 
 > http://www.mail-archive.com/address@hidden/msg02779.html
 > 
 > He reports a similar problem and has a patch at the end of his mail.
 > Please try that patch and tell if that works.
 > 
 > I don't know much about bsd partitions, so I cannot tell if the patch
 > will help you.
 > 

I tried this patch with the grub shell,

===================================================================
RCS file: /home/cvs/grub/stage2/pc_slice.h,v
retrieving revision 1.10
diff -b -p -t -u -r1.10 pc_slice.h
--- pc_slice.h  2000/09/10 16:45:15     1.10
+++ pc_slice.h  2000/12/06 00:11:49
@@ -147,7 +147,7 @@
    || (type) == (PC_SLICE_TYPE_OPENBSD | ((fs) << 8)) \
    || (type) == (PC_SLICE_TYPE_NETBSD | (fs) << 8))
 
-#define IS_PC_SLICE_TYPE_BSD(type)      IS_PC_SLICE_TYPE_BSD_WITH_FS(type,0)
+#define IS_PC_SLICE_TYPE_BSD(type)      IS_PC_SLICE_TYPE_BSD_WITH_FS(((type) & 
0xFF),0)
 
 /*
  *  *BSD-style disklabel & partition definitions.
===================================================================

and it works much better, ie, all of my BSD sub-partitions are
recognized, and their files are listed with TAB completion, even
for a BSD slice on a PC logical partition.

It even `loads' a kernel,

    grub> root (hd0,3,h) 
     Filesystem type is ffs, partition type 0xa5

    grub> kernel /boot/loader^I
     Possible files are: loader loader.help loader.rc loader.4th loader.conf

    grub> kernel /boot/loader
       [FreeBSD-a.out, loadaddr=0x200000, text=0x1000, data=0x26000, bss=0x0, 
entry
    =0x200000]

    grub> root (hd0,7,a)
     Filesystem type is ffs, partition type 0xa5

    grub> kernel /boot/^I      
     Possible files are: defaults mbr boot0 boot1 boot2 loader loader.help 
loader.r
    c loader.4th support.4th cdboot loader.conf kernel.conf.GENERIC

    grub> kernel /boot/loader^I
     Possible files are: loader loader.help loader.rc loader.4th loader.conf

    grub> kernel /boot/loader
       [FreeBSD-a.out, loadaddr=0x100000, text=0x1000, data=0x21000, bss=0x0, 
entry
    =0x100000]

Thanks,
-- 
Jeff Sheinberg  <address@hidden>




reply via email to

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