LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   how to configure grub to add windowXP to grub list. (https://www.linuxquestions.org/questions/debian-26/how-to-configure-grub-to-add-windowxp-to-grub-list-900362/)

jazzsir 08-31-2011 02:04 AM

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

jazzsir 08-31-2011 02:30 AM

I solved using a command "sudo update-grub"

cynwulf 08-31-2011 03:13 AM

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).

Knightron 09-02-2011 06:34 PM

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".

aus9 09-03-2011 07:02 PM

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/


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