Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > TS Community > Guides and Solved Issues

Dual boot Vista and Linux

Reply
 
Thread Tools
  #1  
Old 04-30-2007, 04:55 PM
Phantasm66's Avatar
Phantasm66 Phantasm66 is offline
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,578 posts
Dual boot Vista and Linux

OK, I had to investigate this just recently, so I thought I would share. Here is what to do if you want to add Linux to Vista's boot menu, rather than using Grub in the Master Boot Record.

# Install Vista as normal.

# Install Linux, but install Grub to the bootsector of your / partition (which from now on we will call /dev/sda3) and NOT the MBR (i.e. /dev/sda)

# Boot Linux from the install CD, choose rescue mode.

# From the command prompt in rescue mode, mount your Linux installation partition, i.e.

mount /dev/sda3 /mnt/sysimage

then chroot it:

chroot /mnt/sysimage

reinstall Grub just to make sure that its working OK

/sbin/grub-install /dev/sda3

now, make a file image of the bootsector of /dev/sda3:

dd if=/dev/sda3 of=bootsect.lin bs=512 count=1

copy the bootsect.lin to somewhere you will be able to get it back when in Vista.

# Now, back in Vista

copy bootsect.lin to c:\

open a command prompt with cmd, and do the following:

bcdedit /displayorder {current}

bcdedit /create /d "Linux" /application BOOTSECTOR

(should say something like created entry, it will give it a name, like {cfc90cf0-f718-11db-b281-005056c00008} )

then

bcdedit /set {cfc90cf0-f718-11db-b281-005056c00008} device boot
bcdedit /set {cfc90cf0-f718-11db-b281-005056c00008} PATH \bootsect.lin
bcdedit /displayorder {cfc90cf0-f718-11db-b281-005056c00008} /addlast
bcdedit /timeout 5

# Reboot, Linux is now in the boot menu which if you select it you will go into Grub.



Easy, eh??
Reply With Quote
  #2  
Old 04-30-2007, 05:09 PM
raybay raybay is offline
TechSpot Evangelist
 
Location: Four Corners, US
Member since: Dec 2006, 5,932 posts
Thanks. Your work looks useful.
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 04-30-2007, 05:25 PM
Phantasm66's Avatar
Phantasm66 Phantasm66 is offline
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,578 posts
Any time. Have fun.
Reply With Quote
  #4  
Old 05-17-2007, 04:39 PM
Jason Jason is offline
Newcomer, in training
 
Member since: Sep 2006, 15 posts
Thank you for your info. I have similiar but different thing.... I have using linux operating system and for my backup I am using windows server. it's awesome to work with two different operating system.
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot Vista and Linux Phantasm66 The Alternative OS 13 03-10-2008 03:08 PM
vista and xp dual boot bradthegreat Windows OS 3 02-16-2007 10:24 AM
Can't dual boot XP after installing Vista? gnusmas Windows OS 5 02-03-2007 11:42 PM
Dual Boot Windows XP / Vista eddiedu Windows OS 1 06-20-2006 12:22 AM
Dual boot vista uninstall WITHOUT XP cd Scshadow Windows OS 2 04-30-2006 01:07 PM


All times are GMT -4. The time now is 07:08 PM.