Page 1 of 2 12 LastLast
Results 1 to 10 of 32

Thread: Windows7 not booting after GParted resize

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Beans
    11

    Windows7 not booting after GParted resize

    Hi all,

    I am new to ubuntu, I've been a windows user all my life. I had a bit a problem with dual booting 9.04 with windows 7. My first mistake was not consulting the resources on this site before I blindly dove in to Ubuntu.

    It is pretty much the same story I'm sure you have heard a thousand times. I recently upgraded to windows 7 64-bit from vista. I decided I also wanted to dual boot ubuntu 9.04. Through the ubuntu installer I allocated 150gb to ubuntu. It installed successfully, only I discovered the partition only had about 2.5gb. I was successfully dual booting ubuntu and windows 7, but I needed more space on my ubuntu partition. So, I used GParted to shrink the windows partition and grow the ubuntu partition... and guess what! Windows 7 won't boot. When I go into GParted now, the windows partition is still there, only it is not recognized anymore. It is "Unknown". I have tried booting with the windows 7 disk and having it do the "Mr. Fix-it" autorepair windows does, but it did not work.

    I only blame myself because if I had tried reading up on what I was doing before I did it, I wouldn't be in this mess. My question is if there is anything I can do to get windows to boot again, or perhaps recover the data. Out of impatience and misplaced confidence I only backed up some of my more important documents and didnt backup music, photos, all that stuff.

    I am at my work computer right now, so I won't be able to paste fdisk or menu.lst outputs until I get home in a couple hours.

    Thank you in advance!

  2. #2
    Join Date
    Feb 2008
    Location
    Planet earth, for now.
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Windows7 not booting after GParted resize

    I'm not sure if 7 is the same but with XP you could stick the installation disk in and go to 'Repair'. In there you can run help I think and there is a command containing 'chkdisk'. Run that. Then 'fixboot' and 'fixmbr'.

    Of course, none of this might work in 7 but fixed things when I did exactly the same thing as you running XP.

  3. #3
    Join Date
    Oct 2007
    Beans
    93

    Re: Windows7 not booting after GParted resize

    you might be able to boot into windows from a live cd and repairing the partition (not sure if possible), or you can try testdisk ans see if it can fix the problem.. i've used it successfully a couple of times to fix ntfs partitions...

    if you have valuable data, you might want to make an image of your partition, in case something goes wrong, you might be able to give it another shot if you have a backup image

  4. #4
    Join Date
    Sep 2009
    Beans
    4
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Windows7 not booting after GParted resize

    Hmm. What I'm thinking is that when you tried to resize the partition, gParted did something stupid, and your partition entry for windows was removed. Assuming you havn't used the pc since that happened, you should be able to recover all the data using testdisk. I would run it off an Ubuntu live cd. It should scan your hard disk and detect the windows partition. You can then re-write the partition table, and check that it's all there again with gParted.
    I had a similar problem a while ago, where the windows installer decided to delete my partition table... A night of messing with testdisk and sfdisk fixed it.
    I would DEFINITELY advice, if possible, image your hard disk, and save it somewhere safe, so that if anything goes wrong you have a fall-back
    If you could possibly post a screenshot of gParted, or the output of fdisk when you run them from a live cd, it would help work this out...

  5. #5
    Join Date
    Sep 2009
    Beans
    11

    Re: Windows7 not booting after GParted resize

    Quote Originally Posted by Razz27 View Post
    Assuming you havn't used the pc since that happened, you should be able to recover all the data using testdisk. I would run it off an Ubuntu live cd. It should scan your hard disk and detect the windows partition. You can then re-write the partition table, and check that it's all there again with gParted.
    I will try this when I get home. What do you mean by
    Quote Originally Posted by Razz27 View Post
    "Assuming you haven't used the pc since..."?
    I have been running Ubuntu since it happened last thurday. Would that foil the plan? What kind of use would close this option to me?

  6. #6
    Join Date
    Apr 2007
    Beans
    636
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Windows7 not booting after GParted resize

    When you used gparted on the Win 7 partition, you might have wiped out files at located near the high end of the partition. I have observed that XP will sometimes have files near the high end even after defragmentation. Somewhere on these forums I have read that shrinking the Vista partition with anything but it's own "shrink volume" utility is a no-no.

    Jerry

  7. #7
    Join Date
    Jun 2006
    Location
    Texas
    Beans
    3,931
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Windows7 not booting after GParted resize

    Starting with Vista - MSoft made some changes to the way it installs itself in a partition. Gparted can deal with it but should have the round to cylinder unchecked.

    From the Gparted FAQ
    9 : After resizing my Vista partition, Vista won't boot. How can I fix this?

    The following article by the How-To Geek contains useful information regarding resizing your Vista partition, and getting it to boot again.
    Using GParted to Resize Your Windows Vista Partition

    If your PC did not come with a complete Vista installation CD, you can download a Vista Recovery Disc at the following link:
    Windows Vista Recovery Disc
    UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn
    SystemRescueCd | Dual Boot | psychocats | FAQ

  8. #8
    Join Date
    Sep 2009
    Beans
    4
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Windows7 not booting after GParted resize

    Quote Originally Posted by sneakytiki22 View Post
    I have been running Ubuntu since it happened last thurday. Would that foil the plan? What kind of use would close this option to me?
    No, I doubt this will ruin anything. The only concern is that since the windows partition doesn't exist according to Ubuntu, it might try use the disk where windows used to be, and overwrite some of the data. It's unlikely though, as the Ubuntu partition shouldn't overlap anything. The only things that may have been damaged is anything that windows might have stuck at the end of the partition -.-, as jsoeellner said.

    Anyway, keep us posted on how the testdisk goes, and if you ever need to do anything related to windows partitions, that How-to-geek reference is great.

  9. #9
    Join Date
    Feb 2008
    Location
    Planet earth, for now.
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Windows7 not booting after GParted resize

    Quote Originally Posted by Bucky Ball View Post
    I'm not sure if 7 is the same but with XP you could stick the installation disk in and go to 'Repair'. In there you can run help I think and there is a command containing 'chkdisk'. Run that. Then 'fixboot' and 'fixmbr'.

    Of course, none of this might work in 7 but fixed things when I did exactly the same thing as you running XP.
    I said this in post #2! If your Windows install disk can get you to a 'Repair' screen, these commands would have fixed your original situation 99% guaranteed.

    The really easy way is to download supergrubdisk iso, burn a cd and boot from it. That will sort things out quick smart as far as booting goes unless the important bits are now irrevocably moved about (and you might even learn something about grub along the way as it can be educational).

    http://www.supergrubdisk.org/

    One other thing: ALWAYS defrag your windows drive before shrinking. The way data is handled 90Gb of data can be scattered all over a 200Gb partition with gaps everywhere. That will give you VERY inaccurate readings of how much you can shrink.
    Last edited by Bucky Ball; September 9th, 2009 at 10:37 AM.

  10. #10
    Join Date
    Sep 2009
    Beans
    11

    Re: Windows7 not booting after GParted resize

    The NTFS partition is now primary. I used TeskDisk again and fixed it. Now my big problem is I can't boot without using a live cd and I don't have a separate disk drive that can burn the super grub disk. I'll have to burn it at work or boot from USB. And you are right, I have already learned a lot about grub and I haven't even fixed anyhting. I guess the best way to learn is to fail, over and over again (as long as something is acomplished in the end ).

    So I will boot from a SGD and see if I can fix grub, otherwise I will just copy the windows files and reinstall. I could just do that now and skip the SGD, but as you said, I might just learn something if I carry this through to the end.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •