Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-18-2014, 08:45 PM   #1
Registered: Feb 2013
Location: Lima, Peru
Distribution: Debian
Posts: 39

Rep: Reputation: Disabled
Question Setting up Grub2

Hi Friends,

I'm trying to setting up the grub2 on my laptop.
I only have debian and windows.
But there is a problem windows appears twice in /dev/sda1 and /dev/sda2.

I try the command os-prober and showme this 2 windows.
root@debianchiarot:/boot/grub# os-prober 
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda2:Windows 7 (loader):Windows1:chain
For now each time I reinstall grub or update-grub I should change /boot/grub/grub.cfg and comment the second entry.

I would like to know if there is a way to change it directly in /etc/default/grub, like the GRUB_GFXMODE, GRUB_TIMEOUT, GRUB_BACKGROUND and others, or maybe configuring the script 30_os-prober.

Attached my grub config.

#cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)

# Uncomment to disable graphical terminal (grub-pc only)

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux

# Uncomment to disable generation of recovery mode menu entries

# Uncomment to get a beep at grub star
#GRUB_INIT_TUNE="480 440 1"
##Add for change Grub Background
Old 10-18-2014, 09:40 PM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,006

Rep: Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099
I'm surprised this hasn't been added to grub by now. here is a thread we had a while back - take care where the update goes, but should still fit.
1 members found this post helpful.
Old 10-19-2014, 01:29 AM   #3
Registered: Feb 2013
Location: Lima, Peru
Distribution: Debian
Posts: 39

Original Poster
Rep: Reputation: Disabled

Hi syg00,

Thx for reply, I'll waiting for the update of grub.
For now I will use the patch.

Thanks for help.


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] OpenSuSe12.3 - Help Fix Grub2 Syntax Errors (was - Replace Grub2 w/ Lilo) enorbet SUSE / openSUSE 9 12-08-2013 05:09 AM
grub2 can't see my win 7 partition and yast2 bootloader can't reinstall grub2 jjrojaspy SUSE / openSUSE 5 07-07-2013 11:38 PM
Setting GRUB2 Password on Debian Squeeze (6.0.5) !! hack-back !! Linux - Server 0 02-12-2013 03:45 PM
[SOLVED] Setting up GRUB2 to replace Lilo for Slack 14.0 Mercury305 Slackware 5 10-03-2012 10:01 PM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 03:39 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration