LinuxQuestions.org
Review your favorite Linux distribution.
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-15-2012, 04:16 AM   #1
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Rep: Reputation: Disabled
Help me remove broken Grub2 Windows entry.


In Grub2, I have the following entries:

Code:
Debian Kernel whatever
Debian Kernel whatever recovery
Windows 7 (Loader)
'Windows
That last entry is exactly as typed above. I think it ended up there because I was messing around with restoring Clonezilla partition images to other partitions. Searching around only tells me how to remove kernels or do fancy scripting stuff to hide Windows entries. I want to fix the cause of the problem.

Some more info: That ' before Windows looks like it's opening a quote. It's not just a flat '. When I try to boot into it instead of the third option, it says "err: disk missing".

Last edited by Lumify; 02-15-2012 at 04:53 AM.
 
Old 02-15-2012, 05:13 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Lightbulb

http://www.dedoimedo.com/computers/g...mozTocId542243
 
1 members found this post helpful.
Old 02-15-2012, 06:23 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
grub2 creates it config from files within /etc/grub2. There should be a file ##_other_os. Inside you can remove one of the entries and rebuild your config.
(This is from mind but shows the way)
 
1 members found this post helpful.
Old 02-15-2012, 06:33 AM   #4
Lumify
Member
 
Registered: Jan 2012
Distribution: Debian Stable
Posts: 52

Original Poster
Rep: Reputation: Disabled
After looking through my grub.cfg, I realized that the only script that could be creating it was /etc/grub.d/40_custom. Lo and behold, I had a custom entry in there from months ago that somehow never was loaded. :P

By the way jv, that's a great link. I found a bunch of info on the subject, but none as concise as that one. Bookmarked.

Last edited by Lumify; 02-15-2012 at 06:34 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
LXer: Windows entry disappeared in Grub2 menu LXer Syndicated Linux News 0 10-19-2011 02:01 AM
[SOLVED] ubuntu 11.04 want to skip grub2 entry in installer php5er Ubuntu 3 07-16-2011 01:42 AM
Backtrack and GRUB2 entry? not really newbie? SG86- Linux - Newbie 16 04-11-2011 07:11 AM
[SOLVED] How to remove GRUB2 & Ubuntu from MacBook Pro with Windows 7, Ubuntu and OS X? lupusarcanus Linux - Newbie 8 07-18-2010 07:38 PM
Adding a menu entry to grub2 Jeff91 Linux - General 1 08-28-2009 07:12 PM


All times are GMT -5. The time now is 11:11 AM.

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