LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-21-2012, 04:51 PM   #1
Foxbat1155
Member
 
Registered: Oct 2011
Location: Portugal.
Distribution: Debian squeeze - Fluxbox.
Posts: 109

Rep: Reputation: 0
Smile grub recovery after installing windows 7, debian squeeze in 2nd partition


My laptop has debian squeeze and I installed windows 7 after it, on the remaining unused space (20g).

After windows install grub does not load.

I have tried several solutions using the ubuntu 10.10 livecd.

I have tried this one:

http://www.lancelhoff.com/restore-gr...lling-windows/

And this one:

http://kasunweranga.blogspot.com/201...nstalling.html


However I have had no success.

What should I do?

I have tried to mount all the sda's that seemed relevant, none worked.
 
Old 02-21-2012, 05:36 PM   #2
Foxbat1155
Member
 
Registered: Oct 2011
Location: Portugal.
Distribution: Debian squeeze - Fluxbox.
Posts: 109

Original Poster
Rep: Reputation: 0
I am trying this:

http://www.linuxquestions.org/questi...71#post4608671

Its not working.
 
Old 02-21-2012, 05:50 PM   #3
Foxbat1155
Member
 
Registered: Oct 2011
Location: Portugal.
Distribution: Debian squeeze - Fluxbox.
Posts: 109

Original Poster
Rep: Reputation: 0
Smile progress so far

I have entered my Debian install through rescueccd and have reinstalled grub. However now I cannot boot windows, it does not show on grub..

Any help please?
 
Old 02-21-2012, 06:14 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,126

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
Which grub (grub-install -v) ?.

Don't worry about that - we need more info. go here, do as it says and post the RESULTS.txt

Last edited by syg00; 02-21-2012 at 06:16 PM.
 
1 members found this post helpful.
Old 02-21-2012, 06:16 PM   #5
Foxbat1155
Member
 
Registered: Oct 2011
Location: Portugal.
Distribution: Debian squeeze - Fluxbox.
Posts: 109

Original Poster
Rep: Reputation: 0
Smile Solved.

I managed to solve this on my own after reading some sites on grub2 and improvising on a crazy personal idea I did not expect to work:

My solution:

1 - use rescuecd 2.4.1 CD and boot it choosing it in BIOS startup

2 - boot your installed linux via rescuecd, it is one of the possible options in the first menu

3 - after entering your installed linux, use aptitude (for example) to purge grub, and then install it again

4 - mount your windows 7 (in my case it was in sda1)

5 - simply run update-grub (as root)

To my amazement, this worked, I initially thought this would be kind of crazy, too good to be true, but grub interpreted the windows boot correctly and loaded it as I expect it will load in your case.

So this is a confirmation it worked in my case, please tell me if it worked for you..

Thanks anyways everyone.

---------- Post added 02-22-12 at 00:17 ----------

Quote:
Originally Posted by syg00 View Post
Which grub (grub-install -v) ?.

Don't worry about that - we need more info. go here, do as it says and post the RESULTS.txt
I was writing my improvised solution as you wrote this. Just to say thanks but it is fixed.
 
Old 02-21-2012, 06:19 PM   #6
Foxbat1155
Member
 
Registered: Oct 2011
Location: Portugal.
Distribution: Debian squeeze - Fluxbox.
Posts: 109

Original Poster
Rep: Reputation: 0
svg00 do you still want me to get that results.txt?
 
Old 02-21-2012, 06:31 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,126

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
No, you fixed it already - might be interesting for you to look at though.

Keep forgetting - with Debian, update-grub works regardless .... d'oh
 
1 members found this post helpful.
Old 02-21-2012, 06:32 PM   #8
Foxbat1155
Member
 
Registered: Oct 2011
Location: Portugal.
Distribution: Debian squeeze - Fluxbox.
Posts: 109

Original Poster
Rep: Reputation: 0
You mean to say it does not work with other distributions?
 
