LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-25-2006, 02:44 PM   #1
whoomjah
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Rep: Reputation: 0
Suse 10/Windows Boot Problem


I successfully loaded Suse 10 on a SATA HD. The install saw that I had XP on another IDE HD, and I was able to happily use GRUB to boot to either Suse 10 or XP with no problems.

I got a beta version of Windows Vista and installed it on a partition on another IDE HD. After this, I lost GRUB---so, I reinstalled Suse 10 on the SATA HD. I got GRUB back, but I can't boot to either XP or Vista. For the Windows OSes, GRUB gives me two choices: "windows1" and "windows2". When I choose either one of them, I just get this message with blinking cursor: "chainloader (hd0,0)+1" Any suggestions?
 
Old 02-25-2006, 04:25 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Just reinstalling grub (from a rescue-CD) would have been sufficient - since windows overwrites the MBR when you install it...
you could post the output of these commands:
fdisk -l
and also the partition table from the other hd (sdb ? sdc ? - I don't know which it is)
cat /boot/grub/menu.lst
or
cat /boot/grub/grub.conf
(maybe just one of these exist on your system...)
 
Old 02-26-2006, 01:53 AM   #3
whoomjah
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Here are results of fdisk -l:

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4864 39070048+ 7 HPFS/NTFS

Disk /dev/hdb: 120.0 GB, 120034123776 bytes
240 heads, 63 sectors/track, 15505 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1628 12307648+ 7 HPFS/NTFS
/dev/hdb2 1629 15505 104910120 f W95 Ext'd (LBA)
/dev/hdb5 1629 4474 21515728+ b W95 FAT32
/dev/hdb6 4475 7726 24585088+ b W95 FAT32
/dev/hdb7 7727 15505 58809208+ b W95 FAT32

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 129 1036161 82 Linux swap / Solaris
/dev/sda2 * 130 12161 96647040 83 Linux

Here are results of fdisk -1 for /dev/sda:

linux:~ # fdisk -l [-b SSZ] [-u] /dev/sda

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 129 1036161 82 Linux swap / Solaris
/dev/sda2 * 130 12161 96647040 83 Linux
linux:~ #

Hope this helps...Thanks.
 
Old 02-26-2006, 02:16 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
nope - it doesn't - its just the half of it...(your grub configuration-file is missing...)
cat /boot/grub/menu.lst
and: what OS is on which disk again?
 
Old 02-26-2006, 07:50 AM   #5
whoomjah
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Here are the results of running the two commands you posted up:

whoomjah@linux:~> su -
Password:
linux:~ # cat/boot/grub/menu.lst
-bash: cat/boot/grub/menu.lst: No such file or directory
linux:~ # cat/boot/grub/grub.conf
-bash: cat/boot/grub/grub.conf: No such file or directory
linux:~ #



Here are the location of the OSes:

/dev/hda1 Windows XP

/dev/hdb1 Windows Vista

/dev/sda2 SUSE 10

/dev/sda1 Swap file for SUSE 10
 
Old 02-26-2006, 08:04 AM   #6
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
It is just not possible that there is no grub.conf or menu.lst
You use grub to boot - and it works - therefore there IS a config-file.
Maybe you have a separate /boot partition - which was not mounted when you issued these commands?
There has to be a directory /boot and therein is your kernel as well as another directory
named grub - and in this directory are grub's files and the config-files

I just saw it - might have been a typo on your answer:
cat/boot/grub/grub.conf is wrong (space missing)
cat /boot/grub/grub.conf is working...
 
Old 02-26-2006, 09:24 AM   #7
whoomjah
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Very sorry...I'm new to a lot of command line stuff...I didn't have the space after cat.

Here are the results:

Password:
linux:~ # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Sat Feb 25 19:20:05 CST 2006

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd2,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
root (hd2,1)
kernel /boot/vmlinuz root=/dev/sda2 vga=0x317 selinux=0 resume=/dev/sda1 splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows 1###

title windows 1
chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###

title windows 2
chainloader (hd1,0)+1

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.0
root (hd2,1)
kernel /boot/vmlinuz root=/dev/sda2 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd
linux:~ #
 
Old 02-26-2006, 09:54 AM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
I suggest you do the following (commands - as root):

cp /boot/grub/menu.lst /boot/grub/menu.lst-backup
mind the spaces
This copies the file to menu.lst-backup - that way you will always have the original, which works to boot suse...
then you copy+paste this changed config-file into /boot/grub/menu.lst - so you have this one instead of the old one.
Or you edit in the changed things by hand...use "mc" which is a file-manager with everything built in (F4 lets you edit the file currently selected) or "nano" or "vi" or any other text-editor you like.

It is in a way self-explanatory:
the hide - unhide lines make one windows invisible to the other - because this _could_ cause problems
the "rootnoverivy" lines instruct grub not to try to mount the partition like it does when encountering the "root" statement (present in the entries to boot linux)

Give it a try - the Suse sections are unchanged - so it will still work at least as it was - if not better - which I hope


Code:
#----- start of changed menu.lst ------------

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd2,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
root (hd2,1)
kernel /boot/vmlinuz root=/dev/sda2 vga=0x317 selinux=0 resume=/dev/sda1 splash=silent showopts
initrd /boot/initrd


title Windows XP
unhide (hd0,0)
hide (hd1,0)
rootnoverify (hd0,0)
chainloader +1


title Windows Vista
unhide (hd1,0)
hide (hd0,0)
rootnoverify (hd1,0)
chainloader +1


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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.0
root (hd2,1)
kernel /boot/vmlinuz root=/dev/sda2 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd

#----- end of changed menu.lst ------
-edit-
Sorry - I made a typo myself:
rootnoverivy needs to be rootnoverify

changed it...

Last edited by jomen; 02-26-2006 at 10:29 AM.
 
Old 02-26-2006, 11:10 AM   #9
whoomjah
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, but I am a newbie....

I'm still confused on exactly how to edit the menu.lst file. I log in as root, but get permission denied. I'm not familiar with the other editors...

Please explain again
 
Old 02-26-2006, 11:29 AM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
With which editor are you familiar?
And how (where) do you read this post? I thought you could just copy+paste it, but maybe not...
You run suse - are you just on console or are you using gnome or kde or another graphical desktop?
What do you mean by:
Quote:
I log in as root, but get permission denied
? What and where are you doing to get this message?
 
Old 02-27-2006, 11:34 AM   #11
whoomjah
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Hey...thanks...I figured out how to use kwrite to copy and paste what you wrote...

It worked perfectly!!!!!

Thank you so much!!!

Take care.
 
Old 02-27-2006, 12:11 PM   #12
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
nice ...anytime when there is time...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dual boot windows xp and suse linux 9.0 partitioning problem spodops Linux - Newbie 3 10-31-2004 03:38 PM
Boot Linux Suse using boot.ini from Windows XP theewolizer SUSE / openSUSE 10 10-21-2004 01:11 PM
SUSE 9 Windows dual boot problem jds62f Linux - Newbie 4 09-09-2004 09:17 PM
problem using grub/lilo to boot windows with suse 9.1 jcasanue Linux - Distributions 5 07-14-2004 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration