Windows Partition broken by Kubuntu?
Hi,
I have been running Kubuntu 7.10 for around a week now, and I just attempted to boot into windows for the first time since then (for all the problems ive had, totally hooked on linux). It began booting normally, and then a flash of blyue ith some ominous looking error codes flashed past, then loading into the built in SONY VAIO recovery center. From that I was able to get the following error message: No OS found on drive C:. Could not boot into Windows. I am wondering if this is coincidence, or something I have done while running Kubuntu has caused this. Possible culprits: Mounting my vista partition for read only access using script (this immediately proceeded me discovering this problem, as curiously all my program and OS files seem to be intact, my Documents and Settings appears blank). I obtained the script from this terminal command: # wget http://media.ubuntu-nl.org/scripts/diskmounter I did so at the recommendation of a page on the official ubuntu help site (which I have not been able to find again to post a link) Using Wine to try and run windows programs (I'm not sure if this could be related, dosent seem likely) Please offer any suggestions. While I am not overly upset my Vista partition has bit the dust, it would still be nice to have it back. Thanks, Greg |
First question: when you turn the power on, do you see a grub or lilo menu, with the choice of booting either Windows or Linux? Or, do you see a windows ntldr boot screen offering either Linux or Windows?
Second question: open a console and enter the command: fdisk -l. What is the output? It should be a simple table listing the size of the drive and the beginning and end point of each partition. Third question: can you mount the windows partition from Linux and pull off any files you want to keep, and re-install windows? If yes, it will break your bootloader if you're using grub or lilo. You need to make a Linux boot disk before re-installing windows. |
Question One: I load into the GRUB bootloader, offering me either Unbuntu or Vista/Longhorn. The Vista/Longhorn option takes me to the Vista boot loader (as I formerly had a windows XP partition where linux now sits, and I never updated the mbr)
Question 2: Code:
creature124@creature-lappy:~$ fdisk -l |
The output of fdisk -l has me worried. It shows only one partition on one disk. If that's the case, you installed Kubuntu over Windows. In other words, it no longer exists.
Did you do a generic "fdisk -l' or a specific 'fdisk -l /dev/sdb'? Boot into Kubuntu. Run these commands: 'sudo cat /boot/grub/menu.lst' and 'sudo cat /etc/fstab'. Copy the outputs of both commands and post them here. |
I also noted that when I looked at that output. I did the generic command, exactly as you typed it. I assure you, there is NO way I installed Kubuntu in such a way that removed Vista. When I attempt to load, it begins to boot, just like it always has, with the funny endless loading bar deal. Also, I can still access *most* of the files from my Vista partition, so obviously that data is still there.
I seriously wonder if the script I used to mount my vista partition for read only access (which I provided a link to in my original post) is the culprit, and somehow broke Vista. It sounds implausible even as I type it though. Darn. When I installed Kubuntu, I downsized the Vista partition to do it, and make doubly sure that my vista partition would not be erased. I am confused now. Tying myself in knots, figuratively. Here are the outputs of the commands you requested. sudo cat /boot/grub/menu.lst: Code:
# menu.lst - See: grub(8), info grub, update-grub(8) Code:
# /etc/fstab: static file system information. Thanks much, Greg |
This is getting worse by the minute.
Fdisk -l says you have only one hard drive with one partition, and it's formated for DOS/win95, not ntfs/vista, and that drive/partition is designated /dev/sdb1. It that correct to the extent that you have only one hard drive? Grub's menu.lst says you have three partitions, /dev/sda1 to /dev/sda3, with 1 and 2 formated for Vista and 3 formated for Ubuntu. So what happened to sdb1, and where did sda1 to 3 come from? And then there is fstab, which lists /dev/sda2 (vista), /dev/sda3 (Linux), and swap (/dev/sda5). I hesitate to point out that fdisk -l doesn't mention sda5 either. From that, I conclude that /dev/sda1, while formatted for Vista, is a data partition, and not an operating system partition (no bootable system there). So, when you turn the power on, do you see two entries for windows in the menu? Select the second one instead of the first one. What happens? I suspect that Ubuntu wrote an entry in menu.lst for the first ntfs partition even though it doesn't have a bootable operating system (I've seen that before). I also suspect that the bootable OS is in the second partition (information gleaned from fstab and menu.lst). If windows boots on selecting the second windows entry from the grub menu, then edit menu.lst and delete the first entry (the one that refers to partition hd0,0). Better yet, just comment that entry out (put the leading hash (#) at the beginning of each line. If you make a mistake, it's easier to remove the hash mark than it is to recreate the entry. Or do it in reverse if it's the first one that boots, and the second doesn't. There still remains the puzzleing output of fdisk. Quote:
|
There are indeed two Vista/Longhorn (loader) entries in grub, and I tried them both. The first one boots directly into the small VAIO recovery utility placed on my HDD by Sony. The second, which I presume would be my main Vista partition, gives the failed boot up sequence I previously described. I do only have one internal hard drive on my system - I have an external hard drive, but has not been connected since I started using Kubuntu, or for some time before.
Originally, when I first installed Kubuntu, I had no read or write access to my Vista partition. It appeared in Dolphin, but I received an error (hal-storage-fixed-mount-all-options refused uid 1000. I retrieved this error by attempting to access the recovery partition in Dolphin, and I am certain Vista partition gave the exact same output). I tried the ntfs-config utility that every forum seemed to recommend, but mysteriously the process won't run. So I tried a script called Diskmounter that I found referenced on the official ubuntu forums. I downloaded an ran the script (location in the first post) and it gave me read only access to the drive. I can now access my Vista data in Dolphin just as I do for the Linux file system (the recovery partition is labeled sda1, vista sda2 and linux sda3). I can read and copy all my data, but I cannot make changes. The exception, and the reason for my *most* stipulation, is that my C:/Documents and Settings/ folder appears empty, as if someone went in and deleted all files and subfolders. If this data is actually gone, it might render me unable to login, but it strikes me as unlikely that it would interrupt the boot process so early. The more I think on this, the weirder it gets. I hope that this can be resolved inside Kubuntu, because as seems to be common practice, I have not received any OS disks with my generic sony laptop. Instead, I was supposed to make 'recovery' disks that would reset my HDD to factory state. Bah. I would have, if that utility had ever actually worked, and sony had given me a straight answer when I told them I wanted discs. Now I am rambling. I'll stop now. Thanks, Greg |
It's been a long time since I used windows, I don't remember what files go into C:/Documents and Settings. Nor do I remember what attributes are set on the folder or it's contents. Could it be that the attribute is set to Hidden?
I'm out of suggestions, other than take it to a local computer shop to see if they can get the files from C:/Documents and Settings, and re-install windows for you. |
Ahh frakk it. I'm just gonna erase the bugger. The data on there is a want to retrieve, not a need to retrieve. I guess I'll just close that door and fully immerse myself into Linux.
Thank you -very- much for the help, I appreciate it very much. ~Greg |
How I solved a similar problem:
Mounting NTFS eSATA HD w/ error = "hal-storage-fixed-mount-all-options refused uid 1000" Don't forget to right click on desktop and choose Configure Desktop, then Behavior, then Device Icons, and check Mounted and Unmounted Hard Disk Volume As root in konsole: ntfsfix /dev/sdc1 Logging in as root and trying to change permissions, does not work. Something like this might work: ntfs-3g /dev/sdc1 /mnt/wherever -o force What do you add to fstab? Some answers at: http://mepislovers.org/forums/showth...fused+uid+1000 http://mepislovers.org/forums/showth...fused+uid+1000 Reboot with external drives installed and running (I have an 500GB eSATA drive and another USB drive). After ntfsfix /dev/sdx1 reboot and "hal-storage" error is gone Clicking on icon yields: Volume is scheduled for check. Please boot into Windows TWICE, or use the 'force' mount option. For example type on the command line: mount -t ntfs-3g /dev/sdb1 /mnt/sdb1 -o force Or add the option to the relevant row in the /etc/fstab file: /dev/sdb1 /mnt/sdb1 ntfs-3g defaults,force 0 0 Below #Dynamic entries below should be: /dev/sdb1 /mnt/sdb1 mtfs-3g nonauto, users 0 0 Then in command line as root do mount -t command as above, and all should work. |
All times are GMT -5. The time now is 10:06 PM. |