Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I was running vista on a sata drive and installed kubuntu on a new IDE(only ide device on the system.)
I have 2 sata drives, 1 with windows vista, and the other is just formatted for NTFS storage.
Now when the system boots, grub appears and there is no option to load windows, I have monuted several partitions in kubuntu to locate Vista and I have its located at /dev/sdc1/
Now Ive been reading loads of grub info and am totally lost??.
I have added the following to the bottom of the /boot/grub/menu.lst file.
Code:
### END DEBIAN AUTOMAGIC KERNELS LIST
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista
root (hd2,0)
makeactive
chainloader +1
I reboot the system - grub now shows windows vista option in the menu - I select it - screen changes to "starting now" and just hangs.
I havent a clue what I added to menu.lst but I did change
Code:
root (hd2,0)
from
Code:
root (hd0,0)
to indicate that vista was on the 3rd drive. as /dev/sda = hd0.0 in grub talk or something.
Im not sure where to go from here and anyhelp - links would be usefull.
Vista being the new operating system has its own boot manager. This creates a problem with an additional grub boot loader. Hope someone can tell us a solution to this problem.
There are also some discrepancies in this story, in the first sentence of the first post by lozza1978 we are told that Linux was installed on a ATA IDE interfaced drive, but in the second post, the output of fdisk -l does not show any ATA drives, only SCSI drives.
EDIT: Also, if Vista was installed and running first, you should have left the boot order in the bios the way it was, it appears the boot order has been changed to the NEW drive with Linux on it. This usually creates problems for Vista. The bios is not a boot loader, grub is, and it would have taken care of everything without problems when installed over top of Vista's boot loader in the MBR of the original disc set to boot in the bios. People always make this mistake because they don't want to overwright the Vista boot loader and attempt to put grub on another disc instead. It is easy to restore the MBR with the Vista installation disc just as it is easy to restore grub with a Linux intallation disc, there's no need to worry. Vista usually refuses to boot if it's boot loader is in an MBR and changes to the system have not been added to it.
Last edited by Junior Hacker; 05-19-2007 at 02:32 PM.
There are also some discrepancies in this story, in the first sentence of the first post by lozza1978 we are told that Linux was installed on a ATA IDE interfaced drive, but in the second post, the output of fdisk -l does not show any ATA drives, only SCSI drives.
I added a 3rd drive to the system, an 80gb IDE -Not sure why it shows up in fdisk as a SCSI? -
I have now edited /boot/grub/menu.lst,
Code:
title Windows Vista
root (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
makeactive
chainloader +1
Now when I boot this option I get NTLDR is missing press ctrl alt del to restart -
Am I actually getting some where with this or not?
The sdc does not always corresponding to the (hd2). The best way is to get the information directly from the horse's mouth --> Grub.
Why not activate a Grub shell in Linux and use the geometry command as follow
Code:
grub
geometry (hd0)
geometry (hd1)
geometry (hd2)
If Vista is indeed in (hd2) the it will have only one partition of Type 7 there.
The new Kubuntu, based on Ubuntu, is using kernel 2.6.20 that has abandoned the Pata/IDE disk names of hda to hdd and all future Pata/IDE disks are grouped under the SCSI/Sata/USB disk family using sda, sdb, sdc...etc.
My Vista certainly boots no different to a Dos or any other MS Windows. So the suggestion of
Code:
title Windows Vista
root (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
makeactive
chainloader +1
is sound to me if Vista is indeed in (hd2,0).
If you have any problem with it I would suggest the next cure is to tell the Bios to boot Vista disk first and use the Vista installation CD to restore its MBR inside its own disk, run it again to satisfy everything works, then use the Bios to put the Vista disk back to (hd2) position (3rd disk in the booting queue) and fire up Grub to boot it. The Vista's own MBR can remain inside its own disk.
A procedure to restore Vista's MBR is available in the Task B7 in the last link of my signature.
The sdc does not always corresponding to the (hd2). The best way is to get the information directly from the horse's mouth --> Grub.
Why not activate a Grub shell in Linux and use the geometry command as follow
Code:
grub
geometry (hd0)
geometry (hd1)
geometry (hd2)
If Vista is indeed in (hd2) the it will have only one partition of Type 7 there.
This bit of info was so vital - thanks dude, vista is on (hd2) and the type was 0x7, just as you said.
Next step was to remove all the harddrives and just leave the vista hard drive, I booted using the vista install DVD and run recovery. in the end I had to run recovery 3 times in total for vista to start up on its own without getting the NTLDR is missing. (At last - thanks again Saikee)
plugged my harddrives back in - booted up and grub loaded selected vista and bang - I now have a duel booting system.
This is my grub config to launch vista
Code:
title Windows Vista
root (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
makeactive
chainloader +1
I thought he was the "Bootmaster"--or "Doctor Boot"
Quote:
Originally Posted by saikee
I think Grub is a lot simpler and easier than many users give credit for.
GRUB IS simple and easy--once you know how....
Seriously, the real issue here is that you can go years on a Windows system and not even know (or care) that there is such a thing as a bootloader, much less have to configure it.
Think I learn all my booting in the first 2 years into Linux. 30 years before were just like Pixellany said I knew nothing about booting with MS systems even I was using it everyday.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.