Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
First of all, I know that this topic has very little to do with linux at all, but I don't know where else to go. If it really shouldn't be here, go ahead and remove it, I'll figure something else out.
Anyway, I recently got a laptop with Vista on it (blegh). This laptop is mostly going to be using windows applications (like games, and, when I get to college, engineering software and the like), so putting linux on it, as much as I'd like to, would be kind of a waste of time.
So it has Vista, but Vista can't play TF2 for some reason. I added an XP partition, to play TF2 with. The thing is, XP doesn't recognize Vista, so I can't dual boot the two. The laptop didn't come with a Vista CD, so I can't boot that to repair the MBR. So I decided to try doing it with GRUB.
Grub runs fine, and it boots Windows XP perfectly. But when I try to boot Vista, I get an error saying that the filesystem cannot be read.
Here's some output (yay backtrack):
Code:
root@bt:~# fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x03c9ab2c
Device Boot Start End Blocks Id System
/dev/sda1 65 7516 59858190 7 HPFS/NTFS <-----Windows XP
/dev/sda2 7715 38689 248806687+ 7 HPFS/NTFS <-----Windows Vista
/dev/sda3 * 1 64 514048+ 83 Linux <-----Boot partition with grub, I don't know why it's down here, it comes first physically
Code:
root@bt:/media/boot/boot/grub# cat grub.conf
# By default, boot the first entry.
default 0
# Boot automatically after 30 secs.
timeout 30
title Vista
rootnoverify (hd0,2)
makeactive
chainloader +1
title XP
rootnoverify (hd0,1)
chainloader +1
I've also tried it with:
Code:
title Vista
rootnoverify (hd0,0)
makeactive
chainloader +1
and I get an error about not finding ntldr, which makes me think that that's the correct Vista identifier, which is confusing. But in any case, it should be able to find ntldr, I haven't touched that partition.
Once again, I'm very sorry that this is only remotely linux related, but I don't know where else to go.
I get an error about not finding ntldr, which makes me think that that's the correct Vista identifier, which is confusing. But in any case, it should be able to find ntldr
Not finding ntldr is a windows error message, so grub has worked correctly. Usually you solve these things with a windows rescue disk.
That's what I was afraid of. I don't have the install/rescue disk. I guess I'll have to....acquire it. Thanks
Do you think you could explain why Vista ended up on (hd0,0)? That makes no sense at all to me. Physically, the boot partition is there, and according to fdisk (for some reason) that is my XP partition. Vista is the last partition, so how did it end up as the first?
[Edit: acquiring, as it turns out, isn't illegal. Windows has thoughtfully made it publicly available]
Last edited by MediocreGopher; 06-25-2009 at 12:58 PM.
The boot partition/"active partition" doesn't have to be the first partition. I'm not sure why your partition table has partition 3 with the first cylinders - not that there's anything wrong with that. Did you make the boot partition? Sometimes laptops have a "rescue" partition.
When you boot (hd0,0) you're trying to boot the boot partition, which doesn't have an OS. I presume when you boot (hd0,2) you also get the ntdlr error.
Yeah, I made the boot partition. I was having trouble getting grub on one of the windows partitions, so I used that instead.
booting (hd0,2) gets "Error 13: Invalid or unsupported executable format". Which is a grub error, so I think it's reading the boot partition as (hd0,2), as there isn't an actual OS on it. Grub's whole naming scheme isn't making sense.
Grub runs fine, and it boots Windows XP perfectly. But when I try to boot Vista, I get an error saying that the filesystem cannot be read.
You installed xp after vista and xp will not boot vista, by design, unless you go through a number of steps. This is explained on the support.microsoft.com website and you can search there for 'boot vista after installing xp' or something like that.
Well, the laptop came with two unneeded partitions (although maybe that recovery partition was needed after all :P), so yeah, I've been doing some resizing. I like to leave some unused space in between partitions if I can afford it, for when situations like this come up. That way I don't have to be moving and entire operating system 50mb to the left just so I can put in a boot partition.
Had to go through it like four times before it decided I didn't need anything repaired, but it did work and I am finally dual-booting vista and xp using grub. Thank you for all your help mostlyharmless!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.