Dual boot query

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Dual boot query

Postby Betwixt on Fri Aug 07, 2009 1:09 pm

I have assembled a dual boot pc with XP on sda1 and LM7 on sda2, plus a swap and separate data partitions. All works well except that, unfortunately, I have to re-install XP to overcome a serious driver problem. What do I need to do in order to retore the boot choices without having to re-install Mint? Do I need to copy something before starting the XP installation? I'm sure this has been covered often so would appreciate being pointed in the right direction.

Terry
Betwixt
Level 2
Level 2
 
Posts: 72
Joined: Wed Nov 26, 2008 5:50 pm

Linux Mint is funded by ads and donations.
 

Re: Dual boot query

Postby lagagnon on Fri Aug 07, 2009 1:55 pm

When you re-install Windows just make sure you install it to its partition, not the Mint one. Also Windows will overwrite the master boot record and you will loose the grub boot loader. It also will not recognize any other operating system on any other partition (nice isn't it - it behaves as if it were the only kid on the block, narcissistic to the extreme).

So you will then have to re-install grub. You can do that with the Mint Live CD. Boot the Live CD, open a terminal and type "sudo grub-install" and then "sudo update-grub" and you should be good to go.
User avatar
lagagnon
Level 7
Level 7
 
Posts: 1888
Joined: Wed Jun 17, 2009 7:38 pm
Location: an island in the Pacific...

Re: Dual boot query

Postby Betwixt on Sat Aug 08, 2009 6:00 am

Thank you. I'll work on that - easier than I feared.
Terry
Betwixt
Level 2
Level 2
 
Posts: 72
Joined: Wed Nov 26, 2008 5:50 pm

Re: Dual boot query

Postby Betwixt on Sat Aug 08, 2009 12:31 pm

OK, XP reinstall on sda1 was good and LM7 on sda2 left touched. However, see result of CLI actions:

mint@mint ~ $ sudo grub-install
install_device not specified.
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.

-h, --help print this message and exit
-v, --version print the version information and exit
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-shell=FILE use FILE as the grub shell
--no-floppy do not probe any floppy drive
--force-lba force GRUB to use LBA mode even for a buggy
BIOS
--recheck probe a device map even if it already exists

INSTALL_DEVICE can be a GRUB device name or a system device filename.

grub-install copies GRUB images into the DIR/boot directory specfied by
--root-directory, and uses the grub shell to install grub into the boot
sector.

Report bugs to <bug-grub@gnu.org>.

mint@mint ~ $ sudo update-grub
Searching for GRUB installation directory ...
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###


Would you please advise further?
Terry
Betwixt
Level 2
Level 2
 
Posts: 72
Joined: Wed Nov 26, 2008 5:50 pm

Re: Dual boot query

Postby rekik on Sat Aug 08, 2009 12:54 pm

I would first type :

Code: Select all
sudo mkdir /boot/grub


Then retry "sudo grub-install" and "sudo update-grub" as suggested by lagagnon.
rekik
Level 3
Level 3
 
Posts: 198
Joined: Wed May 06, 2009 5:24 pm

Re: Dual boot query

Postby atlef on Sat Aug 08, 2009 2:05 pm

User avatar
atlef
Level 4
Level 4
 
Posts: 306
Joined: Sun Nov 18, 2007 8:20 am
Location: Stavanger NORWAY

Re: Dual boot query

Postby Betwixt on Sat Aug 08, 2009 2:20 pm



Thank you but as I have just one, SATA, HD it appears not to be relevant, especially as my Mint system has not been touched and it is only the change of boot-up by reinstalling XP that has caused the problem.
Terry
Betwixt
Level 2
Level 2
 
Posts: 72
Joined: Wed Nov 26, 2008 5:50 pm

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: ikarushot and 18 guests