FC6 install broke windows, and now I cannot boot from CD-ROM
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
FC6 install broke windows, and now I cannot boot from CD-ROM
I wanted to dual boot FC6 with windows on my machine, as I'm looking to get to grips with linux. I formatted my computer with the windows CD, and I set up several partitions. I'm a little unsure how exactly I partitioned my drive because I kept on deleting and recreating them, but I think I wanted a large 220gb-ish partition for windows, 100mb for the /boot partition, 4gb for the swap and the rest for the / directory.
I installed windows fine on the largest partition, and it worked when I checked it. Then I put in the FC6 dvd and installed it on the correct drives (I thought). Booted into Fedora Core 6 fine, but when I tried to boot into Windows it just stopped. It boots into grub okay, gives me the choice of FC6 or Windows, boots Fedora okay, but when I select Windows to boot, in prints something I can't remember exactly right now, but it's like
something (hd0, 4)
chainload+1
but it just hangs there. I thought I had possibly effed up the Windows MBR, but I thought fair enough, I'll just stick in my windows CD and format again. Alas, this is the worst part, I can no longer boot from CD. I've tried both my Windows CD and my FC6 DVD, but when the PC says 'Press any key to boot from CD...', I press the key, and it hangs, then the screen goes black.
I ran fdisk -l, here is the output :
Disk /dev/sda: 300.0 GB, 300067970560 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 36480 292921177+ f W95 Ext'd (LBA)
/dev/sda5 14 28059 225279463+ 7 HPFS/NTFS
/dev/sda6 28060 35970 63545076 83 Linux
/dev/sda7 35971 36480 4096543+ 82 Linux swap / Solaris
I've tried pressing 'e' at the grub screen and changing (hd0, 4) to (hd0, 1), (hd0, 2) up to 7, I think, and then I went (hd1, 0), (hd1, 1) etc, but to no avail.
I have a problem now, as I can't just format my hard drive with a disk. So, any help would be appreciated!
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800
Rep:
I've never heard of anything like this before. I assume when you say pressing the 'e' in the grub menu for (hd1, 0), if you're using a sata drive shouldn't it be sd1, 0? I don't have a sata drive so I'm not certain how it works.
Have you checked the BIOS for the boot order to make sure cd drive is set to bootable?
Just some thoughts!
***UPDATE***
Can you use a windows/dos boot floppy and type fixdisk /mbr?
Last edited by BittaBrotha; 11-12-2006 at 10:28 PM.
The CD drive is definitely set to bootable. It also definitely works, as I'm able to use it in Linux. I tried to make an MSDOS bootable floppy disk on the pcs at my uni, and seemed to work, but when I put it in my computer and tried to boot from it, I got the message "IO error, please replace disk". I tried this with two disks, neither worked. And I know the floppy works, because it allowed me to transfer files to and from the disk and hard drive within linux. Maybe I'm making the floppy incorrectly? In Windows I right-clicked on my Floppy drive and 'made MSDOS boot floppy'.
Also tried the root (hd0, 0) and setup (hd0, 0) commands at the grub prompt, still doesn't work. I couldn't get this command to work though:
>grub-install --recheck /dev/sda
I don't have a computer to do my work on at the moment, it's so annoying. Any help appreciated!
I backed up all my files, I don't have any on the NTFS partition so it's not necessary to install anything to view windows. All I really want to do is go back and do the whole hard drive again, clean.
After I ran the root (hd0,0) and setup (hd0) commands at the grub prompt, it still wouldn't boot into windows, but I tried to boot from my FC6 CD today, and it worked! However, it still won't boot from the Windows CD. I'm in the process of aquiring another Windows CD and seeing if it'll boot from that. I reinstalled FC6, I don't know why, perhaps just to make sure I could. Luckily, it didn't break anything that wasn't already broken.
I'll let you know what happens after I get the new Windows CD.
The windows install disk requires a primary partition.
There is probably nothing (physically) wrong with your XP disk.
I'd say at a rough guess you installed XP into the extended partition - however it would have put its boot files into sda1. And marked it bootable.
This will work if the partitions are unused.
When you installed FC6 you used this same partition as /boot.
Goodbye to the windows boot files.
I reckon I've overwritten the Windows boot files too, but why would that stop me reinstalling with a new CD?
I tried to use a different windows CD yesterday, and it still didn't work. Where the FC6 install DVD boots straight into anaconda, BIOS asks me if I want to boot from the Windows CD (by pressing any key). When I press a key, I noticed a line written to the top of the screen over all the BIOS information saying "Setup is inspecting your system settings" or something along those lines, then the screen just goes black, and it hangs.
It's really weird to me that the FC6 DVD boots but the Windows CD won't. Any theories?
The Windows CD is booting - it just won't proceed.
The M$oft installer appears to only look at (Windows) primary partitions - bootable also is a consideration. If it can't find what it considers an acceptable environment it just stops. This is from observation, I haven't seen the code.
You need to create a VFAT or NTFS primary partition.
To save a lot of messing around in your case I'd move /boot into a logical partition, delete sda1 and recreate it as NTFS.
The try your XP disk.
Fix up the bootloader and fstab and everyone should be happy.
The Windows CD is booting - it just won't proceed.
The M$oft installer appears to only look at (Windows) primary partitions - bootable also is a consideration. If it can't find what it considers an acceptable environment it just stops. This is from observation, I haven't seen the code.
You need to create a VFAT or NTFS primary partition.
To save a lot of messing around in your case I'd move /boot into a logical partition, delete sda1 and recreate it as NTFS.
The try your XP disk.
Fix up the bootloader and fstab and everyone should be happy.
Okay, that sounds good, but how exactly would I do that? I have the FC6 DVD so could I mess with the partitions in that?
I'm noot sure how to move /boot into a different partition, and when I do is it okay to be in the same partition for / of FC6?
What exactly do you mean by 'fix up the bootloader and fstab'? I'm really new to linux, I've never even heard of fstab. I know what the bootloader is, but are you saying to reinstall it?
I'll have a look with the FC6 DVD tonight, see if I can figure out how to do any of this stuff.
Should all be do-able from the FC6 DVD - don't know as I left the Redhat mire at RH9.
Simplest solution would be to delete everything and start again. Plan your partitions, making sure you give Windoze a primary, and install it first.
If you still want to install Windoze to a logical partition, it will require its own primary partition as well.
Then FC6 - all should be set up (correctly) for you.
Windows wasn't on the first partition of the Master drive. That should be amended to:
something (hd0, 4)
map (hd0,4) (hd0,0)
map (hd0,0) (hd0,4)
makeactive
chainload+1
to fool windows into behaving as though it's on the first partition.
The second part of the problem is making multiple changes to partition boundaries, then trying to write files. One of the few times in Linux that re-boot is necessary is when changing partition boundaries. The system is working with the partition table that was in force when you booted. Then you change the partition table without re-booting, and you end up with overlaping partition boundaries. The system will choke. Been there, done that. Had the devil of a time cleaning up my mess.
Plan your partitions before you start. To avoid hassles with windows, put it in the first partition. Re-boot is required to finish installation. Once you are assured that windows boots, put the Linux cd in the drive, and re-boot.
Make your Linux and swap partitions, and install the system. You may be required to re-boot. The grub screen should show both windows and Linux. Boot LInux to finish the installation, then re-boot and select windows from the menu to be sure that it will boot as expected when selected.
I tried to format using the FC6 CD, but it wouldn't let me do it without installing Fedora at the same time, and I couldn't work out how to do that without putting it in the first partition (since there were no other OSs on at the time).
I tried a bunch of CD bootable partition managers, and the only one that worked was from the Universal Boot CD (great CD). I formated the whole hard drive, then wouldn't you know it, the windows CD would boot. So, I carried out a sensible install this time, with windows on the first partition, Linux on the second (swap on third). Everything's working now! Hooray!
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800
Rep:
Now that hard drives are so huge, whenever I install a new one, I always partition it before installing any OS. This way, alot of issues don't come up later on. I'm a distro junkie anyway!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.