Windows 7 Not Booting after Grub installed to bootsector
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
My computer came with Windows 7 installed on it. I wanted to try Ubuntu, so I installed it alongside Windows 7 and everything was fine. I needed more space on my Windows 7 partition, so I deleted the Ubuntu partition from the hard drive. When I went to restart I got a blank screen. I reinstalled Ubuntu allongside Windows 7 and was able to restart and boot Windows. The next day I got the same blank screen, so I reinstalled Ubuntu over Ubuntu, leaving the Windows 7 partition alone. After that, when I try to boot Windows 7 it keeps sending me back to the select an OS page. I get an error that says:
The NTFS partition is hibernated. Please resume and shutdown Windows
properly, or mount the volume read-only with the 'ro' mount option, or
mount the volume read-write with the 'remove_hiberfile' mount option.
For example type on the command line:
mount -t ntfs-3g -o remove_hiberfile /dev/sda3 /media/OS
whenever I try to access the Windows OS portion of the hard drive.
When I try the command it does not work and I get a message saying that "only root can do that"
I can not resume Windows to shut it down properly though, because I must first unhibernate Windows.
I believe this may be a bug.
This is what the bootinfoscript reports, showing that Grub has overwritten the bootsector, which prevents Windows from booting:
sda2: _______
File system: ntfs
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda2
Operating System:
Boot files: /bootmgr /Boot/BCD
Changed in grub2 (Ubuntu): | |
status: | Invalid → Incomplete |
Changed in grub2 (Ubuntu): | |
status: | Invalid → Confirmed |
You seem to be conflating two unrelated errors. One involving mounting your windows partition from within Ubuntu, and one with booting windows. If you want to clear the hibernation file and mount the partition from Ubuntu, you need to prefix the command with sudo to get super user permissions. See http:// wiki.ubuntu. com/RootSudo for more information.
When you try to boot windows, is there any error message from grub? Please run this script and add the results to this report:
http:// sourceforge. net/projects/ bootinfoscript/