Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Computer shut off while resizing my Windows partition

  1. #1
    Join Date
    Jul 2013
    Beans
    21

    Computer shut off while resizing my Windows partition

    So, I was resizing my windows partition using gparted, like I often do, however, I stupidly decided to do it without plugging in my power supply for my macbook, and the computer ran out of battery while the resizing process was happening. Now, gparted states that dev/sda4, my windows partition, has an unknown filesystem, and my windows partition also doesn't show up in Mac OS X finder or the option-key menu at boot anymore, which leads me to believe that either the file system information or the boot information was lost when my computer shut down. Also, I was resizing my windows partition from 115 to 135gb, and gparted states that dev/sda4 is 135gb, so my computer probably shut off after the size-increasy part. I have two ideas of how to fix it at the moment. I have a Windows 8 installation disk that I can use as a repair disk, and I was also going to try using ntfsprogs in a Ubuntu live CD to see if that fixes it. However, since I'm too scared of losing my data before I accidentally overwrite anything, I decided to try and back up my important files, so I dried to mount it in Ubuntu. Strangely enough, when I ran fdisk in ubuntu, it stated that dev/sda4 was actually fat32 system instead of ntfs, and I have no idea why. I tried to mount dev/sda4 as both a fat32 system and a ntfs system, however, in both cases, terminal stated that dev/sda4 did not exist, even though it showed up in fdisk.

    Anyone else accidentally shut off their system during partion resizing? There's probably different levels of severity based on where the process was, but I hope none of my personal files were deleted. I really don't mind if I have to erase my partition and reinstall Windows, (although I'd rather not) but I do want to find some way to mount the drive to back up my important files?
    Last edited by sandyd; July 16th, 2013 at 12:49 AM. Reason: font

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas
    Beans
    1,493
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: Computer shut off while resizing my Windows partition

    If the data is important to you stop everything and take it to a recovery specialist. If you don't really care about the data, probably try the Windows repair utility. Hindsight is 20/20, but that's why they say backup everything before resizing the partition (it comes up in a huge warning box).

  3. #3
    Join Date
    Jul 2013
    Beans
    21

    Re: Computer shut off while resizing my Windows partition

    Perhaps I could clone or image the drive in case I screw something up?

  4. #4
    Join Date
    Feb 2009
    Location
    Dallas
    Beans
    1,493
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: Computer shut off while resizing my Windows partition

    Most cloning software will clone functional partitions, not raw binary data. You could "clone" it to another disk if you have another of the exact model laying around (dd if=/dev/xxx of=/dev/yyy). There's no saying it would actually work, but it might be worth a shot. Again, if the data is important to you then stop what you're doing and take it to a data recovery specialist. The odds are against you being able to recover the data on your own.

  5. #5
    Join Date
    Jul 2013
    Beans
    21

    Re: Computer shut off while resizing my Windows partition

    I am planning on upgrading my 500gb hd to a 1tb hd, maybe I could clone the data onto that?

    Is there anyway to just mount dev/sda4, copy some files, then do a complete reinstall?

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Computer shut off while resizing my Windows partition

    Since you were enlarging it, it should not have taken any time and worked. Were you doing other tasks also?

    I might try testdisk? It may show the files.
    Windows NTFS partitions have to have the same size info in the PBR - partition boot sector as the partition table. You have to run chkdsk to fix that, but with the errors it may just move many files to its chkdsk repair folder.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Jul 2013
    Beans
    21

    Re: Computer shut off while resizing my Windows partition

    No I was not doing anything else.

    I can't run chkdsk at all-I can't even boot into my windows partition. It's not recognized.

    I have tried PhotoRec. I guess I'll try TestDisk now.

    Also, what do you mean it should not have taken any time?

    By the way, in photorec and test disk, there are two entries for each drive- something along the names of disk0 and rdisk0, and they are exactly the same. I read something about rdisk being the raw data of the disk, I have to admit I have no idea what that means.
    Last edited by theorange9; July 15th, 2013 at 10:27 PM. Reason: Enlarging doesn't take time?

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Computer shut off while resizing my Windows partition

    Generally moving partitions can take a very long time as it has to copy data, but just increasing the size should just be a write of the new size into the partition table. Or was the space not unallocated that you increased it into?
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Jul 2013
    Beans
    21

    Re: Computer shut off while resizing my Windows partition

    Yeah I grew it into unallocated space. So I'm guessing that because I can't boot from it, there's probably a loss of data, which means that it was still moving?

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Computer shut off while resizing my Windows partition

    It then should not have been moving any data. Unless you had a bad sector of something it should have been very quick. I have done that as a single command in gparted & it just comes right back. Unless you shutdown in the middle which like any power failure or abnormal shutdown can many times cause file corruption.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 1 of 3 123 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
  •