Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grub problem 1

Status
Not open for further replies.

supership

Technical User
Dec 19, 2009
15
0
0
IT
hi , was using solaris in dual boot with xp , then I ' ve installed ubuntu too . The solaris grub has been in some way damaged , maybe because during the linux installation i've delete an old partition that I was not using by some months. It's normal that the solaris grub has been overriden by the linux one , the problem is that when I start the solaris partition throught the linux grub , I obtain the Minimal bash-like line of the grub , just like this:

grub >

to start the solaris partition from here I've to execute these commands:

root (hd0,1,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
boot

anyone knows what file or configuration should I modify to make solaris start without doing all this work?
 
In a Solaris grub menu those options (except for boot) would show up in /boot/grub/menu.lst... I would assume that the grub menu.lst being used now should have seperate sections (with the appropriate entries) for XP, ubuntu and solaris...
 
I've never worked with grub before , so I really have no practice with, maybe it can help if I post my grub file . This the linux grub file


#######################################################
title Ubuntu 8.10, kernel 2.6.27-17-generic
uuid 30e9afcb-fa30-48ce-b612-9b4a4fcbe2fb
kernel /boot/vmlinuz-2.6.27-17-generic root=UUID=30e9afcb-fa30-48ce-b612-9b4a4fcbe2fb ro quiet splash
initrd /boot/initrd.img-2.6.27-17-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-17-generic (recovery mode)
uuid 30e9afcb-fa30-48ce-b612-9b4a4fcbe2fb
kernel /boot/vmlinuz-2.6.27-17-generic root=UUID=30e9afcb-fa30-48ce-b612-9b4a4fcbe2fb ro single
initrd /boot/initrd.img-2.6.27-17-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 30e9afcb-fa30-48ce-b612-9b4a4fcbe2fb
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=30e9afcb-fa30-48ce-b612-9b4a4fcbe2fb ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid 30e9afcb-fa30-48ce-b612-9b4a4fcbe2fb
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=30e9afcb-fa30-48ce-b612-9b4a4fcbe2fb ro single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid 30e9afcb-fa30-48ce-b612-9b4a4fcbe2fb
kernel /boot/memtest86+.bin
quiet

### 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 Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1


title Solaris 10
root (hd0,1)
chainloader +1
makeactive
######################################################


and this is the solaris grub file

#######################################################

#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris 10 10/09 s10x_u8wos_08a X86
findroot (rootfs0,2,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
#---------------------END BOOTADM--------------------
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris failsafe
findroot (rootfs0,2,a)
kernel /boot/multiboot kernel/unix -s
module /boot/x86.miniroot-safe
#---------------------END BOOTADM--------------------

title Windows
rootnoverify (hd0,0)
chainloader +1

# Unknown partition of type 131 found on /dev/rdsk/c0d1p0 partition: 2
# It maps to the GRUB device: (hd0,1) .
#########################################################


as I said when I boot the solaris entry in the linux grub it appears a sort of grub prompt with the " grub >" command line. From what I could understand , when I enter the solaris entry from the grub , the solaris partition it loaded, but the solaris grub installed in it is damaged?may it be? if so , is there a way to reinstall the grub on the solaris partition , WITHOUT override the linux one? I saw the setup command in the listed ones , but not sure of what it really does. I hope I've not been confusing in the explanation.
 
You see how the Solaris entry in the linux grub menu is missing the kernel, module and boot commands? Those are the items that should be added (similar to how it is in the solaris grub file)...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top