LinuxQuestions.org
Register a domain and help support LQ
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, 07:38 AM   #1
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Mandriva 2008 Spring
Posts: 652

Rep: Reputation: 31
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, 07:54 AM   #2
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: Mandriva, RHEL, Mageia, SuSE
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, 08:07 AM   #3
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Mandriva 2008 Spring
Posts: 652

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

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

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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, 09:25 AM   #6
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Mandriva 2008 Spring
Posts: 652

Original Poster
Rep: Reputation: 31
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, 10:59 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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, 12:38 PM   #8
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Mandriva 2008 Spring
Posts: 652

Original Poster
Rep: Reputation: 31
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, 12:59 PM   #9
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,104

Rep: Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815
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, 01:21 PM   #10
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Mandriva 2008 Spring
Posts: 652

Original Poster
Rep: Reputation: 31
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, 02: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 03:59 PM.
 
Old 06-08-2008, 07:36 AM   #12
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Mandriva 2008 Spring
Posts: 652

Original Poster
Rep: Reputation: 31
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, 12:31 PM   #13
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,104

Rep: Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815
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, 12:49 PM   #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 01:02 PM.
 
Old 06-08-2008, 05:27 PM   #15
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Mandriva 2008 Spring
Posts: 652

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 07:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration