LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-28-2009, 03:43 PM   #1
alpha6
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
Booting Linux in Vista bootloader


Hey guys, so I installed Linux Mint on my laptop as secondary op sys to get familiar with linux world. I want to achieve that linux would boot up in Vista bootloader as an extra option. I followed this example how to do it. Everything sounds good until i try to boot it up, firstly I see win boot loader as i am suppoused to. Great. Now I choose NeoGrub bootloader and everything seems fine also, but then i run into problems. When I choose to start Mint i get "Error 2: bad fail or directory type". So i guess menu.lst file isnt quite what it is meant to be. I took it from linux boot directory, and I have no idea where did I go wrong.

Used menu.lst has been added as attatchment.

So, any thoughts guys?

EDIT: I added main part of menu.lst, because original part seems to be in continuous progression.

## ## End Default Options ##


title Linux Mint 6, kernel 2.6.27-7-generic

root (hd0,4)

kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sda5 ro quiet splash

initrd /boot/initrd.img-2.6.27-7-generic

quiet



title Linux Mint 6, kernel 2.6.27-7-generic (recovery mode)

root (hd0,4)

kernel /boot/vmlinuz-2.6.27-7-generic root=/dev/sda5 ro single

initrd /boot/initrd.img-2.6.27-7-generic




title Linux Mint 6, kernel Last successful boot

root (hd0,4)

kernel /boot/last-good-boot/vmlinuz root=/dev/sda5 ro quiet splash last-good-boot

quiet



title Linux Mint 6, memtest86+

root (hd0,4)

kernel /boot/memtest86+.bin

quiet


### END DEBIAN AUTOMAGIC KERNELS LIST
Attached Files
File Type: txt menu.lst.txt (4.5 KB, 4 views)

Last edited by alpha6; 02-28-2009 at 03:49 PM.
 
Old 02-28-2009, 04:20 PM   #2
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
I remember I used to struggle with using Vista or XP boot.ini or BCD. Then I decided to use Linux's grub. And chainload Vista or XP in my menu.lst file.

Its much easier to use Grub from linux then Neogrub in my opinion.

Boot up with the Mint live disk and run this in command prompt:

Code:
sudo grub --no-floppy
then when in grub prompt run this:

Code:
find /boot/grub/stage1

root (hd0,1) #This is the output of the find command might be different 

setup (hd0)  #This installs grub to the primary mbr

quit  #exits grub
Then add these lines to your menu.lst in /boot/grub/menu.lst

Code:
sudo gedit /boot/grub/menu.lst #assuming your using gnome change accordingly
Code:
title  Windows Vista
        rootnoverify (hd0,0)
        chainloader +1

This, in my opinion is much easier. And if you ever need to restore your Vista mbr, there are instruction all over the web with using a Vista recovery disk. I'd research how to recover your Vista mbr for future reference

Hope this helped.
 
Old 02-28-2009, 05:16 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,540

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
I also prefer grub, but the Vista loader works o.k. too.
Rather than use neogrub, I installed grub to the boot record of the root partition, and use EasyBCD to go find it installed Linux systems. No need to play with the menu.lst at all IIRC. Seems to work as advertised.
 
Old 02-28-2009, 06:02 PM   #4
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Quote:
Originally Posted by syg00 View Post
I also prefer grub, but the Vista loader works o.k. too.
Rather than use neogrub, I installed grub to the boot record of the root partition, and use EasyBCD to go find it installed Linux systems. No need to play with the menu.lst at all IIRC. Seems to work as advertised.
Very true... The EasyBCD tool works great for this way.
 
Old 03-01-2009, 03:55 AM   #5
alpha6
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
So I tried manwithaplan suggestion, but all I got is this:
Code:
 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> find /boot/grub/stage1
 (hd0,4)

grub> setup (hd0)

Error 12: Invalid device requested

grub>
 
Old 03-01-2009, 11:08 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,225

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
Take a look at manwithaplan's post. You skipped a step. You ran the find command from grub and got (hd0,4) so you should then enter:

root (hd0,4)
setup (hd0)
quit (this takes you out of grub prompt)
 
Old 03-01-2009, 05:40 PM   #7
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Alpha6... You did skip a step... Grub doesnt know where to setup grub. so you do need to enter root (hd0,4) then setup (hd0)

Then it should work fine, and after entering the Vista info in the menu.lst file Vista should show up in the menu. And from there be able to boot.
 
Old 03-01-2009, 05:59 PM   #8
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Quote:
Originally Posted by manwithaplan View Post
Alpha6... You did skip a step... Grub doesnt know where to setup grub. so you do need to enter root (hd0,4) then setup (hd0)

Then it should work fine, and after entering the Vista info in the menu.lst file Vista should show up in the menu. And from there be able to boot.
This is a continuation: Use the attached menu.lst file and put it in your /boot/grub folder. Or just copy and paste. It puts Vista at the top of the menu.

Last edited by manwithaplan; 03-12-2009 at 03:12 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Vista/Fedora9 - Vista not booting agb81 Fedora 2 08-06-2008 11:10 AM
Dual booting Linux and Vista dougnc Linux - Hardware 5 10-08-2007 06:46 AM
Install bootloader after floppy-booting Linux? sb73542 Red Hat 3 06-01-2007 10:17 AM
Dual Booting Linux and vista johosher Linux - General 2 04-08-2007 04:41 PM
Booting from Knoppix disk without a linux bootloader. Slick1537 Linux - Newbie 4 02-25-2007 08:32 AM


All times are GMT -5. The time now is 12:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration