LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 10-21-2010, 11:39 PM   #1
qwertz333
LQ Newbie
 
Registered: May 2010
Posts: 19

Rep: Reputation: 0
Error 0xc0000225 after resizing partition in Linux, can't boot Windows 7 now


Hi,
I tried to resize the second partition on a friend's notebook from 252 GB to 75 GB – the partition where Windows 7 is installed (it's a Lenovo IdeaPad U550). I did this with KDE Partition Manager from a Linux Mint 9 KDE LiveUSB after I couldn't find the partitioning utility in Windows 7 in Control Panel, where I read it was supposed to be...

Something went terribly wrong, and now I can't boot into Windows 7 anymore. I'm not sure why though, because KDE Partition Manager didn't report any errors, I went through the log as I always do.

What I did was to shrink that partition from 252 GB to 75 GB, and accidentally, I also moved it to the left by 2,5MB (towards the first 200 MB partition, the boot partition.), which might have caused the problem, I don't know... I didn't notice this was part of the changes that were being applied until it was too late.


This is the error I'm getting before Windows starts (more or less; I found this error googling and it seems to correspond to the one I'm getting in Czech):

"Windows did not start correctly. A recent hardware or software change might
be the cause. To fix the problem:
1. insert your windows installation cd and restart your computer
2.choose your language settings and click next
3.click repair your computer

If you do not have this disc, contact your system administrator or computer
manufacturer for assistance.

Status: 0xc0000225”




I'm posting here because I have almost no experience with Windows 7 (the last Windows I was using was XP) and the boot stuff is a lot different, so I don't want to screw things up (more than they already are).
Could this be solved by installing GRUB 2, that would only boot into Windows 7? My friend doesn't really want Linux on her notebook, so no dual boot, just a working Windows 7 install...But there's the problem that I don't know anything about the Windows 7 bootloader. Could somebody explain to me how that boot partition works (those first 200MB on the hard disk), what happens to it if GRUB2 gets installed, WHERE it gets installed, if there is maybe a backup of the windows 7 boot partition somewhere, and how I could restore it, if windows won't boot? Here's how the partition table on that notebook looks like:


/dev/sda1: ntfs, 200 MB, flag "boot"
/dev/sda2: ntfs, 75 GB, (Windows 7 is installed here). Clonezilla reports “dirty” (damaged?) filesystem, however I can mount it in Linux (LiveCD) with no problems. Maybe these warnings come from the fact that Windows 7 ntfs partitions needs to be checked by chkdsk after every resize, and the partition is fine apart from that...
unallocated space, 177 GB – where part of the second partition was before shrinking.
/dev/sda3: extended, 30,33GB
/dev/sda5: logical, ntfs, 30,33GB, Windows D Drive
/dev/sda4: ntfs, 14 GB – this one might be some sort of a backup partition. It contains directories like “boot” (in there, there is a file called bcd, seems important), and there's also a “bootmgr”... and a pagefile.sys (wonder what it's doing there, another and bigger pagefile.sys is on the second partition, the one with the Windows install...)


What options do I have now?
There is no install disk for Windows 7, it came pre-installed.
I couldn't fix this with the Linux utilities – neither GPartEd nor KDE Partition Manager detect any errors (I clicked Check and fix), and fsck.ntfs doesn't exist yet, apparently.
Linux-based LiveCD I've been booting from trying to fix this (Clonezilla, GPartEd LiveCD) report “dirty” /dev/sda2, and suggest using chkdsk, which I can't do, besause I can't boot into Windows.



Right now, I'm downloading a Windows 7 Recovery Disc from here:
http://neosmart.net/blog/2009/window...-repair-discs/

I hope I'll be able to run chkdsk from there or some sort of Install Repair...


But I really don't know what to do without causing even more damage.

1.Install GRUB? (doesn't it damage this 200MB boot partition? How does that partition work anyway?)
2.Wait for the Windows 7 Recovery Disc to download (this will take a while, I'm on GPRS right now) and run chkdsk/repair install?
3.Try to build some live environment with Bart PE and Windows XP and run chkdsk from there? (probably a bad idea, XP NTFS and Windows 7 NTFS is not exactly the same, plus the bootloader problem doesn't go away, I guess)
4.Find out if the 4. partition is really some backup and figure out how to restore it?

At this point I'm not even sure what the problem is. Corrupt filesystem of the second partition or a broken bootloader, or both?

I realize that this is rather a Windows problem, but with a possible Linux (GRUB) fix, which is why I'm posting here. Oh and my post at sevenforums is still waiting for approval. And most importantly, I'm desperate.

Please help, I'd be really grateful, my friend is probably going to kill me, and I don't even know where to start...
 
Old 10-22-2010, 05:00 AM   #2
qwertz333
LQ Newbie
 
Registered: May 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, never mind, I solved it with a Windows 7 Repair Disc, which fixed the Windows Boot Manager.
Sorry for posting this non-linux topic here, I just thought that the problem might have been caused by KDE Partition Manager, and that one possible solution could be installing GRUB, that's all.

For anyone who gets here via Google and is interested in a detailed solution, here's the thread:

http://www.sevenforums.com/crashes-d...cant-boot.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
deleting linux and resizing windows partition mossy464 Linux - General 12 04-23-2008 12:26 PM
Resizing Linux and Windows Partition (with YasT) n_nisanth Linux - Hardware 3 06-17-2006 02:45 AM
Resizing Windows partition to add LINUX latino Linux - General 2 02-21-2005 02:58 PM
Linux does not boot after partition resizing stairynight Linux - Software 17 08-19-2004 12:08 PM
Resizing Windows Partition after Linux has been installed Pi Of Five Linux - Software 1 07-06-2004 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration