alvaromaceda
September 13th, 2016, 12:12 PM
My computer died, but I would like to keep my Ubuntu Server installation if possible.
I purchased a MSI cubi N and changed the HDD to the new computer. My old computer booted with BIOS, and the new one with EFI. A live CD boots ok, but my old drive did not boot, of course.
I installed and executed boot-repair, but it failed. It told me:
The boot of your PC is in EFI mode, but no EFI partition was detected. You may want to retry after creating a EFI partition (FAT32, >200Mo, start of the disk}, EFI flag). Do you want to continue?
I continued, but the hard drive was unable to boot. Here is the pastebin:
http://paste2.org/GKDHs4n0
I changed the partition table to GPT and tried again. It showed the same message as before. I continued, but didn't work:
http://paste2.org/k8EcwF5J
After that, I moved all my data with gparted to the right, and created a new partition at the start of the disk as it asked. The next run, it told me:
GPT Detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.
So I created a partition at the end of the disk. Now, the message was the first one. I continued, but it didn't worked. Here is the pastebin:
http://paste2.org/WwPCXHJf
This is the partition table I currently have:
ubuntu-mate@ubuntu-mate:~$ sudo sfdisk -l /dev/sda
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 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
Disklabel type: gpt
Disk identifier: 180DF111-D5EE-4D4E-92E8-CDD8986A4D97
Device Start End Sectors Size Type
/dev/sda1 307200 1947764735 1947457536 928.6G Linux filesystem
/dev/sda2 2048 307199 305152 149M EFI System
/dev/sda3 1953519616 1953523711 4096 2M EFI System
/dev/sda5 1947764736 1953519615 5754880 2.8G Linux swap
Partition table entries are not in disk order.
I'm still trying to make sense on how EFI and grub2 work, but there are still a lot of holes in my understanding and I would like to have my server online... Could somebody give me a clue of what I should do?
I purchased a MSI cubi N and changed the HDD to the new computer. My old computer booted with BIOS, and the new one with EFI. A live CD boots ok, but my old drive did not boot, of course.
I installed and executed boot-repair, but it failed. It told me:
The boot of your PC is in EFI mode, but no EFI partition was detected. You may want to retry after creating a EFI partition (FAT32, >200Mo, start of the disk}, EFI flag). Do you want to continue?
I continued, but the hard drive was unable to boot. Here is the pastebin:
http://paste2.org/GKDHs4n0
I changed the partition table to GPT and tried again. It showed the same message as before. I continued, but didn't work:
http://paste2.org/k8EcwF5J
After that, I moved all my data with gparted to the right, and created a new partition at the start of the disk as it asked. The next run, it told me:
GPT Detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.
So I created a partition at the end of the disk. Now, the message was the first one. I continued, but it didn't worked. Here is the pastebin:
http://paste2.org/WwPCXHJf
This is the partition table I currently have:
ubuntu-mate@ubuntu-mate:~$ sudo sfdisk -l /dev/sda
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 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
Disklabel type: gpt
Disk identifier: 180DF111-D5EE-4D4E-92E8-CDD8986A4D97
Device Start End Sectors Size Type
/dev/sda1 307200 1947764735 1947457536 928.6G Linux filesystem
/dev/sda2 2048 307199 305152 149M EFI System
/dev/sda3 1953519616 1953523711 4096 2M EFI System
/dev/sda5 1947764736 1953519615 5754880 2.8G Linux swap
Partition table entries are not in disk order.
I'm still trying to make sense on how EFI and grub2 work, but there are still a lot of holes in my understanding and I would like to have my server online... Could somebody give me a clue of what I should do?