India Broadband Forum


Linux missing from boot options after installing Windows 7

This is a discussion on Linux missing from boot options after installing Windows 7 within the Linux forums, part of the Operating Systems category; Couple of months back, I installed Windows 7 RC version and it replaced the Grub with Windows boot options. The ...

Go Back   India Broadband Forum > Computers > Operating Systems > Linux

India Broadband Forum


                      

Reply

 

LinkBack Thread Tools Display Modes
Old 10-02-09, 10:29 AM   #1
Alligator
 
itsmemad's Avatar
 
Join Date: Sep 2008
Location: Pleasure drome
Posts: 3,514
Rep Power: 10
itsmemad is a glorious beacon of lightitsmemad is a glorious beacon of lightitsmemad is a glorious beacon of lightitsmemad is a glorious beacon of lightitsmemad is a glorious beacon of lightitsmemad is a glorious beacon of light
Unhappy Linux missing from boot options after installing Windows 7

Couple of months back, I installed Windows 7 RC version and it replaced the Grub with Windows boot options. The only options to boot now are Windows 7 and Earlier version of Windows (Win XP). Hence, I can not access my Ubuntu Linux anymore.

I've tried using the EasyBCD 1.7.2. to restore the boot options but it can not. Even if it can, I don't know how to do it. Somebody please assist me how to access the Linux partition again without loosing any data including all the Operating Systems.

Thanks.
itsmemad is offline   Reply With Quote
Old 10-02-09, 11:40 AM   #2
Gold Member
 
imrock's Avatar
 
Join Date: Sep 2008
Posts: 748
Rep Power: 3
imrock will become famous soon enoughimrock will become famous soon enough
Default

try to install linux again.
imrock is offline   Reply With Quote
Old 10-02-09, 11:56 AM   #3
Bronze Member
 
matrix's Avatar
 
Join Date: Dec 2008
Location: Kalyan West
Posts: 254
Rep Power: 1
matrix is on a distinguished road
Default

Try installing linux again, it should detect the existing installation, and give option to restore boot loader. I am not sure whether this option is available in ubuntu as I am a mandriva user. In case of mandriva this option is there.

You can also install ext2fs utility in windows and copy the data from your linux partision then can do a fresh install.
matrix is offline   Reply With Quote
Old 10-03-09, 01:29 PM   #4
Junior Member
 
Join Date: Aug 2008
Location: Bangalore
Posts: 50
Rep Power: 2
hitesh.07 is on a distinguished road
Default

Quote:
When using the Live CD approach, DO NOT setup grub on (hd0,1) or whatever is behind the comma for you. USE "setup (hdo)" instead.

This will reinstall grub on your MBR which is what you want, I tried the hd0,1 approach first with no luck and that made sure that the linux OS could not be booted when running setup (hd0) afterwards. I guess it installed the grub boot files where the linux kernel were supposed to boot from.


So to sum it all up, this is what I do(Overwrites MBR):

Boot the livecd.
Start a terminal.

sudo -i
grub
find /boot/grub/stage1 //if u get error type without quotes 'find /grub/stage1' :Will print something like (hd0,1)
root (hd0,1)
setup (hd0)
quit
Taken from John Asbjørn Braastu - Windows reinstall messes up grub.
Worked for me.HTH
hitesh.07 is offline   Reply With Quote
Old 10-03-09, 04:29 PM   #5
Bronze Member
 
matrix's Avatar
 
Join Date: Dec 2008
Location: Kalyan West
Posts: 254
Rep Power: 1
matrix is on a distinguished road
Exclamation

itsmemad is missing!! hope his problem is resolved
matrix is offline   Reply With Quote
Old 10-03-09, 08:34 PM   #6
Jedi knight
 
Luke Skywalker's Avatar
 
Join Date: Jul 2009
Location: IBF
Age: 21
Posts: 1,816
Rep Power: 5
Luke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the rough
Default

Quote:
Originally Posted by hitesh.07 View Post
Method you have given is good but will not work for all.

As all distro don't give premission to install or let you touch or change partition. You can use a distro that does & install & set up a grub in boot partition.

Last edited by Luke Skywalker; 10-03-09 at 08:34 PM. Reason: Automerged Doublepost
Luke Skywalker is offline   Reply With Quote
Old 10-17-09, 10:54 AM   #7
Junior Member
 
Join Date: Oct 2008
Location: hyderabad melbourne
Posts: 4
Rep Power: 0
naqviabbas is on a distinguished road
Send a message via Skype™ to naqviabbas
Default Your grub got over-written by the windows 7 bootloader. Follow the instructions below

1) Boot from the installation disk.
2) Choose the rescue mode. You can even hit the R key at boot time to get to rescue mode.
3) At the terminal type in chroot /mnt/sysimage
4) Type fdisk -l
5) note down what the first entry under 'Device Boot'.
6) Then type grub-install the entry from Device Boot **
7) reboot
8) Pull out the installation disk from the drive and continue.
naqviabbas is offline   Reply With Quote
Old 10-17-09, 11:35 PM   #8
Jedi knight
 
