How to obtain list of installed packages

Tom H tomh0665 at gmail.com
Fri May 20 19:00:54 UTC 2016


On Fri, May 20, 2016 at 6:41 PM, Petter Adsen <petter at synth.no> wrote:
> On Fri, 20 May 2016 23:18:18 +0800
> Bret Busby <bret.busby at gmail.com> wrote:
>>
>> bret at bret-Aspire-V3-772-UbuntuMATE:~$ sudo gdisk -l /dev/sda
>> sudo: unable to resolve host bret-Aspire-V3-772-UbuntuMATE

This message means that either both or one of "/etc/hostname" and
"/etc/hosts" is misconfigured.


>> [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.

You can have more than one EFI system partition. IIRC, the Fedora
installer, for example, creates a second one even if a disk already
has one.

So I'd verify the relevant fstab as well as mount and check the
contents of sda6 and sda10 before changing their codes.


> I *think* ef02 is reserved for the Grub 'BIOS boot partition',
> something you should not need with UEFI. I might be wrong, though.

sda1 is an ef02 partition and is a bios boot partition. But it's much
larger than it should be (usually 1 or 2 MB) so I'd also check whether
it's not a mislabeled ef00 partition - or something else given that
Windows is installed (I'm not familiar with Windows partitions).

sda7, sda9, sda11, and sda14 are 0700 partitions and are therefore
Microsoft data partitions even though, given their names, they seem to
be Linux partitions. It's probably because they were created before
there was a Linux filesystem data GUID or because d-i hadn't been set
up to use that GUID.


Please note that changing these partition types is unnecessary if all
of your OSs are booting OK.




More information about the ubuntu-users mailing list