I just recently removed two Linux operating systems (mint and ubuntu) from my computer, which also contains a windows vista installation. I removed both with the "OSremover" found on boot-repair-disk's live image.
Before removing Ubuntu I forgot that I had encrypted the home directory. The removal worked just fine, and now I can boot into windows as usual.
However, now that I'm trying to install a new Linux OS, I can see that gparted doesn't recognize any partitions on my disk and it says that all of the space there is unallocated. I checked with the disk management service on windows and it can see all my partitions just fine, even the ones I previously used for the two Linux installations (which I've deleted and merged with my windows partition).
I have no idea what's going on, I've tried fixing the mbr with bootrec /fixmbr
but that didn't do anything. Also, running fdisk -l
from a live image of elementary-os lists my partitions as they should be.
I'm adding outputs from the from the sudo fdisk -l /dev/sda
and /sudo parted /dev/sda print
commands as per Rod Smith's suggestion. First, fdisk:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcab10bee
Device Boot Start End Blocks Id System
/dev/sda1 * 63 484458486 242229212 7 HPFS/NTFS/exFAT
/dev/sda2 484472205 488408129 1967962+ f W95 Ext'd (LBA)
/dev/sda5 486434816 488396783 980984 82 Linux swap / Solaris
Now, parted:
Error: Can't have a partition outside the disk!
Hope this helps.
Solution:
Ran fixparts and it automatically fixed the error on execution, just had to save the new table with the w
command.
Concern:
Received the following message:
Warning: 0xEE partition doesn't start on sector 1. This can cause problems
in some OSes.
powercfg.exe /hibernate off
but it looks like it's already been disabled.fdisk
will automatically resize the extended partition -- at least, it didn't the last time I looked at this. It could be fixed withfdisk
, but you'd need to delete both the logical and extended partitions and then re-create them, which is a little dangerous. FixParts will do this much more simply, with less room for user error.