So this is a sister question to my previous one about partitioning for a UEFI boot loader. Parititioning for a UEFI boot loader, can LVM be used?
Disclaimer: I don't give a flip about the data on it. Windows 8 can die in a fire.
Following instructions I have a single 400MB device that I think was previously a 'Microsoft Reserved' partition of some kind (I believe it was an MBR partition?). Before I realized what I had to do I deleted the existing partition with the fdisk
utility and created an MBR partition with an ext4 filesystem and rebooted for changes to take effect.
I then realized that this won't work for the UEFI firmware, a firmware so hipster and awesome that it just has to be different in every way. I went into gdisk
this time and searched for partitions, it found none. I created a new GUID partition on this 400MB device with the proper EFI type code EF00 I believe. This appeared to be successful so I made a FAT32 filesystem on it, mkfs -t fat32 /dev/sda1
and this was successful.
I followed all the instructions to install Arch Linux from the bootable Installation CD that happened to boot in UEFI mode I might add. I got to the point where I installed gummiboot on the system and it immediately informed me that my device sda1 is not a proper EFI partition. Thoroughly confused I did a gdisk -l
on the device and found that it identified the GPT partition is damaged and the MBR partition still exists.
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: damaged
It then presented three options, MBR, GPT or clean GPT. I chose GPT thinking it would remove the MBR partition tables but it doesn't make a difference.
Realizing I am beyond my knowledge at this point and have no clue how to create a proper GPT partition from an existing MBR partition, I ran a Quick Analyse on testdisk
and everything looks good and green. The testdisk utility recognizes this as a proper EFI bootable partition in every respect.
I would like to repair the GPT partition if possible so I can avoid all of the installation and customization steps of starting over in my Arch installation. If this is not possible and I have to destroy this partition and start over is there a way I can save the data that was already installed here and manually add it back after I have fixed the boot partition?
sgdisk
again on the partition you have already set up. Usually size is 512MB though. (I can't remember why exactly, I think it may be arbitrary)