Grub problems after installing second hard disk and SuSE11.0
Suse/NovellThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Yes I agree I have always used a terminal to install grub to get the success messages but I am not sure our original
poster is happy with grub at the moment so I hope he can shed some light on his sdb setup.
I want HellesAngel to continue to use the sda bootloader or dice grub and go for lilo.
However, I can not help with lilo...but maybe opensuse scripts will stuff up lilo as well?
I can hang around here for half an hour and see if OP has any more info he can share.
grub> root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
grub> kernel /boot/
Error 2: Bad file or directory type
It does seem odd, I mean it's not such a weird disk combination or stone age equipment I found in the cupboard. The MSI865PE mainboard has the usual 2+2 PATA channels (all filled with CDROMs) and 2 SATA channels with the hard disks on them.
Will mount sdb1 and post the contents of /etc/fstab. Half a minute...
Edit: I did try LILO and it didn't boot just auto-configured by Yast (the openSUSE setup tool) so I'm strongly suspicious that Yast does not understand the sda/sdb configuration properly.
No problem, I'm trying to make progress while the wife's out! Since earlier posts I rebuilt sdb and it now contains the correct stuff:
sdb1 - full install of openSUSE 11.0.
sdb2 - empty space for all my /home stuff
I made the fdisk steps you suggested above - how would I see if that has made the difference? The disk is now bootable:
Code:
Command (m for help): p
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2611 20972826 83 Linux
/dev/sdb2 2612 60801 467411175 83 Linux
The swap space from fstab is on the other disk, it's confusing from the disk-by-id form.
Last edited by HellesAngel; 07-29-2008 at 10:33 AM..
ok did not realise that...but you should create a swap on sdb as I thought you might eventually get rid of sda linux.
500G might be better off with a few more partitions tho.
since you were so quick to do a clean install....can I talk you into at least 4 primary partitions or an extended system.
The trouble with lots of logical partitions is that info on each part is logically held in that part....which is why some
companies have tried to avoid the IBM limit of 4 primaries.
Leaping ahead....I would have
part 1 for MS
part 2 for linux 1
part 3 for linux 2
part 4 swap
and each linux is nice and large and install virtualbox on it so you can play around with downloaded distros.
if you are as naughty as me....I installed and ran vbox....then copies the dot folder to a spare partition and symbolically
linked it back to my old system....because I use partimage to save images but there is no need to image something that is
available to d/l and is already an image....well I am a cheap skate as well.
Thanks for the help - I think I just have to conclude that Grub cannot load openSUSE on a second disk sdb when configured by YaST and booted from sda and make another partition on sda for the openSUSE 11.0 installation. I feel defeated, but didn't switch to LILO...
Noticed that in your first post of the opensuse 10 menu.lst the 10 stanzas had root (hd0,2) while you had no such entries for the 11.0 partitions. Did you choose the default Grub installation when installing 11.0, i.e. installing Grub to mbr of sda1?
Yes, I let YaST do what it felt best but read it through and couldn't see any obvious errors. I've been through several iterations over the past few days...
It's really odd, I just can't think of any reason why this should not work and my motivation to spend much more time is running low...
Have you tried editing your menu.lst file in opensuse 10 to show root (hd1,0), in the line after title, before kernel? Might be worth a try? One of your more recent posts shows your vmlinuz and initrd files in the opensuse 11 on sdb1 so the necessary files are there to boot.
I generally don't have new installations put Grub in the mbr because something might go wrong. I think it is easier to just modify a current menu.lst I know is working rather than hope the new install detects all OS's on the system and makes entries. I know that doesn't always happen. Installing to the /boot directory of an installation of a new OS doesn't and modifying my current menu.lst seems easier, although some would disagree. The default in most installs is to install Grub to the mbr of disk 1.
No sure if the suggestion above will help, does get frustrating but we learn from all our efforts. Good Luck!
I spotted there was no sdb entry in the menu for sda.
but me thinks the saikee style might be the safest
bios boots to sda and uses grub for sda and menu from sda
sda menu is amended with root powers to have an extra line to boot sdb1
-------
title opensuse on sdb
root (hd1,0)
chainloader +1
-------
redo grub commands from within suse on sda to ensure its right
Code:
su (or sudo or whatever)
grub
root (hd0,2)
setup (hd0)
....response should have a number of lines including the word succeeded....so grub recognises sda grub in mbr and menu
for sda
root (hd1,0)
setup (hd1,0)
....response should be similar to other attempt but it puts grub into the root partition for sdb1
quit (to exit)
.......of course I am hoping Toby has successfully re-installed opensuse and the installer has put grub files into
sdb1 /boot/grub
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.