Old 02-21-2012, 06:45 PM   #9
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,097

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
So can you tell us which of the tutorials + your revision helped you, so that others including myself will know what to do in the future?
Quote:
You mean to say it does not work with other distributions?
It works with debian-based os'es,not sure of any others.

Last edited by EDDY1; 02-21-2012 at 06:47 PM.
 
Old 02-21-2012, 07:15 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,126

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
It isn't part of the original grub package. Grub2 shows its Debian heritage in lots of ways.
 
Old 02-21-2012, 09:17 PM   #11
Foxbat1155
Member
 
Registered: Oct 2011
Location: Portugal.
Distribution: Debian squeeze - Fluxbox.
Posts: 109

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by EDDY1 View Post
So can you tell us which of the tutorials + your revision helped you, so that others including myself will know what to do in the future?
It works with debian-based os'es,not sure of any others.
Ok I suppose I can search my browser history:

I visited dozens of sites, these were the most useful:

https://help.ubuntu.com/community/Grub2

http://www.dedoimedo.com/computers/grub-2.html

http://linuxers.org/howto/how-config...ub2-ubuntu-910

----------------------------------------------------------------------------------------------

However I must say that what triggered my solution was seeing how grub could update its bootloader and thinking that perhaps he wasnt loading the Windows boot because the NTFS partition was not mounted and maybe if it was, perhaps grub could read the boot windows file and recognize it and load it.

I must emphasize none of this is implied in the sites I have mentioned, I did not read them, merely read them "diagonally", as it is usually said, fast searching for a reference to configuring the bootloader.

Kind of a crazy stroke of chance, as it just sounded too simple to me to actually be a solution to this problem.
 
Old 02-21-2012, 09:25 PM   #12
Foxbat1155
Member
 
Registered: Oct 2011
Location: Portugal.
Distribution: Debian squeeze - Fluxbox.
Posts: 109

Original Poster
Rep: Reputation: 0
Smile

I must say I was seconds away from re-installing debian squeeze avec fluxbox for it would have taken me less time and pain than the hours spent resetting the computer, trying the live cd's, etc..

It is just so easy to install debian and customizing it after you finish preparing your .emacs ; startup ; keys ; .bashrc ; Xdefaults ; sources.list files. Just cp them.

Everything the way you always wanted it.
 
Old 02-21-2012, 09:28 PM   #13
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,267

Rep: Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086
Y'know, on the one hand, Grub is a fantastic boot-loader, seeing as how it's controlled by ordinary files and it knows how to read file-systems and all that ... but, on the other hand, it is "just a boot loader," and its ability to recover from, specifically, errors in the menu-file are really (and understandably) quite limited.

If there is one most-basic survival skill that you need to master in this business, and to master quickly, it is how to use a stand-alone so-called "live CD" to recover any sort of system. (Very useful for Windows troubleshooting too.)
 
1 members found this post helpful.
Old 02-21-2012, 09:31 PM   #14
Foxbat1155
Member
 
Registered: Oct 2011
Location: Portugal.
Distribution: Debian squeeze - Fluxbox.
Posts: 109

Original Poster
Rep: Reputation: 0
Indeed. Arguably one of the strongest arguments for knowing your linux.
 
  


Reply

Tags
grub


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
[SOLVED] Debian Squeeze grub doesn't detect windows partition on install Cultist Debian 3 05-17-2011 04:26 PM
Debian Squeeze: Grub not working (XP removing grub) wearetheborg Debian 10 02-16-2010 05:33 PM
I want to boot off of a recovery windows partition but can't because grub is gone! Willrandship Linux - Newbie 4 10-07-2009 08:18 PM
GRUB boots XP RECOVERY partition instead of XP. Miah Linux - Newbie 3 06-06-2006 11:00 AM
Installing Linux on the 1st partition and booting Windows off the 2nd Rav Linux - General 15 12-21-2002 02:33 PM


All times are GMT -5. The time now is 05:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration