I have a Ubuntu 14.04.02. As I updated it,there was booting problem on my laptop.After some try it started.How I don't know.So I started fixing my grub as it was also not working.
So after seeing some solutions :
I did:
fdisk is giving me : WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
and also with
Partition 1 does not start on physical sector boundary.
This is
~$ sudo fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
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 / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 1953525167 976762583+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/mapper/ubuntu--vg-root: 995.2 GB, 995190898688 bytes
255 heads, 63 sectors/track, 120991 cylinders, total 1943732224 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table
Disk /dev/mapper/ubuntu--vg-swap_1: 4202 MB, 4202692608 bytes
255 heads, 63 sectors/track, 510 cylinders, total 8208384 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table
I know something is wrong but don't know what.What is the cause and do I need to fix it? If so, how?
I have checked related links but nothing helped.
The grub bootloader is also not coming and on startup after pressing ESC Key settings are coming which are also not working.
Don't know how to fix.Thanks in advance.
Best Answer
You already got the answer:
So use
parted
instead.$ fdisk -l
is for displaying partitions of a msdos disk. Since you have GPT you could use$ sudo parted -l