LinuxQuestions.org
Review your favorite Linux distribution.
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-06-2007, 11:53 AM   #1
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Rep: Reputation: 15
unable to boot windows after installing suse 10.2


hi, I installed suse 10.2 and after that I am not able to boot windows. At start I get an option to choose from the following:

Suse 10.2
Windows
Fail Safe.

If I select windows windows starts booting but the login screen doesn't appear. It gets stuck.

This is the contents of my /etc/grub.conf
Code:
setup --stage2=/boot/grub/stage2 (hd0,2) (hd0,2)
quit
~
please help!
 
Old 02-07-2007, 05:34 AM   #2
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
Not sure what happenede here but don't panic you don't have to re-install Windows (assuming when you installed SUSE you didn't partition the WHOLE disk wiping windows off it.

Load the Windows install CD and boot from it.
After it intializes use the Recovery Console.
You should get a C:\Windows prompt when the console is enabled. If Windows is on another disk you'll see D:\Windows or whatever.

Now type FIXMBR and follow the instructions.

Now we haven't finshed yet as this will just ensure you can boot Windows only just like you did before installing SUSE.

Boot your SUSE install disk and at installation type choose OTHER.
Then select REPAIR system and follow the instructions.
What you need is the bit which re-installs GRUB but just follow through the on screen instructions.

Reboot - you should find your Windows and Linux boot options back again.

I'd recommend this rather than trying to fix GRUB manually especially if you are dual booting with Windows XP.

Cheers

-K
 
Old 02-07-2007, 09:09 AM   #3
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Original Poster
Rep: Reputation: 15
Thanks a lot! But I don't have a windows install cd. I just got eight recovery discs.If I use them it formats the entire hard disk and installs windows with some additional software. Is there any solution?
 
Old 02-07-2007, 11:49 AM   #4
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
You need to reset the MBR -- Google and see if there are any other tools to do this --you really do need the Windows install CD's again.

I HATE the computers where you get a Pre-install Windows but no Windows disks. HP are about the only people who still give you a Windows install CD.

Maybe you can borrow one --you don't need the serial number to enter the recovery console.

Supplying a Computer without the Operating System install Disk should be made a PUBLIC FLOGGABLE Offence.

You MUST use a Windows 2000 or Windows XP install disk. Doing it from an old DOS disk won't work

Cheers
-k
 
Old 02-07-2007, 01:02 PM   #5
cueman
Member
 
Registered: Oct 2006
Location: Scottsdale, Arizona
Distribution: openSUSE 10.2
Posts: 197

Rep: Reputation: 30
Quote:
Originally Posted by 1kyle
You need to reset the MBR -- Google and see if there are any other tools to do this --you really do need the Windows install CD's again.

I HATE the computers where you get a Pre-install Windows but no Windows disks. HP are about the only people who still give you a Windows install CD.

Maybe you can borrow one --you don't need the serial number to enter the recovery console.

Supplying a Computer without the Operating System install Disk should be made a PUBLIC FLOGGABLE Offence.

You MUST use a Windows 2000 or Windows XP install disk. Doing it from an old DOS disk won't work

Cheers
-k
I have actually been successful doing this with just a windows 95/98 boot floppy disk.

After booting to the disk, run:

fdisk /mbr

This is an undocumented feature on the disk, but it does work. You can google 'fdisk /mbr' for more info. I believe it does the same thing as 'fixmbr' from the recovery console.
 
Old 02-08-2007, 10:47 AM   #6
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Original Poster
Rep: Reputation: 15
okay, will try! Thank you!
 
Old 02-10-2007, 05:20 AM   #7
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Original Poster
Rep: Reputation: 15
I have found the problem. Suse has thought that my D drive(my windows was earlier installed in C:, the second primary partition of my hard drive)contained the windows OS. D: was my first primary partition. Suse has fixed the GRUB to boot from my first parition (D). Thats why my windows didn't boot! I did "FIXMBR" procedure with my friend's windows CD and it didn't work. So I used the repair option in it. Now after booting I find that I have a all the Windows folders(WINDOWS,Program Files..etc.,) in my first primary partition itself. So I have two copies of windows now. But my MBR is set to boot from the first partition which I had been using to store data earlier. I found all this after trying the repair option.

This is my hard disk partition details according to Norton Partition Magic:
Code:
Partition        type       status   pri/log
Local Disk (C:)  fat32      none     Primary
HP_PAVILION(D:)  ntfs       Active   Primary
/(*:)            Linux ext3 none     Primary
(*)              extended   none     Primary
SWAPSPACE2(*:)   Linux Swap none     Logical
How can I set my MBR to boot from the ntfs partition(my earlier windows).Currently I am working in the one installed in the fat32 partition. Many programs are not working.

Is there any way to get my system back to the original state? Can I delete the folders that were created in the fat32 partition by just deleting it and telling MBR to boot from my ntfs partition?


Thank you!

Last edited by Carunkumar; 02-10-2007 at 05:24 AM.
 
Old 02-10-2007, 05:49 AM   #8
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
Looks like you've got yourself into a little mess here.

Am I right in thinking that 'D' NTFS is where your original Windows is.

If so do the following.

1) Optain the LiveCD of GPARTED - an EXCELLENT FREE tool. Just Google for it.
2) Boot it up
3) Delete All Partitions except 'D'. Ensure 'D' is set to ACTIVE and is a Primary partition
4) resize 'D' to fill the whole disk (not 100% necessary but it makes life simpler --you can always re-partition it again afterwards)

WARNING DO NOT RE-FORMAT D AFTER RE-SIZING

5) exit GPARTED
6) FIX MBR
7) Boot Windows.

Note Windows doesn't like 2 Primary partitions on the same Disk. Linux doesn't care but Windows gets its knickers in a twist in this case (or at least it certainly used to).

I'd still try and get hold of a Windows 2000 or XP CD for fixing the MBR.

I'm suprised the version off the Win 98 dos disk actually worked as the MBR and boot sector (trk 0) is different for W2K and WinXP than W98/W95.

Cheers

-K

Last edited by 1kyle; 02-10-2007 at 05:55 AM.
 
Old 02-10-2007, 06:11 AM   #9
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Original Poster
Rep: Reputation: 15
Yeah the Current D: is where my original windows is.

I forgot to give the details of my MBR. Thought this will be helpful for me to give details more precisely. I used MBRWiz to view it.
Code:
Disk:0 Size=38G
pos  MBRndx  Type/Name  Size  Active  Hide  Start Sector  Sectors
___  ______  _________  ____  _______ ____  _____________ ________

 0    0      0C-FAT32X   11G   NO      NO    63            22201767 
 1    1      07-NTFS     YES   YES     NO    22201830      35214480
 2    2      83-LINUX    9.2G  NO      NO    57416310      18876375 
 3    3      0F-EXTEND   909M  NO      NO    76292685       1863540
It seems that my ntfs partition is set to active. But then I am confused why my FAT parition gets booted! Can't a logical partition be active?

And am I right in thinking that if I do the procedure you instructed me I wouldn't lose the softwares which were installed in the ntfs drive? Can I do the same things using Norton Partition Magic? I asked this because I already have norton parition magic.

Thanks

Last edited by Carunkumar; 02-10-2007 at 06:16 AM.
 
Old 02-10-2007, 01:15 PM   #10
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
Fixing Windows boot problems

XP likes to be on the first partition. If it isn't, then the bootloader has to fool it. With a lot of XP OEM installs the first partition is a set of recovery files, which can get your system back to the original state. It also has the XP bootloader info. If this gets trashed then you will get a least a broken bootloader, and at worst a broken FAT.

This post has help on fixing GRUB, and at the bottom of it are links to the GRUB wiki & Howto.

If your Partition Magic is new, then it may have better NTFS support than GParted. I've used GParted 3.3.0 to resize NTFS partitions and it worked OK.

I suspect you don't need to resize or reformat anything. This is very like the problem I had with my dual boot laptop when the XP partition wouldn't boot. The recovery disk did what I thought was a reinstall using the files on recovery partition, but in fact it installed a new version of XP on the recovery partition and blew all the files away!

