Listing win Xp in Grub

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
whare1
Level 2
Level 2
Posts: 70
Joined: Fri May 04, 2007 6:29 am

Listing win Xp in Grub

Post by whare1 »

Ok so i had a noob moment today i installed XP after linux as i needed to test some things got grub back now but how to list XP in grub?

Mint installed on sdb1
XP installed on sdb3

thanx in advance

hmmmm........

just checked Gparted to confirm the installs
Screenshot-1.png
Screenshot-2.png
sems it has changed to sda2 and sda5

sdb was all used for /home (see screen 2) but now says unallocated but i can still access all my data

VERY odd
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
I've Been
Minted

Running Mint 9 KDE
Running Mint 9 Gnome
viking777

Re: Listing win Xp in Grub

Post by viking777 »

Code: Select all

sudo update-grub
Is supposed to work.

Can't tell you for sure because I still use the old sensible version of grub not the new nonsense one.
User avatar
whare1
Level 2
Level 2
Posts: 70
Joined: Fri May 04, 2007 6:29 am

Re: Listing win Xp in Grub

Post by whare1 »

thx grub updated :)

Still have the other issue tho still showing the /home drive as unallocated for some reason and if i forget for some reason i could have alot of problems on my hands
I've Been
Minted

Running Mint 9 KDE
Running Mint 9 Gnome
User avatar
xenopeek
Level 25
Level 25
Posts: 29607
Joined: Wed Jul 06, 2011 3:58 am

Re: Listing win Xp in Grub

Post by xenopeek »

Try what viking777 mentioned. Else do it by hand as follows. Either sda1 or sda5 is your Windows boot partition (as both are NTFS).

Let's assume the Windows bootloader is on sda1. Try the following (this is for GRUB2, which you have if running Linux Mint 8 or newer). Open Terminal and do:

Code: Select all

kdesu kate /etc/grub.d/40_custom
Add at the end:

Code: Select all

menuentry "Windows (sda1)" {
insmod chain
insmod ntfs
set root=(hd0,1)
chainloader (hd0,1)+1
}
Save & close the file. Then run to apply changes:

Code: Select all

sudo update-grub2
If this doesn't work, change it to sda5 (the (hd0,1) you will need to change on both lines to either (hd0,5) I think).
Image
User avatar
whare1
Level 2
Level 2
Posts: 70
Joined: Fri May 04, 2007 6:29 am

Re: Listing win Xp in Grub

Post by whare1 »

thank, viking777 quick idea worked just nice in mint 9 gnome i relogged and posted this from XP :mrgreen:

as i said still have the other issue tho
I've Been
Minted

Running Mint 9 KDE
Running Mint 9 Gnome
viking777

Re: Listing win Xp in Grub

Post by viking777 »

See if this throws up any clues:

Code: Select all

sudo parted /dev/sdb unit s print
Locked

Return to “Installation & Boot”