Efi issue Ubuntu 18 after deleting windows and efi partition












0















Output of http://bootinfoscript.sourceforge.net/ Boot Info Script version: 0.61
Release date: 1 April 2012



is at https://pastebin.com/cGWTnEiR



Short version deleted /efi partition. Only want Ubuntu. getting errors on boot but able to boot. Have old NTFS partition that i dont want to format. Anyway to fix? have USB with ubuntu 18 if need be.



https://photos.app.goo.gl/cZdujjV7mVHMzHn56 images of boot error. Can I fix without formatting and reinstalling?



Long version:



Got laptop 3 years back, Installed Ubuntu 16 along side win 10. Messed around a month back, got ubuntu 18 on a new partition.



Wanted to make some space deleted some files.



Moved out home folder to a new partition.



Needed space for some videos on traffic safety ... decided to get rid of Windows as hardly use it now. Alls well. Then went to Gparted to sort free space, Got windows c drive clubbed into UbuHome partition, thumbs up!



Then deleted efi partition. oops 1.
Then for some silly 2am reason "noticed" untried menu in Gparted, created a new partition. Not a nice interface by the way -> did not need to apply like other actions just a warning and done :( oops 2



Tried to use testdisk, it got back my NTFS d drive and ubu home ...but also got a bunch of many other drives. But UbuHome was not loading after i tried ot merge some of hte other false partitions with it.



Anyway now have deleted UbuHome, got a fresh Ubuntu 18, with old NTFS d working as a seperate partiion



But efi not recreaed fully.



Tried installing grub again -> no errors but no cigar. Followed https://askubuntu.com/a/831241/165511 (not exact answer found similar one when i booted via Usb)



Also tried:



sudo parted -l
[sudo] password for t:
Model: ATA KINGSTON SV300S3 (scsi)
Disk /dev/sda: 480GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1048kB 125GB 125GB extended
5 1049kB 200MB 199MB logical fat32 boot, esp
6 201MB 450MB 249MB logical
7 451MB 125GB 124GB logical ext4
3 125GB 403GB 278GB primary ntfs
4 403GB 480GB 77.6GB primary ext4


t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `esp'.
t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=epi --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `epi'.
t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader=ubuntu --boot-directory=/boot/efi/EFI/ubuntu --recheck
Installing for x86_64-efi platform.
Primary GPT is invalid, using alternate GPT.
Primary GPT is invalid, using alternate GPT.
Primary GPT is invalid, using alternate GPT.
Installation finished. No error reported.


https://photos.app.goo.gl/cZdujjV7mVHMzHn56 images of boot error then when i choose first option it works - goes to log on screen. just want to get rid of the error so it goes to hard disk. Fyi the ubuntu16 and u Oses are all removed now. Just a single boot ubuntu 18 laptop now.










share|improve this question

























  • You don't need to add "solved" to the question on Ask Ubuntu. You can "accept" an answer here instead.

    – Olorin
    Feb 20 at 7:20











  • does not let me for 2 days so did not want folks to read the question only to later see that its solved :)

    – tgkprog
    Feb 20 at 17:44
















0















Output of http://bootinfoscript.sourceforge.net/ Boot Info Script version: 0.61
Release date: 1 April 2012



is at https://pastebin.com/cGWTnEiR



Short version deleted /efi partition. Only want Ubuntu. getting errors on boot but able to boot. Have old NTFS partition that i dont want to format. Anyway to fix? have USB with ubuntu 18 if need be.



https://photos.app.goo.gl/cZdujjV7mVHMzHn56 images of boot error. Can I fix without formatting and reinstalling?



Long version:



Got laptop 3 years back, Installed Ubuntu 16 along side win 10. Messed around a month back, got ubuntu 18 on a new partition.



Wanted to make some space deleted some files.



Moved out home folder to a new partition.



Needed space for some videos on traffic safety ... decided to get rid of Windows as hardly use it now. Alls well. Then went to Gparted to sort free space, Got windows c drive clubbed into UbuHome partition, thumbs up!



Then deleted efi partition. oops 1.
Then for some silly 2am reason "noticed" untried menu in Gparted, created a new partition. Not a nice interface by the way -> did not need to apply like other actions just a warning and done :( oops 2



Tried to use testdisk, it got back my NTFS d drive and ubu home ...but also got a bunch of many other drives. But UbuHome was not loading after i tried ot merge some of hte other false partitions with it.



Anyway now have deleted UbuHome, got a fresh Ubuntu 18, with old NTFS d working as a seperate partiion



But efi not recreaed fully.



Tried installing grub again -> no errors but no cigar. Followed https://askubuntu.com/a/831241/165511 (not exact answer found similar one when i booted via Usb)



Also tried:



sudo parted -l
[sudo] password for t:
Model: ATA KINGSTON SV300S3 (scsi)
Disk /dev/sda: 480GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1048kB 125GB 125GB extended
5 1049kB 200MB 199MB logical fat32 boot, esp
6 201MB 450MB 249MB logical
7 451MB 125GB 124GB logical ext4
3 125GB 403GB 278GB primary ntfs
4 403GB 480GB 77.6GB primary ext4


t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `esp'.
t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=epi --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `epi'.
t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader=ubuntu --boot-directory=/boot/efi/EFI/ubuntu --recheck
Installing for x86_64-efi platform.
Primary GPT is invalid, using alternate GPT.
Primary GPT is invalid, using alternate GPT.
Primary GPT is invalid, using alternate GPT.
Installation finished. No error reported.


https://photos.app.goo.gl/cZdujjV7mVHMzHn56 images of boot error then when i choose first option it works - goes to log on screen. just want to get rid of the error so it goes to hard disk. Fyi the ubuntu16 and u Oses are all removed now. Just a single boot ubuntu 18 laptop now.










share|improve this question

























  • You don't need to add "solved" to the question on Ask Ubuntu. You can "accept" an answer here instead.

    – Olorin
    Feb 20 at 7:20











  • does not let me for 2 days so did not want folks to read the question only to later see that its solved :)

    – tgkprog
    Feb 20 at 17:44














