LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2008, 06:38 AM   #1
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Rep: Reputation: 32
Installed Mandriva - lost Win Vista


I just installed Mandriva on my machine but sadly Windows did not get added to the grub menu. I am having problems adding it, I think Windows did not get killed but am not sure.

I have googled this without success.
 
Old 06-07-2008, 06:54 AM   #2
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: SuSE, RHEL, Mageia
Posts: 132

Rep: Reputation: 17
Try to add such lines in your /boot/grub/menu.lst file:

title Windows
root (hd0,0)
makeactive
chainloader +1

And don't forget to run /boot/grub/install.sh to make changes have effect.
 
Old 06-07-2008, 07:07 AM   #3
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
I did that but rather going into Windows I just get a diagnostics page.
 
Old 06-07-2008, 07:21 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Probably (hd0,1), but let's see the output from "fdisk -l" (might need root/sudo)
 
Old 06-07-2008, 07:31 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
And don't forget to run /boot/grub/install.sh to make changes have effect.
I never looked at this before. This script installs GRUB to the MBR---not necessary in this case. All you have to do is edit menu.lst and save it.

As already stated, we need to know what the partition setup is. Also, what partitioning options did you select when installing Mandriva?
 
Old 06-07-2008, 08:25 AM   #6
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Fdisk gives

Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x70000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           8       64228+   6  FAT16
/dev/sda2               9        1314    10485760    7  HPFS/NTFS
/dev/sda3            1314       30965   238176090+   7  HPFS/NTFS
/dev/sda4           30966       60801   239657670    5  Extended
/dev/sda5           30966       31984     8185086   83  Linux
/dev/sda6           31985       32493     4088511   82  Linux swap / Solaris
/dev/sda7           32494       60801   227383978+  83  Linux

Disk /dev/sdb: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x230c85ca

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       10010    80405293+   c  W95 FAT32 (LBA)
When I installed I used the default - resize existing partitions - was that a mistake ??? I really hope I do not need to reinstall Windows.
 
Old 06-07-2008, 09:59 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
It looks like Windows is on sda2 (hd0,1 in grub-speak)

Thus--in /boot/grub/menu.lst you need:
title Windows
root (hd0,1)
map (hd0,1)(hd0,0)
map (hd0,0)(hd0,1)
makeactive
chainloader +1
 
Old 06-07-2008, 11:38 AM   #8
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
That did not work I got unknown filesystem

Code:
title windows
root (hd0,1)
map (hdo,0),(hd0,1)
makeactive
chainloader +1
 
Old 06-07-2008, 11:59 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Take a look at pixellany's entry recommendation. If your last post is what you entered you did not do it correctly, you left out the second map entry. sda2 looks like a pretty small partition though, so try it and if it doesn't work try it for sda3.
 
Old 06-07-2008, 12:21 PM   #10
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Code:
title windows
root (hd0,1)
map (hd0,1)(hd0,0)
map (hd0,0)(hd0,1)
makeactive
chainloader +1

Sadly even I cut and paste correctly it still does not work.
 
Old 06-07-2008, 01:47 PM   #11
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
I found out that resizing a vista partition can cause vista not to boot up or recognize the partition. Here is a link that shows you what to do after resizing a vista partition. Scroll down until you see this paragraph

Once it's done, quit, remove the live cd and then reboot your computer. Unless you are very lucky, you'll be greeted with this horrible error message saying "Windows Failed to start. A recent hardware or software change might be the cause.



Start reading from there and you should get vista back.


http://www.howtogeek.com/howto/windo...sta-partition/

After that is done, follow the above suggestions on adding vista to the grub menu.

Good luck

Last edited by dv502; 06-07-2008 at 02:59 PM.
 
Old 06-08-2008, 06:36 AM   #12
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Thanks for the help.
However after reading lots of advice I now have this in my menu.lst file

Code:
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,4)/boot/gfxmenu
default 0

title linux
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=0185a4f0-bb82-450c-9cde-5e8767c1c8e0 resume=/dev/sda6 splash=silent vga=788
initrd (hd0,4)/boot/initrd.img

title linux-nonfb
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=0185a4f0-bb82-450c-9cde-5e8767c1c8e0 resume=/dev/sda6
initrd (hd0,4)/boot/initrd.img

title failsafe
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=0185a4f0-bb82-450c-9cde-5e8767c1c8e0 failsafe
initrd (hd0,4)/boot/initrd.img

title windows
root (hd0,1)
map (hd0,1)(hd0,0)
map (hd0,0)(hd0,1)
makeactive
chainloader +1

title windows-0
root (hd0,0)
chainloader +1

title windows-1
rootnoverify(hd0,0)
makeactive
chainloader +1
boot
Windows - gives file error
windows-0 gives me Windows or Dell Diagnostics which I spent 18 hours running with no benefit
windows -1 gives unrecognised device error.


Is all lost ??? Do I have to install Windows and of course then Linux again ????

PS sadly http://www.howtogeek.com/howto/windo...sta-partition/
did not solve the problem
 
Old 06-08-2008, 11:31 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
You have a FAT16 and two NTFS partitions. If booting from sda2 didn't work try sda3, sda3 is over 20 times the size of sda2. Use your first menu.lst entry for windows with the map commands and change the (hd0,1) entries to (hd0,2). Your first partition (hd0,0) is your Dell diagnostics so it has to be sda2 (hd0,1) or sda3 (hd0,2).

Hope it works.
 
Old 06-08-2008, 11:49 AM   #14
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
I notice the three windows boot options has hd0,0 which points to the first partition which is a FAT16 i.e dev/sda1.

Your NTFS partitions are on dev/sda2 and /dev/sda3. Partitions are numbered starting at zero. So
/dev/sda2 is refer to as hd0,1 and /dev/sda3 is hd0,2

try this, re-edit and substitute the hd0,0 with hd0,1 and hd0,2 accordingly

title windows-1
rootnoverify(hd0,1)
makeactive
chainloader +1
boot

title windows-2
rootnoverify(hd0,2)
makeactive
chainloader +1
boot

Both of these points to the NTFS partitions which vista uses. Test and let us know.

Hey yancek, as I was writing, its looks like you beat me to it. We both have similar answers for him/her.

Last edited by dv502; 06-08-2008 at 12:02 PM.
 
Old 06-08-2008, 04:27 PM   #15
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
Thanks I will try that tomorrow
 
  


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
Fedora and Vista Dual Boot (vista installed first) firekid1239 Linux - Newbie 10 05-04-2008 09:35 PM
Grub help lost vista when installed kubuntu lozza1978 Linux - Newbie 11 05-21-2007 02:23 AM
Cannot boot already installed ubuntu on newly installed win xp abhi_337 Ubuntu 1 07-13-2006 03:33 AM
how would you install win xp, win vista(beta), and slackware with a tri boot? whited Linux - General 3 07-02-2006 11:12 AM
Installed Red Hat 9 but Lost Win XP renalmirol Red Hat 16 06-07-2005 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:03 PM.

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