-1

installed Ubuntu 14.04 against Windows 7. I installed GParted to partition my harddrive since it had occupied entire disk. But, I'm not able to repartition.

Note: After installing Ubuntu replacing Windows 7, almost 70GB is missing.

sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************

Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): D7EFA26A-1DD8-4C04-833D-0547B9D384D8
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5485 sectors (2.7 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048      1946189823   928.0 GiB   8300  Linux filesystem
   5      1946191872      1953523711   3.5 GiB     8200  Linux swap

 sudo fdisk -l /dev/sda

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x0001f044

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048  1946189823   973093888   83  Linux
/dev/sda2      1946191870  1953523711     3665921    5  Extended
/dev/sda5      1946191872  1953523711     3665920   82  Linux swap / Solaris
surendar
  • 263
kaspa
  • 355

1 Answers1

0

You've trashed your existing Windows partitions by selecting the wrong Ubuntu installation option. If you thought you were installing alongside, as your comments suggest, then I'm afraid you erred. If you have critical personal files on the disk, then stop using it immediately and begin recovery operations using PhotoRec or a similar Windows-specific utility. Every second you continue to use the disk, you run the risk of Linux writing over an important Windows file. (This is true even if you don't actively do things; Linux writes log files and whatnot in the background.)

You have no "missing 70GB." You're probably confusing gigabytes (GB) and gibibytes (GiB). gdisk uses the latter units, but disk manufacturers almost always use the former.

Finally, your disk uses the Master Boot Record (MBR) partitioning scheme. The gdisk tool you used to show your partitions is written for the newer GUID Partition Table (GPT). Although gdisk will show your partitions because it automatically converts from MBR to GPT, better (and safer) choices are fdisk, parted, and GParted. Please ignore bain's suggestion to use FixParts on the disk, unless you see other signs of trouble. The "invalid GPT" referred to by gdisk, in this context, means no GPT. This is more clearly indicated by the GPT: not present line in its output.

Rod Smith
  • 45,120
  • 7
  • 66
  • 108