LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-06-2007, 08:24 PM   #1
danfou
Member
 
Registered: Nov 2006
Posts: 46

Rep: Reputation: 15
dual boot: ubuntu, vista


Hi,

I have vista, and when I install ubuntu, I cannot boot vista anymore.

I've edited the menu.lst:
title vista
root (hd0,5)
savedefault
makeactive
chainloader +1

my vista is on /dev/sda5.

When I reboot and choose vista, I get:
root (hd0,5)
filesystem type unknown, partition type 0x7
savedefault
makeactive
Error 12: Invalid device requested

How can I fix this problem?

Thanks
 
Old 07-06-2007, 09:48 PM   #2
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Rep: Reputation: 15
Post an output of "fdisk -l" and copy/paste the contents of /boot/grub/device.map
 
Old 07-06-2007, 10:27 PM   #3
danfou
Member
 
Registered: Nov 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 261 2096451 de Dell Utility
/dev/sda3 262 9729 76051710 f W95 Ext'd (LBA)
/dev/sda5 3449 6032 20755948+ 7 HPFS/NTFS
/dev/sda6 6033 9729 29696121 7 HPFS/NTFS
/dev/sda7 262 3300 24410704+ 83 Linux
/dev/sda8 3301 3448 1188778+ 82 Linux swap / Solaris

Partition table entries are not in disk order

device.map:
(hd0) /dev/sda
 
Old 07-06-2007, 10:28 PM   #4
danfou
Member
 
Registered: Nov 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Sorry, I have an type error

my vista is on /dev/sda6
 
Old 07-07-2007, 12:02 AM   #5
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Rep: Reputation: 15
Try it using (hd0,3) and (hd0,4) -> edit /boot/grub/menu.lst

One of those should work. I see that you have no /dev/sda2 and /dev/sda4 so i'm thinking that /dev/sda6 would actually be hd0,3

Try them both anyway and see what happens.
 
Old 07-07-2007, 07:52 AM   #6
danfou
Member
 
Registered: Nov 2006
Posts: 46

Original Poster
Rep: Reputation: 15
hd0,3 no such partition
hd0,4 Invalid device requested
 
Old 07-07-2007, 08:05 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
hda4 is missing because logical partitions always start at #5---i.e. there is a presumption that 1-4 are either primary or extended.

But why is hda2 missing?

hda6 in fact becomes hd0,5 in "grubese"

I also note the boot flag on hda1.

Does Windows boot correctly when set up this way? (Install on hda6 (logical) , with boot flag on hda1)
 
Old 07-07-2007, 09:14 AM   #8
danfou
Member
 
Registered: Nov 2006
Posts: 46

Original Poster
Rep: Reputation: 15
I used to have xp on hda1, and vista on hda6.

I think that's why it works.

But now I replace xp with ubuntu

That may be the problem.
What should I do?
 
Old 07-07-2007, 07:51 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
we started saying hda when we should have been saying sda

You say that XP was on sda1, but you replaced it with Ubuntu. That is not what fdisk is telling us.

What configuration do you want to end up with? It might be easier to simply re-install everything.

If you decide to press on, I would say the first thing is to find out where sda2 is. Do you have a live CD with Gparted or QTparted? If you don't figure something out, do this as root:

dd if=/dev/sda skip=446 bs=64 count=1 | hexdump -C

This will give us the raw data in the partition table (post the results here)
 
Old 07-07-2007, 09:48 PM   #10
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Quote:
Originally Posted by danfou
...When I reboot and choose vista, I get:
root (hd0,5)
filesystem type unknown, partition type 0x7
savedefault
makeactive
Error 12: Invalid device requested
When all else fails, read the error message.

Change root (0,5) to rootnoverify (hd0,5) and add boot as the last command.

Code:
title vista
rootnoverify (hd0,5)
savedefault
chainloader +1
makeactive
boot
Grub Manual Reference: 4.2.6 DOS/Windows
 
  


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
Vista and Ubuntu dual boot glore2002 Linux - Software 13 05-08-2007 09:02 AM
Dual Boot Setup - Booting Vista Changes Linux Boot Partition Type to Amoeba Chewie71 Linux - General 1 05-03-2007 02:43 PM
problem dual booting Vista and Ubuntu 6.10 with 2 sata drives skails22 Linux - Newbie 2 02-06-2007 07:57 PM
how to dual boot vista and ubuntu? bojox Linux - Newbie 2 01-28-2007 01:10 AM
Dual-Boot: Ubuntu now, Vista Later? leiavoia Ubuntu 1 08-27-2006 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:53 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