LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Vista/OpenSUSE 10.2 Grub Error message... (https://www.linuxquestions.org/questions/linux-software-2/vista-opensuse-10-2-grub-error-message-515453/)

lonecrow 01-01-2007 08:08 PM

Vista/OpenSUSE 10.2 Grub Error message...
 
Hello Everyone,

I have installed Vista AFTER installed openSUSE 10.2 (I know it is stupid) but anyways I wanted to re-install grub afterward so I thought I would not have any problem. I was wrong. Grub gives me this error when I try to re-install it

Code:

grub> root (hd0,1)
 Filesystem type unknown, partition type 0xf

Here is my partition table:

Code:

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        2167    17406396    7  HPFS/NTFS
/dev/sda2            5822      12161    50926050    f  W95 Ext'd (LBA)
/dev/sda3            2168        5821    29350755    c  W95 FAT32 (LBA)
/dev/sda5            5822        6076    2048256    b  W95 FAT32
/dev/sda6            6077        6270    1558273+  82  Linux swap / Solaris
/dev/sda7            6271        7837    12586896  83  Linux
/dev/sda8            7838      12161    34732498+  83  Linux

Im a little bit confused, because when I use YAST to reinstall grub, it tells me that the disk doesnt exist, and quits. Now I boot my openSUSE with the cd, but it is kinda annoying...

Thanks as usual!!!

linuxles 01-02-2007 12:41 AM

If you can boot your OS with the CD, then you are half way there.

Run "cat /boot/grub/menu.lst". If everything looks right, you can
write grub to the boot sector with the following. Make note of the
correct "root (hd0,*)" value as shown in the menu.lst file and use
it. -- By the looks of your partition table, the linux root partition
is sda7, which would be: (hd0,6)

# grub
grub> root (hd0,6)
grub> setup (hd0)
grub> quit
#

Now reboot...

Note: You'll also need to add the grub windows boot stanza into
menu.lst, to be able to boot it as well..

/Les

gkiagia 01-02-2007 04:08 AM

You might want to try this: http://www.linuxquestions.org/questi...d.php?t=464296

I suspect that vista has a slight different way of booting and it needs tricks like that.

lonecrow 01-03-2007 08:14 PM

Thanks linuxles, it worked wonder!!! I am just wondering though, why I had to install grub on my /sda7 when the computer boots Vista by default... I thought I had to install grub on the windows parti.... But it doesnt make sense since it's NTFS not ext3... This is why it told me it didnt recognize the filesystem... ahhhh Im gonna do a little bit of reading on MBR stuff :P

Thanks very much!

linuxles 01-05-2007 07:30 PM

You didn't install it on sda7, you installed it on the boot sector of sda,
and told it to find the compressed linux kernel on sda7. In effect grub is
looking for where to find vmlinuz. If you run "locate vmlinuz", you will
find that it exists in the /boot directory. On my system boot is it's own
partition, so it looks for it in the boot partition, which is hda1 or (hd0,0).
On your system (since you don't have a seperate boot partition) it looks
for it in in the root partition which is sda7 or (hd0,6). The first partition
is always 0, so sda2 would be (hd0,1), sda3 = (hd0,2) and so on...

HTH,
/Les

lonecrow 01-06-2007 10:42 AM

ok I see... You just confirm what I thought in the first place. Thanks :P


All times are GMT -5. The time now is 04:08 AM.