0












0








0








Output of http://bootinfoscript.sourceforge.net/ Boot Info Script version: 0.61
Release date: 1 April 2012



is at https://pastebin.com/cGWTnEiR



Short version deleted /efi partition. Only want Ubuntu. getting errors on boot but able to boot. Have old NTFS partition that i dont want to format. Anyway to fix? have USB with ubuntu 18 if need be.



https://photos.app.goo.gl/cZdujjV7mVHMzHn56 images of boot error. Can I fix without formatting and reinstalling?



Long version:



Got laptop 3 years back, Installed Ubuntu 16 along side win 10. Messed around a month back, got ubuntu 18 on a new partition.



Wanted to make some space deleted some files.



Moved out home folder to a new partition.



Needed space for some videos on traffic safety ... decided to get rid of Windows as hardly use it now. Alls well. Then went to Gparted to sort free space, Got windows c drive clubbed into UbuHome partition, thumbs up!



Then deleted efi partition. oops 1.
Then for some silly 2am reason "noticed" untried menu in Gparted, created a new partition. Not a nice interface by the way -> did not need to apply like other actions just a warning and done :( oops 2



Tried to use testdisk, it got back my NTFS d drive and ubu home ...but also got a bunch of many other drives. But UbuHome was not loading after i tried ot merge some of hte other false partitions with it.



Anyway now have deleted UbuHome, got a fresh Ubuntu 18, with old NTFS d working as a seperate partiion



But efi not recreaed fully.



Tried installing grub again -> no errors but no cigar. Followed https://askubuntu.com/a/831241/165511 (not exact answer found similar one when i booted via Usb)



Also tried:



sudo parted -l
[sudo] password for t:
Model: ATA KINGSTON SV300S3 (scsi)
Disk /dev/sda: 480GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1048kB 125GB 125GB extended
5 1049kB 200MB 199MB logical fat32 boot, esp
6 201MB 450MB 249MB logical
7 451MB 125GB 124GB logical ext4
3 125GB 403GB 278GB primary ntfs
4 403GB 480GB 77.6GB primary ext4


t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `esp'.
t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=epi --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `epi'.
t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader=ubuntu --boot-directory=/boot/efi/EFI/ubuntu --recheck
Installing for x86_64-efi platform.
Primary GPT is invalid, using alternate GPT.
Primary GPT is invalid, using alternate GPT.
Primary GPT is invalid, using alternate GPT.
Installation finished. No error reported.


https://photos.app.goo.gl/cZdujjV7mVHMzHn56 images of boot error then when i choose first option it works - goes to log on screen. just want to get rid of the error so it goes to hard disk. Fyi the ubuntu16 and u Oses are all removed now. Just a single boot ubuntu 18 laptop now.










share|improve this question
















Output of http://bootinfoscript.sourceforge.net/ Boot Info Script version: 0.61
Release date: 1 April 2012



is at https://pastebin.com/cGWTnEiR



Short version deleted /efi partition. Only want Ubuntu. getting errors on boot but able to boot. Have old NTFS partition that i dont want to format. Anyway to fix? have USB with ubuntu 18 if need be.



https://photos.app.goo.gl/cZdujjV7mVHMzHn56 images of boot error. Can I fix without formatting and reinstalling?



Long version:



Got laptop 3 years back, Installed Ubuntu 16 along side win 10. Messed around a month back, got ubuntu 18 on a new partition.



Wanted to make some space deleted some files.



Moved out home folder to a new partition.



Needed space for some videos on traffic safety ... decided to get rid of Windows as hardly use it now. Alls well. Then went to Gparted to sort free space, Got windows c drive clubbed into UbuHome partition, thumbs up!



Then deleted efi partition. oops 1.
Then for some silly 2am reason "noticed" untried menu in Gparted, created a new partition. Not a nice interface by the way -> did not need to apply like other actions just a warning and done :( oops 2



Tried to use testdisk, it got back my NTFS d drive and ubu home ...but also got a bunch of many other drives. But UbuHome was not loading after i tried ot merge some of hte other false partitions with it.



Anyway now have deleted UbuHome, got a fresh Ubuntu 18, with old NTFS d working as a seperate partiion



But efi not recreaed fully.



Tried installing grub again -> no errors but no cigar. Followed https://askubuntu.com/a/831241/165511 (not exact answer found similar one when i booted via Usb)



Also tried:



sudo parted -l
[sudo] password for t:
Model: ATA KINGSTON SV300S3 (scsi)
Disk /dev/sda: 480GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1048kB 125GB 125GB extended
5 1049kB 200MB 199MB logical fat32 boot, esp
6 201MB 450MB 249MB logical
7 451MB 125GB 124GB logical ext4
3 125GB 403GB 278GB primary ntfs
4 403GB 480GB 77.6GB primary ext4


t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `esp'.
t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=epi --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `epi'.
t@t-Aspire-E5-573G:~$ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader=ubuntu --boot-directory=/boot/efi/EFI/ubuntu --recheck
Installing for x86_64-efi platform.
Primary GPT is invalid, using alternate GPT.
Primary GPT is invalid, using alternate GPT.
Primary GPT is invalid, using alternate GPT.
Installation finished. No error reported.


https://photos.app.goo.gl/cZdujjV7mVHMzHn56 images of boot error then when i choose first option it works - goes to log on screen. just want to get rid of the error so it goes to hard disk. Fyi the ubuntu16 and u Oses are all removed now. Just a single boot ubuntu 18 laptop now.







boot grub2 uefi






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 20 at 17:59









Thomas Ward

44.9k23125178




44.9k23125178










asked Feb 19 at 21:07









tgkprogtgkprog

239517




239517













  • You don't need to add "solved" to the question on Ask Ubuntu. You can "accept" an answer here instead.

    – Olorin
    Feb 20 at 7:20











  • does not let me for 2 days so did not want folks to read the question only to later see that its solved :)

    – tgkprog
    Feb 20 at 17:44



















  • You don't need to add "solved" to the question on Ask Ubuntu. You can "accept" an answer here instead.

    – Olorin
    Feb 20 at 7:20











  • does not let me for 2 days so did not want folks to read the question only to later see that its solved :)

    – tgkprog
    Feb 20 at 17:44

















