PDA

View Full Version : [ubuntu] Ubuntu partition seen as unallocated space after windows 8 upgrade



Shaileshpatel
March 15th, 2013, 09:26 PM
Hello,

I have installed Ubuntu 12.04 with Windows 7 as dual-boot. Today I decided to upgrade windows 7 to windows 8 on the other partition. I read on some forums that I would most likely need a liveUSB to repair grub after upgrading windows, so I could boot into Ubuntu again. After installing windows, I used the live-cd to repair Boot-manager using the program "boot-repair".

URL: http://paste.ubuntu.com/5609860/

However I still cannot get access to ubuntu and furthermore, according to gparted, the partition with ubuntu 12.04 is seen as unallocated space (!). Did I do something wrong, did I somehow remove Ubuntu? Since I have not done any data back up before Windows upgrade, I want to access to ubuntu, without having to re-install it. Could someone look at my url of boot-repair, and give me suggestions what I could do?

PS: I have used testdisk program, but it fails to recognize actual size of Ubunut partition and thus I didn't proceed.

Bashing-om
March 15th, 2013, 10:59 PM
Shaileshpatel; Hi !

From what little I could determine you must have had what is termed a "wubi" install. Ubuntu running inside of windows. Not a true dual boot // As such I bet ubuntu is long gone with the upgrade from Window's 7 to 8.

Others with "wubi" and Windows experience can advise better. -> but presently there "ain't no" partitions for ubuntu.


There is a bit of work to be done

oldfred
March 16th, 2013, 12:15 AM
I do not think it is wubi as you do have an extended partition with some unallocated space from start of extended to the swap. Or that space was probably the / (root) partition.

Did you try testdisk deeper search. I would think it should see the missing partition.

There also are ways to just force in a new partition with parted but I think that is not a lot different than what testdisk does. If you had any backups that showed partition table before, sfdisk output, Boot-Repair output or backup then it would be relatively easy to create a new partition.

Do this first:
Backup partition table to text file & save to external device.
sudo sfdisk -d /dev/sda > PTsda.txt


Use parted rescue to restore missing partition details in post #22
http://ubuntuforums.org/showthread.php?t=1775331

Bashing-om
March 16th, 2013, 01:12 AM
oldfred, again I stand in need of education:
Is not the first line "/dev loop0 squashfs" from OP's boot info script in reference to how wibi loads (or is this just from a liveCD ??)

:

"blkid" output: __________________________________________________ ______________ Device UUID TYPE LABEL /dev/loop0 squashfs /dev/sda1 4488EF0188EEEFFA ntfs /dev/sda2 06F22AEFF22AE2A3 ntfs /dev/sda4 B6F0FCF3F0FCBAA7 ntfs LENOVO_PART /dev/sda5 8e564dae-7920-43fd-9cf8-6763de978605 swap /dev/sdb1 E8E3-B2A4 vfat PENDRIVE

bcbc
March 16th, 2013, 06:27 AM
oldfred, again I stand in need of education:
Is not the first line "/dev loop0 squashfs" from OP's boot info script in reference to how wibi loads (or is this just from a liveCD ??)

Refer to http://en.wikipedia.org/wiki/SquashFS

SquashFS is used by the Live CD (http://en.wikipedia.org/wiki/Live_CD) versions of Arch Linux (http://en.wikipedia.org/wiki/Arch_Linux), Debian (http://en.wikipedia.org/wiki/Debian), Fedora (http://en.wikipedia.org/wiki/Fedora_(operating_system)), Gentoo Linux (http://en.wikipedia.org/wiki/Gentoo_Linux), Salix (http://en.wikipedia.org/wiki/Salix_OS), Ubuntu (http://en.wikipedia.org/wiki/Ubuntu_(operating_system))

In this case it's the live USB running off the PENDRIVE

oldfred
March 16th, 2013, 02:57 PM
I look for a wubi file or root.disk and only NTFS partitions. Then I am pretty sure bcbc will know more about it.

But when there is a separate swap partition it had to have a full install and then the extended partition looks like it has a gap or space that was probably a / (root) partition.

I am surprised testdisk does not see the old partition. With one or two cases users have just recreated a partition with parted rescue (not new formatted partition) and recovered the system. But really best to know partition sizes by sector. (I run bootinfoscript as part of my rsync backup just to have that documentation).

Bashing-om
March 16th, 2013, 05:32 PM
Thanks guys, able to exercise greater care next time !