How to obtain list of installed packages

Petter Adsen petter at synth.no
Fri May 20 16:41:39 UTC 2016


On Fri, 20 May 2016 23:18:18 +0800
Bret Busby <bret.busby at gmail.com> wrote:

> On 20/05/2016, Petter Adsen <petter at synth.no> wrote:
> > Try 'sudo gdisk -l /dev/sda' if the disk is indeed GPT. That should
> > list the partition table, and would probably display error messages
> > if something is wrong.  
> 
> "
> bret at bret-Aspire-V3-772-UbuntuMATE:~$ sudo gdisk -l /dev/sda
> sudo: unable to resolve host bret-Aspire-V3-772-UbuntuMATE
> [sudo] password for bret:
> GPT fdisk (gdisk) version 1.0.0
> 
> Partition table scan:
>   MBR: protective
>   BSD: not present
>   APM: not present
>   GPT: present
> 
> Found valid GPT with protective MBR; using GPT.
> Disk /dev/sda: 1953525168 sectors, 931.5 GiB
> Logical sector size: 512 bytes
> Disk identifier (GUID): 1C378A0E-EC1F-4E9B-8B5A-55B8505336D0
> 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 6096 sectors (3.0 MiB)
> 
> Number  Start (sector)    End (sector)  Size       Code  Name
>    1            2048          821247   400.0 MiB   EF02  Basic data partition
>    2          821248         1435647   300.0 MiB   EF00  EFI system partition
>    3         1435648         1697791   128.0 MiB   0C01  Microsoft reserved ...
>    4         1697792       197010291   93.1 GiB    0700  Basic data partition
>    5      1917870080      1953523711   17.0 GiB    2700  Basic data partition
>    6       197011456       392323071   93.1 GiB    EF00  Debian 7 OS
>    7       392323072       587634687   93.1 GiB    0700  Debian7Home
>    8       587634688       650135551   29.8 GiB    8200
>    9       650135552       845447167   93.1 GiB    0700  Data1-ext4
>   10       845447168      1040758783   93.1 GiB    EF00  Debian6 OS
>   11      1040758784      1236070399   93.1 GiB    0700  Data2-ext2
>   12      1236070400      1440870399   97.7 GiB    0700
>   13      1440870400      1645670399   97.7 GiB    0700
>   14      1645670400      1744717765   47.2 GiB    0700  Debian6 Home
>   15      1744717824      1820889698   36.3 GiB    8300
>   16      1820891136      1917870079   46.2 GiB    8300
> bret at bret-Aspire-V3-772-UbuntuMATE:~$

Something is wrong here. Code ef00 is reserved for the EFI system
partition, yet you have that code on three partitions. You could change
the code on the two Debian partitions, they should probably be 8300 if
they are normal Linux file systems.

It might be a good idea to clean up a bit and get rid of the operating
systems and partitions you don't use. If you need a lot of different
logical volumes within Linux, look at LVM instead.

I *think* ef02 is reserved for the Grub 'BIOS boot partition',
something you should not need with UEFI. I might be wrong, though. 8200
is swap AFAICR, the others I am unfamiliar with.

Right now I can't see any overlapping partitions, but I could be
overlooking something.

Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."




More information about the ubuntu-users mailing list