bug-grub
[Top][All Lists]
Advanced

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

Re: [Bug-grub] Reiserfs bug? Builld problem?


From: Jason Thomas
Subject: Re: [Bug-grub] Reiserfs bug? Builld problem?
Date: Tue, 11 Dec 2001 08:59:15 +1100
User-agent: Mutt/1.3.24i

On Sun, Dec 09, 2001 at 10:43:54PM -0500, COFFMAN Steven wrote:
> I'm running a dual boot Windows 2000 (NTFS) and SuSE 7.3 Linux (Reiserfs)
> box with
> a 40 gig hard IDE drive (no SCSI devices). To get to Linux I use a boot disk
> with lilo, but I'd like to install grub into the MBR and still be able to
> get
> to both Win2000 and Linux.
> 
> I created what looks like a correct menu.lst, but when I run 'grub-install
> /dev/hda',
> I get an "Error 17: Cannot mount selected partition"
> at the "setup --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0)" step.
> 

do you know for sure that redhats rpm has the reiserfs patch in it?

heres the patch I use with the debian package. you should check the
source rpm for this.

diff -ur grub-0.90.orig/stage2/fsys_reiserfs.c grub-0.90/stage2/fsys_reiserfs.c
--- grub-0.90.orig/stage2/fsys_reiserfs.c       Sat Feb  3 00:31:03 2001
+++ grub-0.90/stage2/fsys_reiserfs.c    Sun Oct 21 11:23:16 2001
@@ -620,9 +620,7 @@
   if (super.s_journal_block != 0)
     {
       INFO->journal_block = super.s_journal_block;
-      INFO->journal_block_count = super.s_journal_block_count;
-      if (INFO->journal_block_count == 0)
-       INFO->journal_block_count = super.s_orig_journal_size;
+      INFO->journal_block_count = super.s_orig_journal_size;
       if (! is_power_of_two (INFO->journal_block_count))
        return 0;

> I read on this list about the bug with Reiserfs so I then upgraded from the
> grub 0.5.96.1 that came with SuSE to the grub 0.90-11 that comes with Red
> Hat 7.2
> and got the same result. I tried to manually patch and rebuild that version
> of
>  grub from their SRPM, but I get only get to the "GRUB requires a working
> absolute objcopy; upgrade your binutils" message. The binutils that SuSE
> ships
> is newer than RedHat 7.2's, so I can't see how they were able to build and I
> can't.
> 
>   cat /boot/grub/menu.lst
> 
> #by default, boot the first entry
> default =1
> 
> #Boot automatically after 30 secs.
> timeout =30
> 
> #Fall back to second entry
> fallback=0
> 
> #color
> 
> # Linux
> title Linux
> root (hd0,2)
> kernel /boot/vmlinuz root=/dev/hda3
> 
> # Windows
> title Windows 2000
> unhide (hd0,0)
> hide (hd0,1)
> hide (hd0,2)

if your hiding these partitions here then you probably won't be able to
boot linux above. hiding partitions changes there type!
and you should need to hide the linux partitions from NT as it won't
know what they are anyway.

> rootnoverify (hd0,0)
> makeactive
> chainloader +1

Attachment: pgpxK946h84lj.pgp
Description: PGP signature


reply via email to

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