Help with GRUB

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
Harryc
Moderator Emeritus
Moderator Emeritus
Posts: 13228
Joined: Thu Apr 12, 2007 8:23 am
Location: Upstate New York

Help with GRUB

#1 Post by Harryc » Tue Dec 18, 2007 7:40 pm

Can someone who is running GRUB on the MBR of their boot drive please post their /boot/grub/menu.lst. I am looking for a menu.lst that has an entry for the recovery partition, which I believe is called 'IBM Service partition' in the boot menu (or something like that). I am trying to recreate that boot entry which got lost the last time I installed Linux. Thanks!

tarvoke
Junior Member
Junior Member
Posts: 273
Joined: Sun Mar 25, 2007 12:45 pm
Location: Slightly Outside America

#2 Post by tarvoke » Wed Dec 19, 2007 3:25 am

none of my machines has anymore recovery partition, so I can't offer 100% positive answer.

but this looks right to me and is more or less what I was going to suggest off the top of my head before double checking vs google:
http://www.thinkwiki.org/wiki/Talk:Resc ... _from_GRUB

Code: Select all

parttype (hd0,1) 0x0b
title           IBM Rescue and Recovery
root            (hd0,1)
chainloader     +1
of course that assumes the service partition is 2nd on the disk (I think on my x61 it was actually first?! hd0,0) and that it is fat32 (type b; apparently this may be needed if r&r had set its partition to a fake/wrong type to prevent windows from seeing it) -- ymmv. also it can't hurt to use rootnoverify instead of just root, when dealing with windows.
go away.

Harryc
Moderator Emeritus
Moderator Emeritus
Posts: 13228
Joined: Thu Apr 12, 2007 8:23 am
Location: Upstate New York

#3 Post by Harryc » Wed Dec 19, 2007 4:46 am

tarvoke thanks. That entry boots into Vista, so it must fail then default into it. Here's some additional information;

Code: Select all

linux-u0jq:/home/harryc # fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf858f479

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         862     6915072   27  Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2   *         862       10528    77648760    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3           10528       19457    71723024    f  W95 Ext'd (LBA)
Partition 3 does not end on cylinder boundary.
/dev/sda5           10528       10789     2095424   82  Linux swap / Solaris
/dev/sda6           10789       13401    20978968+  83  Linux
/dev/sda7           13401       19457    48648568+  83  Linux

Disk /dev/sdb: 1037 MB, 1037615104 bytes
256 heads, 32 sectors/track, 247 cylinders
Units = cylinders of 8192 * 512 = 4194304 bytes
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         248     1013279+   4  FAT16 <32M

Code: Select all

linux-u0jq:/home/harryc # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Sun Dec 16 16:39:13 EST 2007
default 3
timeout 8
gfxmenu (hd0,5)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title Debug -- openSUSE 10.3 - 2.6.22.13-0.3
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.22.13-0.3-debug root=/dev/disk/by-id/scsi-SATA_FUJITSU_MHW2160_K10FT7A263U1-part6 vga=0x31a resume=/dev/sda5 splash=silent showopts
    initrd /boot/initrd-2.6.22.13-0.3-debug

###Don't change this comment - YaST2 identifier: Original name: linux-2.6.22.13-0.3-default###
title openSUSE 10.3 - 2.6.22.13-0.3
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.22.13-0.3-default root=/dev/disk/by-id/scsi-SATA_FUJITSU_MHW2160_K10FT7A263U1-part6 vga=0x31a resume=/dev/sda5 splash=silent showopts
    initrd /boot/initrd-2.6.22.13-0.3-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3 - 2.6.22.13-0.3
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.22.13-0.3-default root=/dev/disk/by-id/scsi-SATA_FUJITSU_MHW2160_K10FT7A263U1-part6 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
    initrd /boot/initrd-2.6.22.13-0.3-default

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

###Don't change this comment - YaST2 identifier: Original name: recovery###
    parttype (hd0,1) 0x0b
title           IBM Rescue and Recovery
    root            (hd0,1)
    chainloader     +1

tarvoke
Junior Member
Junior Member
Posts: 273
Joined: Sun Mar 25, 2007 12:45 pm
Location: Slightly Outside America

#4 Post by tarvoke » Wed Dec 19, 2007 7:49 am

in that case it seems mostl likely to be hd0,0 (since it has a weird type listed) ...or otherwise hd0,2

hd0,1 from your fdisk output, looks to be where vista lives.
go away.

Harryc
Moderator Emeritus
Moderator Emeritus
Posts: 13228
Joined: Thu Apr 12, 2007 8:23 am
Location: Upstate New York

#5 Post by Harryc » Wed Dec 19, 2007 8:35 am

Thanks, this worked -

title IBM Rescue and Recovery
rootnoverify (hd0,5)
chainloader (hd0,0)+1

carbon_unit
Moderator Emeritus
Moderator Emeritus
Posts: 2988
Joined: Sat Apr 24, 2004 9:10 pm
Location: South Central Iowa, USA

#6 Post by carbon_unit » Wed Dec 19, 2007 9:23 pm

Here is what my R61 has at the end of menu.lst:

Code: Select all

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Thinkvantage Rescue & Reovery
root		(hd0,0)
savedefault
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title		Windows Vista Ultimate
root		(hd0,1)
savedefault
makeactive
chainloader	+1
But I am running a ubuntu derivative.
T60 2623-D7U, 3 GB Ram.
Dual boot XP and Linux Mint.
Registered linux user #160145

Harryc
Moderator Emeritus
Moderator Emeritus
Posts: 13228
Joined: Thu Apr 12, 2007 8:23 am
Location: Upstate New York

#7 Post by Harryc » Wed Dec 19, 2007 9:28 pm

Thanks Carbon_Unit. I think what you have in menu.lst and what I posted are functionally equivalent in GRUB.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 2 guests