major problem -- linux swapped partitions around, won't boot windows!
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.
major problem -- linux swapped partitions around, won't boot windows!
ok..im using suse 10 and windows xp (dual boot), and somehow, my c drive (windows installation partition) and D drive (windows restore partition) were switched around by linux (what happened is i ran repair from the linux install dvd because i had some problems with linux, and it said i had some kind of errors (fstab errors or something like that), so i said repair, and it basically switched my c and d partitions around! so now when i try to run windows, it says it is missing some files, so i think what is happening is linux put my d drive where my c drive was, and my c drive where my d drive was!!, i really need help fast, i have important things to take care of on my computer, and i wanted to know how i could fix this?
Has the output of fdisk -l changed for the drive since the repair? If you were deleting/creating partitions with fdisk during the repair, fdisk has an option on the advanced menu to fix the ordering of partitions.
i'm very inexperienced with linux, what do you mean by fdisk -l? i didnt create or delete any partitions when repairing, all i know is on the partitions for my drive (the sectors where each partition starts and ends), my recovery drive starts at 0 and ends around 430 now, and my C drive starts at 431, and i'm pretty sure the C drive should start at 0 and the other drives start after that, considering that's where my installation for windows is. it's trying to read off of my d drive, instead of my C drive, because it is saying it is missing some files or something, and my recovery options arent there. here, i uploaded a screenshot of my partitions.
sorry to double post, but someone please help me, i really need to quickly resolve this problem, i have things to attend to in windows that i really cant wait for, i would greatly appreciate it!
I really couldn't see how Linux could physically "swap" your partitions.
I think what you are seeing in the screenshot there is simply where Linux is mounting your C and D partitions - The important thing to note here is that hda1 still starts at 0 and ends at 430, and hda2 starts again from 431. Under a windows based system (typically) hda1 would be C, hda2 would be D etc..
Can you give us some more information - what bootloader are you using? What is the exact error message you get when trying to boot windows?
To be more specific, we need to see the contents of /boot/grub/menu.lst and /etc/fstab.
Menu.lst is the bootloader config file, which tells the bootloader where to look for the rest of the Linux bootloader, or where to pass the boot process to for Windows bootloader.
Fstab is the File System Table, a list of mountable partitions and devices.
It usually boils down to a simple edit of menu.lst to point to the partitions in fstab (and their mount poits) to correct such a situation.
Usually, but not always. Give us more information. Perhaps we can help.
well, basically what it did is take my c drive (normally hda1) and my d drive (normally hda2) and switch them around, and now my c drive is hda2, so when windows tries to boot (whether i use grub or not), it tries to read from my D drive, which contains no system files. when i boot it says it is missing the file "<windows root>/system/hal.dll" and to install a copy of this wile. in order to fix this, i believe i need to switch the order of these partitions. i dont know how linux decided to do this in the first place, but it was somewhere in the automatic repair sequence of the installer, when i originally had some minor issues with the linux installation. any ideas on how to switch these partitions back in place? sorry, i was typing this at the time you posted your reply. ill see if i can get a log of the files in here in a few minutes.
These recovery partitions are usually marked "hidden" so they won't mess with Windows booting. Just fire up your favorite fdisk from some LiveCD and set the hda1 partition type "hidden". And set bootable flag for hda2. This hal.dll is a separate Windows-specific problem, do a Google search for solution.
As far as I know, you can't "hide" a partition within grub - and it wouldn't make sense to do so anyhow as grub will only use the partition you specify. After grub does it's thing, its all up to what is on your MBR that will determine what happens next.
Quote:
PS i did what you said, and it boots what is on my hda1 (d drive, recovery partition)
What exactly is on your recovery partition? What did it actually boot?
I don't think this is the case, but if you truly believe Linux has physically swapped your partitions, you could change the line rootnoverify (hd0,0) to rootnoverify (hd0,1) - this will make grub try to boot from the second partition on the first drive on your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.