Luke Skywalker's Avatar
 
Join Date: Jul 2009
Location: IBF
Age: 21
Posts: 1,816
Rep Power: 5
Luke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the rough
Default

Quote:
Originally Posted by naqviabbas View Post
1) Boot from the installation disk.
2) Choose the rescue mode. You can even hit the R key at boot time to get to rescue mode.
3) At the terminal type in chroot /mnt/sysimage
4) Type fdisk -l
5) note down what the first entry under 'Device Boot'.
6) Then type grub-install the entry from Device Boot **
7) reboot
8) Pull out the installation disk from the drive and continue.
grub-install doesn't work in chrooted environment. You will have to type this first:
Quote:
grep -v rootfs /proc/mounts > /etc/mtab
Now do one of these:

grub-install doesn't work like this if you don't have floppy drive it will just hang if you don't type like this:

Quote:
grub-install --no-floppy /dev/sda

or

Start a grub shell like this:

Quote:
grub --no-floppy
then
Quote:
grub> root (hd0,0) (Specify where your /boot partition resides. e.g. if it does on /dev/sda2 type (hd0,1) or if /dev/sdb1 type (hd1,0) )
grub> setup (hd0) (Install GRUB in the MBR)
grub> quit (Exit the GRUB shell)
PS: I know this because i use gentoo Also check out this:
Gentoo Linux Documentation -- Gentoo Grub Error Collection
Luke Skywalker is offline   Reply With Quote
Old 10-18-09, 09:53 AM   #9
Junior Member
 
Join Date: Oct 2008
Location: hyderabad melbourne
Posts: 4
Rep Power: 0
naqviabbas is on a distinguished road
Send a message via Skype™ to naqviabbas
Default

Let us analyze.
At a macro level.

Apparantly, the guy had his MBR over-written. Meaninng, he still has his grub.conf sitting on the filesystem. He does not need a fresh install of grub. A restoration will work fine.

After booting, he has to mount the root partition to a mount point.
chrooting to the mount point gives his exclusive access to the faulty installation.

Then he descends into the grub directory, and runs the grub-install command.

refer to line 7 on the indicated page.
"gnu org/software/grub/manual/html_node/Installing-GRUB-using-grub_002dinstall.html"
works smooth on fc10 and dsl
naqviabbas is offline   Reply With Quote
Old 10-23-09, 01:59 AM   #10
Jedi knight
 
Luke Skywalker's Avatar
 
Join Date: Jul 2009
Location: IBF
Age: 21
Posts: 1,816
Rep Power: 5
Luke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the roughLuke Skywalker is a jewel in the rough
Default

I know his mbr had been overwritten & have been removed from the first sector. In chroot /etc/mtab is not there which lists filesystems so he can't access file systems. You will have to copy /proc/mounts to /etc/mtab or write your own.I have not said to re-install from beginning.
grub-install should give error according to me if a guy don't have floppy drive. Your computer will hang when grub probes for floppy.
Instead he should do what I have written.
No, he don't need to descend into grub directory as grub is install. Type grub in a terminal. It is a command. You will descend into grub shell.

sda is use in sata drive & hd in ide. But hd is also used for sda it depends where you want to use.
Luke Skywalker is offline   Reply With Quote
Old 10-23-09, 06:17 AM   #11
Junior Member
 
Join Date: Jan 2009
Location: Mysore,Karnataka
Posts: 81
Rep Power: 1
pshrinivasan is on a distinguished road
Default

Please download EasyBCD 2.0 Beta from the website Neosmart and add Linux in the 3rd page, to the Add an Entry. Only this works in restoring the Grub in Windows 7. Note: you have to register to download the EasyBCD 2.0 Beta.
EasyBCD 1.7 doesn't work in Win7
pshrinivasan is offline   Reply With Quote
Old 10-27-09, 01:59 PM   #12
Junior Member
 
Join Date: Mar 2009
Location: New Delhi
Posts: 2
Rep Power: 0
ashwani40in is on a distinguished road
Send a message via AIM to ashwani40in Send a message via MSN to ashwani40in Send a message via Yahoo to ashwani40in Send a message via Skype™ to ashwani40in
Default Use easy BCD

Use easy BCD and get it fixed
ashwani40in is offline   Reply With Quote
Reply

Tags
boot, easybcd, grub, installing, linux, missing, options

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Installing windows vista... bingbang Desktop Computer 9 08-28-09 08:18 PM
Boot windows Xp fast!! Mr.Tooth Fairy Windows 8 06-01-09 01:44 AM
Install Windows XP on Your Pre-Installed Windows Vista Computer(Dual Boot XP/Vista) Logik Windows 4 12-27-08 12:45 AM
how to fix a windows installation that wont boot xfilos Windows 0 10-29-08 04:34 PM
The Missing Sync for Windows Mobile v2.5 is out India Broadband Software News, Previews and Reviews 0 07-29-06 01:04 AM


All times are GMT +5.5. The time now is 08:25 AM.


India Broadband Forum