LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-31-2011, 02:04 AM   #1
jazzsir
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: Disabled
how to configure grub to add windowXP to grub list.


Hi,

After installing WindowsXP, I installed the newest Debian by choosing "OK" to install Grub on the final stage of Debian installation.

Then windowXP is not on the grub list when booting.
I wanna know how to configure grub to add windowXP to grub list.

also, I have other problems
my debian has no a 'grub' executable file and no a grub.conf file.
but has a grub.cfg file and grub-?????? files

Last edited by jazzsir; 08-31-2011 at 02:31 AM.
 
Old 08-31-2011, 02:30 AM   #2
jazzsir
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
I solved using a command "sudo update-grub"
 
Old 08-31-2011, 03:13 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Assuming you are running debian, there's no need for sudo unless you have it configured that way:

Code:
update-grub
Is enough (as root).

If that fails to pick up your other OS loaders, then

Code:
os-prober
update-grub
Should do the trick (also as root).
 
Old 09-02-2011, 06:34 PM   #4
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
just in case you're unsure, the command
Quote:
su
is how you login as root. and i mean that's all, not for example "su update-grub", su is a separate command which asks for root password, and then you'd say "update-grub".
 
Old 09-03-2011, 07:02 PM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

the OP already says he used root powers by using sudo command.


jazzsir

/boot/grub/grub.cfg indicates you have the grub2 bootloader and its associated files and not grub-legacy which uses menu.lst

grub2 has a number of executables that lie in /usr/bin and /usr/sbin

you can google each command to see what it might do if you like?

Most are not used by ordinary mortals .....apart from update-grub .....except maybe grub-mkimage?

http://www.unix.com/man-page/Linux/1/GRUB-MKIMAGE/
 
  


Reply



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] GRUB: Cannot find list of partitions && /usr/sbin/grub-setup: error w1k0 Linux Mint 26 12-21-2010 03:29 PM
LXer: Grub Customizer Lets You Reorder, Add Or Remove GRUB 2 (Or BURG) Menu Entries LXer Syndicated Linux News 0 10-09-2010 05:20 PM
Can grub detect iso and add them to the list? back-.space Linux - Newbie 2 06-02-2009 01:25 AM
Grub config, how to add CD to boot list? Oxyacetylene Linux - Software 7 06-01-2009 11:53 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:56 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
Open Source Consulting | Domain Registration