dual boot - Grub won't boot Windows on /windows/D partition
Suse/NovellThis Forum is for the discussion of Suse Linux.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
dual boot - Grub won't boot Windows on /windows/D partition
I installed SuSE 10.0 on a system running Windows 2003 Server. The SuSE install shrunk the Windows data partition and installed on the same drive. The problem is that, as Windows does sometimes where you delete the system partition and reinstall it swapped the partitions so the Windows system is actually in /windows/D (hda5) not /windows/C (hda2). If I go into YaST -> System -> Boot Loader -> Other and try the 'Purpose New Configuration' it selects /dev/hda2 which doesn't boot. I have reset it to /dev/hda5 but I get the ntoskernel.exe file missing error.
How can I change my GRUB entry to correct point to the right partition? My boot.ini and other boot files are on /hda2 but the system is on /hda5. All the files are still there. It currently looks like this when the boot loader in YaST is set to boot from /dev/hda5-
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
kernel /boot/vmlinuz root=/dev/hda4 vga=0x31a selinux=0 resume=/dev/hda3 splash=silent showopts
###Don't change this comment - YaST2 identifier: Original name: windows###
Thanks. I tried that it reads chainloader (hd0,1)+1 but I get this error, Windows could not start because the following file is missing or corrupt <windows root>\system32\ntoskrnl.exe. Please reinstall the file.
I think the problem is that this file/location \system32\ntoskrnl.exe is on the hda5 partition instead of the hda2 partition. Is there a way I can point/link this?
Don't take my word as being gospel. It just seems to me that it is trying to boot off the correct drive and encountering an error with one of the windows files.
If I were in your position I might have repaired the Windows installation, knowing this would destroy the GRUB entry. I'd then boot into Windows to see if that works. Then I would boot off the SUSE install CD and re-install GRUB from there. Taking care to make the modifications above. This is on the assumption that XP Pro and Sever 2003 would work the same.
Thanks. That sounds like a good way to go. <<edit>> I think the problem might be in the boot.ini file, it lists the windows partition(2), but after the SuSE install I think it's now on partition(5). I've tried to edit the boot.ini file with Kwrite but it won't save changes. Do you/anyone know how to edit the boot.ini file from linux?
Since I couldn't figure out how to edit the boot.ini file with the other methods, I pulled the drive out and put it in one of my other Windows machines. I changed the entry from the original partition(2) first to partition(5). That still didn't work, so I tried partition(4) and boom it booted!
Thanks to everyone who offered suggestions. Now if I can figure out how to add my empty 120gb drive to SuSE I may be in business.
Let's say you now have Suse on one partition. You could partition and format the 120G for /home, /usr, and, just for kicks, a /data partition.
Make appropriate edits to /etc/fstab to show the device (partition), and what's to be located there. ie, /dev/hdb1 /home, /dev/hdb2 /usr, /dev/hdb3 /data.
If the /data directory doesn't exist in your file structure, create it (as root): cd /; mkdir /data.
Then move the contents of /home from its present location to /dev/hdb1; move /usr to /dev/hdb2, etc.
After doing that, repartition the first hard drive to make a small partition for /boot, leaving the rest to / (root of the filesystem).
That way, if anything goes awry due to improper shutdown (such as power outage) which could corrupt some part of the filesystem needed for boot to GUI, the /boot partition is intact with a bootable image which can get you to command-line mode to fix things.
Just my 2 cents, for what they're worth.
Last edited by bigrigdriver; 04-08-2006 at 09:16 PM.
Wow bigrigdriver, I've read your email 3 times and am still not sure I understood what you said
Are you saying if I create these partitions and directories I can effectively move my SuSE install from the current drive to the other drive (leaving the boot/GRUB process where it is)? That would be cool, then I could reclaim the 10gb the SuSE install took from the Data partition on the first drive. Also, if I move the SuSE info would I still be able to update to 10.1 without issues when that comes out in a couple weeks?
Problem is I have never partitioned or created directories in Linux so if you could 'walk me through' the how tos of what you said that would be great. If not I need to find a beginners guide for doing these kind of tasks especially if they're done by command line. Also, do you/anybody recommend a book like SuSE Unleashed or The SuSE 10 Bible, etc.??