Booting LM 13 and XP in dual boot?

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
Absolutis

Booting LM 13 and XP in dual boot?

Post by Absolutis »

Linux Mint 13 with windows XP, I want to use GRUB as the bootmanager. I haven't done anything yet. Linux installed first, and would prefer to keep the same installation.

EDIT: If it would be easier, I could also use some other boot manager like EasyBCD or smth
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.
oobetimer

Re: Booting LM 13 and XP in dual boot?

Post by oobetimer »

Absolutis wrote:Linux Mint 13 with windows XP, I want to use GRUB as the bootmanager. I haven't done anything yet. Linux installed first, and would prefer to keep the same installation.

EDIT: If it would be easier, I could also use some other boot manager like EasyBCD or smth
EasyBCD does not work in XP, but you can boot mint by ediding XP´s boot.ini file

http://www.youtube.com/watch?v=cz_BKk-mKts&feature=plcp

http://forums.linuxmint.com/viewtopic.p ... ni#p595336

Basically you can restore grub via liveCD. An example:
sudo blkid # tells the media
sudo mount /dev/sdxy /mnt # where x=HD and y=partition
sudo grub-install --boot-directory=/mnt/boot /dev/sdx # where x=HD
sudo umount /mnt


PS. Make partitions for XP using linux programs like GParted, because windows can mess a partition table, because it does not understand linux swap partition.
Last edited by oobetimer on Sat Sep 15, 2012 6:43 am, edited 1 time in total.
User avatar
kc1di
Level 18
Level 18
Posts: 8178
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Booting LM 13 and XP in dual boot?

Post by kc1di »

Greetings Absolutis & welcome to Mint,

It is always better if you are to dual boot to install the window OS first then Mint (or Linux) then grub would be able to find windows and add it to the boot menu
for you. but you can do it the other way also. before installing window xp go here and download a copy of boot-repair.
https://help.ubuntu.com/community/Boot-Repair
after you install windows run it and it should re-install Grub for you.
When you install windows xp it will automatically install it's boot loader to the mbr and erase mint's grub bootloader.
follow the instruction on boot repair and you should be good to go.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Tumbleweed_Biff

Re: Booting LM 13 and XP in dual boot?

Post by Tumbleweed_Biff »

obetimer, (or anyone else)
in your lines:
sudo mount /dev/sdxy /mnt # where x=HD and y=partition
sudo grub-install --boot-directory=/mnt/boot /dev/sdx # where x=HD

Which partition does 'y' reference?
And "boot-directory"?

I have
sda1 - ntfs (windows xp install)
sda2 - extended
sda5 - installed as "\" during Mint install
sda6 - \usr

sdb - 2 separate swapfile partitions, one for windows, one for linux, and a data backup partition.

FYI: I have tried boot-repair, it kept telling me grub was still installed when the it had been removed - at least all the grub directories I could find ...
oobetimer

Re: Booting LM 13 and XP in dual boot?

Post by oobetimer »

Tumbleweed_Biff wrote: Which partition does 'y' reference?
And "boot-directory"?
y = partition e.g sda5
boot-directory = boot folder or partition
Locked

Return to “Installation & Boot”