Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-06-2007, 08:24 PM
|
#1
|
Member
Registered: Nov 2006
Posts: 46
Rep:
|
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
|
|
|
07-06-2007, 09:48 PM
|
#2
|
Member
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87
Rep:
|
Post an output of "fdisk -l" and copy/paste the contents of /boot/grub/device.map
|
|
|
07-06-2007, 10:27 PM
|
#3
|
Member
Registered: Nov 2006
Posts: 46
Original Poster
Rep:
|
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
|
|
|
07-06-2007, 10:28 PM
|
#4
|
Member
Registered: Nov 2006
Posts: 46
Original Poster
Rep:
|
Sorry, I have an type error
my vista is on /dev/sda6
|
|
|
07-07-2007, 12:02 AM
|
#5
|
Member
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87
Rep:
|
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.
|
|
|
07-07-2007, 07:52 AM
|
#6
|
Member
Registered: Nov 2006
Posts: 46
Original Poster
Rep:
|
hd0,3 no such partition
hd0,4 Invalid device requested
|
|
|
07-07-2007, 08:05 AM
|
#7
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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)
|
|
|
07-07-2007, 09:14 AM
|
#8
|
Member
Registered: Nov 2006
Posts: 46
Original Poster
Rep:
|
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?
|
|
|
07-07-2007, 07:51 PM
|
#9
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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)
|
|
|
07-07-2007, 09:48 PM
|
#10
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|