Re: Help 10.3 a mess After YOU Upgrade



On Fri, 8 Feb 2008 05:37:35 UTC, "Rajko M." <kakomo123@xxxxxxxxxxxx>
wrote:

Rajko M. wrote:
....
I found one article that is explaining what is root(hd0,x).

It points to boot partition where GRUB can find it's files.
It can be separate boot partition, or as we use one installation for that
purpose it will point to installation that is used to store GRUB files
that are currently used.

http://www.howtoforge.com/forums/archive/index.php/t-944.html
the answer by 'themachine/.

So correct settings for last installation would be root(hd0,7).

Now is time to be a bit more precise.

I just finished small experiment. This essential part of menu.lst.

default 1
timeout 8
gfxmenu (hd0,2)/boot/message
root (hd0,2) # This new added.

title openSUSE 10.3 - 64 (boot)
# root (hd0,2)
kernel /boot/vmlinuz root=dev/sda3 vga=0x31a
initrd /boot/initrd

title openSUSE 10.3 32 bit
# root (hd0,5)
kernel /boot/vmlinuz root=/dev/sda6 vga=0x31a
initrd /boot/initrd

Symlinks point to kernels that are not the same version.

1) Boot to 'openSUSE 10.3 - 64 (boot)' works fine.
I guess that newly added root (hd0,2) below gfxmenu line is used by grub.
Though, I got to check that again.
2) Boot to 'openSUSE 10.3 32 bit' has a problem.
GRUB can't find modules for kernel version that is used on 64 bit, but
does not exist on 32 bit installation.
That means it loaded 64 bit kernel, and that means that root (hd0,2)
pointed GRUB to use kernel from 64 bit installation instead of those
on (hd0,5).
3) removing comment sign # in line with root (hd0,5) brings 32 bit system
back.
title openSUSE 10.3 32 bit
root (hd0,5)
kernel /boot/vmlinuz root=/dev/sda6 vga=0x31a
initrd /boot/initrd

So my menu.lst is not messy, but properly configured, with exception of
windows section:
title Windows
rootnoverify (hd0,2) # Not good, it is used to tell GRUB not to check
# windows root which is (hd0,0), not (hd0,2)
chainloader (hd0,0)+1

New is:
title Windows
rootnoverify (hd0,0)
chainloader (hd0,0)+1

So there is bug in script that is creating/changing menu.lst.
I have to collect information and file bug report.

Now your menu.lst should be like this:
----------------------------------------------------------------------
PLAY (the one being used)
----------------------------------------------------------------------

# Modified by YaST2. Last modification on Wed Jan 23 19:32:57 UTC 2008
default 0
timeout 8
gfxmenu (hd0,7)/boot/message

title MAIN OpenSUSE 10.3
root (hd0,5)
kernel /boot/vmlinuz root=/dev/sda6 vga=0x31a
resume=/dev/sda5 splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name:
windows###
title PC-DOS
rootnoverify (hd0,0)
chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name:
linux###
title PLAY openSUSE 10.3
root (hd0,7)
kernel /boot/vmlinuz root=/dev/sda8 vga=0x31a resume=/dev/sda5
splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name:
floppy###
title Floppy
rootnoverify (fd0)
chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name:
failsafe###
title Failsafe -- openSUSE 10.3
root (hd0,5)
kernel /boot/vmlinuz root=/dev/sda6 vga=normal
showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0
edd=off 3
initrd /boot/initrd
----------------------------------------------------------------------
I hope this time without errors :-)

This will allow you to update kernel independently, and still everything
will work.

The same 'root (hd0,x)' can be used on system that has separate boot
partition with all kernel and initrd files that are listed in menu.lst for
each of boot options.

For 2 separate installations that use own /boot 'root (hd0,x)' should point
to place where relevant /boot directory is located, and that means it will
be different for each boot option and point to the same place where points
another root=/dev/sdax which is information for kernel where to look for
root of file system.
------------------

I hope that explanation makes sense.


Yes - It makes perfect sense. I still have a backup menu.lst in each
partition with symlinks that I copy to the working menu.lst in each
partition BECAUSE a kernel upgrade via YOU writes a precise kernel
file and makes the reference to root(hd0,x) the same as the upgraded
partition. This is what you saw as the possible "bug." It is
probably only a "bug" to those like us who have two (or more) SuSE
installations on the same computer and boot from MBR.

DIGRESSION: Before this installation I used OS/2 Boot Manager and it
pointed to the /boot of each installation with no problems. However,
it seems that after I installed GRUB on the MBR no matter how I tried
to get OS/2 Boot Manager to install on this 250 GB drive, it would
not. I used a rescue disk to reclaim the MBR, DOS, Even Win2000, but
OS/2's Boot manager would say it was installed and show it in the
LVM.EXE partitioning software. However, at reboot, the screen went
black and BIOS lost the HD.
In any case, I now understand GRUB a bit better and am using it on
the MBR with the precautions we have discovered.
Thanks,
Paul

--

.



Relevant Pages

  • fixing grub : mbr fix when windows install after linux
    ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
    (comp.os.linux.misc)
  • Re: XP reinstallation woes on Multiboot system
    ... original installation a breeze.Was I ever wrong! ... I mean the moment the yellow progress bar in Setup is Copying Files ... You need to be *very* quick to catch it, if you want to Boot into any ... & what Partition are you choosing to do the Install onto? ...
    (uk.people.silversurfers)
  • Re: microsoft xp unable to log on
    ... separate partition and try copying your data from your current setup to the ... Assuming your system is set to boot from the CD-ROM drive, ... To Repair a Windows XP Installation using Recovery Console press R. ... can delete, create and format partitions. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Partition Issue
    ... question is how to combine hdb into a single partition. ... I use 16 GB for 10.0 installation, and 5 GB is still free, and there is a ... Than you have boot loader grub that has it's own pointers listed ...
    (alt.os.linux.suse)
  • Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesnt work
    ... grub is installed on the /root partition, which is the first partition on hdc: hdc1, or in grub notation. ... Stage1 is the unpatched 512-byte file, that is patched and copied to the boot record during setup. ... This byte is initialized to 0xff in the stage1 file, but patched to 0x81 in your setup, to say "we are booting from disk." ...
    (comp.os.linux.setup)