You don't need to add "solved" to the question on Ask Ubuntu. You can "accept" an answer here instead.

– Olorin
Feb 20 at 7:20





You don't need to add "solved" to the question on Ask Ubuntu. You can "accept" an answer here instead.

– Olorin
Feb 20 at 7:20













does not let me for 2 days so did not want folks to read the question only to later see that its solved :)

– tgkprog
Feb 20 at 17:44





does not let me for 2 days so did not want folks to read the question only to later see that its solved :)

– tgkprog
Feb 20 at 17:44










1 Answer
1






active

oldest

votes


















0














Looked at other forums and psots on askubuntu.com USed boot-repair but still same.



Then went to system menu (pressed F2 key before boot error appeared), under security.



Deleted all current boot info.



Saved and exited.



Again went there and choose ubuntu efi



On rebooth said no booth device.



Did boot repair again.



Rebooth. Same no booth device.



Rebooth to boot menu, choose Ubuntu again under security - trusted boots



Now its working.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119650%2fefi-issue-ubuntu-18-after-deleting-windows-and-efi-partition%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Looked at other forums and psots on askubuntu.com USed boot-repair but still same.



    Then went to system menu (pressed F2 key before boot error appeared), under security.



    Deleted all current boot info.



    Saved and exited.



    Again went there and choose ubuntu efi



    On rebooth said no booth device.



    Did boot repair again.



    Rebooth. Same no booth device.



    Rebooth to boot menu, choose Ubuntu again under security - trusted boots



    Now its working.






    share|improve this answer




























      0














      Looked at other forums and psots on askubuntu.com USed boot-repair but still same.



      Then went to system menu (pressed F2 key before boot error appeared), under security.



      Deleted all current boot info.



      Saved and exited.



      Again went there and choose ubuntu efi



      On rebooth said no booth device.



      Did boot repair again.



      Rebooth. Same no booth device.



      Rebooth to boot menu, choose Ubuntu again under security - trusted boots



      Now its working.






      share|improve this answer


























        0












        0








        0







        Looked at other forums and psots on askubuntu.com USed boot-repair but still same.



        Then went to system menu (pressed F2 key before boot error appeared), under security.



        Deleted all current boot info.



        Saved and exited.



        Again went there and choose ubuntu efi



        On rebooth said no booth device.



        Did boot repair again.



        Rebooth. Same no booth device.



        Rebooth to boot menu, choose Ubuntu again under security - trusted boots



        Now its working.






        share|improve this answer













        Looked at other forums and psots on askubuntu.com USed boot-repair but still same.



        Then went to system menu (pressed F2 key before boot error appeared), under security.



        Deleted all current boot info.



        Saved and exited.



        Again went there and choose ubuntu efi



        On rebooth said no booth device.



        Did boot repair again.



        Rebooth. Same no booth device.



        Rebooth to boot menu, choose Ubuntu again under security - trusted boots



        Now its working.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 20 at 7:05









        tgkprogtgkprog

        239517




        239517






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119650%2fefi-issue-ubuntu-18-after-deleting-windows-and-efi-partition%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?