My Suse is on hda4, so that has the boot flag set, and GRUB is installed on the boot partition of hda.

If you can restore the MBR and get Windows booting OK, then you just need to re-install GRUB and all should be well. Famous last words!
 
Old 02-10-2007, 09:20 PM   #11
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Original Poster
Rep: Reputation: 15
I think I was wrong in thinking that my system is being booted from FAT32 since I find nothing in the directory Windows in fat32 drive except for a few small files. Sorry, I made a big mess. My windows is booting but the I think the sofwares aren't working because repairing the os deleted the registry entries and everything. But I don't understand why certain softwares still work

when I googled up I found in one page that the active partition, that is the bootable one if i am right, is required only for windows boot loader. For Grub, is boot flag necessary? Or setting boot flag for grub just means we are telling grub that there is a bootable os in it? Am I right in thinking that boot flag makes the partition active and there can be only one active partition if we are using windows boot loader?

I'll report back once I get back my system to good condition


Thanks for the help and links
 
Old 02-15-2007, 08:38 AM   #12
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Original Poster
Rep: Reputation: 15
I took back up and reinstalled windows and used gparted to move my ntfs partition and I failed twice. Then I installed windows using hp recovery discs. The first fat partition is for recovery files and second ntfs partition was active and contained the windows. I installed ubuntu in the first primary partition formatting it as two logical drives(one for root and other for swap) and set the boot flag. Now I lost my windows again . Where would have been my windows boot loader earlier? In the partition which is set as active or the beginning of the hard drive itself? And am I right in thinking that the grub will be in the /boot directory under '/'??

Thank you!
 
Old 02-17-2007, 10:33 PM   #13
Carunkumar
Member
 
Registered: Sep 2006
Location: chennai
Distribution: fedora core 8
Posts: 106

Original Poster
Rep: Reputation: 15
I have successfully installed both linux and windows now. But my linux is only in my first primary partition.But I am still confused with mbr. .

Thank you everyone for helping me fix up my computer.


-Arunkumar C
 
Old 10-06-2007, 11:47 AM   #14
sickley
LQ Newbie
 
Registered: Oct 2005
Location: Pottstown, Pa
Distribution: openSuse 10.2 (x86_64)
Posts: 11

Rep: Reputation: 0
maybe you can help me too?

i have a question relevant to this thread; i currently have suse 10.2 installed, i also had winxp installed alongside and everything boots ok. however my xp installation has been taken hostage by a virus (suprise? haha...) and i was going to format that hardrive (i am using different drives for each OS) out and install vista, but i want to keep my suse isntallation. can i just install vista and then load my suse install cd and reinstall grub without having to do anything manually in terminal? i'd like to do this the easiest way of course. thanks for any help anyone can provide

here's a short layout of how my hard drives are mounted, each one is not just a seperate partition but a seperate drive entirely

/dev/hda1 winxp c drive
/dev/hdb1 winxp d drive
/dev/hdd1 winxp e drive
/dev/sda2 suse /
/dev/sda3 suse /home
/dev/sdb1 external storage drive (currently ntfs)

Last edited by sickley; 10-06-2007 at 03:15 PM. Reason: providing extra information
 
Old 10-06-2007, 07:38 PM   #15
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Rep: Reputation: 33
It should be just as easy as reinstalling Windows, and then using your SuSE CD or DVD to use the recovery tools to reinstall grub after you have installed Windows. I've just done something similar where I had to reinstall the bootloader using the recovery tools on my openSuSE DVD, and it worked well for me.
 
  


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
Unable to boot Windows XP with suse 9.1 RKS SUSE / openSUSE 4 04-24-2006 02:40 PM
Need Help installing SUSE 9.1 Personal, after install and boot Windows boots krko Linux - Software 0 01-07-2005 08:26 AM
unable to boot windows XP Pro guffy Linux - Newbie 8 12-10-2004 12:31 PM
Unable to boot Windows XP with Grub Nightfox Linux - General 4 10-25-2004 11:28 AM
unable to boot windows 2000 hihat Linux - General 2 02-04-2004 01:19 PM

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

All times are GMT -5. The time now is 06:18 AM.

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