You are not logged in.

#1 2018-09-25 01:56:34

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Unable to see/boot from SSD [SOLVED]

So hello everyone and thank you for reading this topic!

I was following installing guide from wiki, and after I did grub, umounting and rebooting I was expecting to be able to boot from SSD with newly installed arch on it. Well that's not the case as I can't even see ssd in boot menu, let alone boot from it.

I made two partitions on my ssd.
nvme0n1p1 is 200M fat32
nvme0n1p2 is 512GB ext4

Also made sure to set the boot flag for the ESP/EFI partition:

parted /dev/nvme0n1 set 1 boot on
parted /dev/nvme0n1 print
Model: Unknown (unknown)
Disk: /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition table: gpt
Disk flags:

number  Start        End     Size    File system   Name    Flags
1         1949kB   211MB    210MB    fat32                 boot, esp
2         211MB    512GB    512GB    ext4

Also I wanted to make sure grub install worked:
mounted p2 to /mnt
mounted p1 to /mnt/boot/efi

1, cd /mnt/boot/efi  
          2. ls (gave me the result EFI)
          3. cd EFI 
          4. ls (gave me the result GRUB)
          5. ls GRUB/ (gave me the result grubx64.efi)

Output of grub.conf:
https://ptpb.pw/SZo0

Appreaciate every advice/ help on what to do and how to fix this problem.
Best of regards

Last edited by shatt3red (2018-09-26 08:25:24)

Offline

#2 2018-09-25 02:10:24

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: Unable to see/boot from SSD [SOLVED]

shatt3red wrote:

Also I wanted to make sure grub install worked:
mounted p1 to /mnt
mounted p2 to /mnt/boot/efi

That seems to be backwards.  According to what you provided above, p2 should be mounted to /mnt, and p1 should be mounted to /mnt/boot/efi.  Then re-run the grub command to remake your configuration file.

Offline

#3 2018-09-25 02:17:53

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

circleface wrote:
shatt3red wrote:

Also I wanted to make sure grub install worked:
mounted p1 to /mnt
mounted p2 to /mnt/boot/efi

That seems to be backwards.  According to what you provided above, p2 should be mounted to /mnt, and p1 should be mounted to /mnt/boot/efi.  Then re-run the grub command to remake your configuration file.


Hello!
I corrected my topic above, you are right. I did mount correctly, I just didn't write it right in this topic. again my bad smile
What do you mean or how do I rerun grub command?
Regards

Last edited by shatt3red (2018-09-25 02:19:05)

Offline

#4 2018-09-25 02:34:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,446
Website

Re: Unable to see/boot from SSD [SOLVED]

What you put in the first post would still be incorrect.  You need to mount one partition to /mnt first, then mount the other to /mnt/boot/efi (or /mount/boot is generally better).  If you did it the way your first post now states, then you mounted your root partition correctly, but in doing so you masked the efi partition so no files could actually be stored on the efi partition.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#5 2018-09-25 02:42:45

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: Unable to see/boot from SSD [SOLVED]

You have to generate a configuration file for grub no matter how you partition.  Judging by the files you listed in your first post, it sounds like you never generated the configuration file in the first place.  Since I don't use grub, I can't help much but you should be able to find the commands on the grub page in the wiki.

Offline

#6 2018-09-25 07:49:06

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

Trilby wrote:

What you put in the first post would still be incorrect.  You need to mount one partition to /mnt first, then mount the other to /mnt/boot/efi (or /mount/boot is generally better).  If you did it the way your first post now states, then you mounted your root partition correctly, but in doing so you masked the efi partition so no files could actually be stored on the efi partition.

Hello, thanks for replying.
Well I first mounted system partition under /mnt then I mounted efi/boot partition to /mnt/boot/efi. I don't think it's even possible to first mount to /mnt/boot/efi before you mount /mnt first. So yeah, I will edit my topic to be more understandable, but I for sure mounted system partition to /mnt FIRST, then I mounted the other partition to /mnt/boot/efi.

Hope it's understandable now.
Regards

Offline

#7 2018-09-25 08:00:49

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

circleface wrote:

You have to generate a configuration file for grub no matter how you partition.  Judging by the files you listed in your first post, it sounds like you never generated the configuration file in the first place.  Since I don't use grub, I can't help much but you should be able to find the commands on the grub page in the wiki.

Aha well I did generate configuration file.

I mounted:
mounted p2 to /mnt
mounted p1 to /mnt/boot/efi

cd /mnt/boot/grub

I can see the 'grub.cfg', so I think it did generate grub conf?

Tell me if I am wrong.
Regards

Offline

#8 2018-09-25 08:12:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Unable to see/boot from SSD [SOLVED]

shatt3red wrote:

I can see the 'grub.cfg', so I think it did generate grub conf?

Tell me if I am wrong.

You can see it, none of us can. Rather than expecting handholding, open the file and read it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2018-09-25 08:15:39

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

jasonwryan wrote:
shatt3red wrote:

I can see the 'grub.cfg', so I think it did generate grub conf?

Tell me if I am wrong.

You can see it, none of us can. Rather than expecting handholding, open the file and read it.

Hey, yeah I am working on that (trying to post output here, however i don't know how to save it on usb, since I am trying to install arch on my new laptop, but I am writing on forums on (this) old pc.
I read the file alredy, but I want to post it here so you guys can see. any idea how I can do that?

Regards

Offline

#10 2018-09-25 08:19:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Unable to see/boot from SSD [SOLVED]


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2018-09-25 08:28:18

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

Thank you very much for showing me this!
I edited my topic with a link to grub.conf output.
Regards

Offline

#12 2018-09-25 08:36:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Unable to see/boot from SSD [SOLVED]

And do the UUIDs in the config match those of your partitions? Run `blkid` and check.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2018-09-25 08:43:36

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

jasonwryan wrote:

And do the UUIDs in the config match those of your partitions? Run `blkid` and check.

Giving you the whole output since I am not sure what I am trying to match

I did blkid: output:

https://ptpb.pw/41zc


grub.conf output:
https://ptpb.pw/SZo0


EDIT: The only thing I was able to match is this:

0a607271-ec84-4034-a613-34baaeb0c8c7

Last edited by shatt3red (2018-09-25 20:04:12)

Offline

#14 2018-09-26 06:31:32

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

Guys, I am still stuck at the same problem, need guidance hmm
Please help me
Regards

Offline

#15 2018-09-26 06:53:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Unable to see/boot from SSD [SOLVED]


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2018-09-26 07:11:45

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

jasonwryan wrote:

I did, multiple times. Am I missing something?
I already installed grub and made conf file.
Regars

Offline

#17 2018-09-26 07:25:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Unable to see/boot from SSD [SOLVED]

Do you even get to a GRUB boot or do you not see the relevant option in your BIOS/UEFI? Post the exact command you used for GRUB installation, as well as

efibootmgr -v

What's your motherboard?

Offline

#18 2018-09-26 07:43:05

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

V1del wrote:

Do you even get to a GRUB boot or do you not see the relevant option in your BIOS/UEFI? Post the exact command you used for GRUB installation, as well as

efibootmgr -v

What's your motherboard?

No I don't find any option to boot from in my BIOS/UEFI,

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB

efibootmgr -v output:
https://ptpb.pw/9qNy

about what motherboard I have: I am sorry, I cannot find that out, but I own Dell XPS 13'' 9370 laptop, so the motherboard that laptop has I do as well.

Regards

Offline

#19 2018-09-26 07:55:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Unable to see/boot from SSD [SOLVED]

Try

efibootmgr -o 2,0,1

if your GRUB still doesn't boot after a reboot, go through your BIOS and check if you have an option to specifically define additional EFI entries manually, if you don't have that either retry the GRUB installation but add the --removable flag.

Offline

#20 2018-09-26 08:04:13

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

V1del wrote:

Try

efibootmgr -o 2,0,1

if your GRUB still doesn't boot after a reboot, go through your BIOS and check if you have an option to specifically define additional EFI entries manually, if you don't have that either retry the GRUB installation but add the --removable flag.

I entered the command you gave me, GRUB still doesn't boot or show in my UEFI/BIOS.

I have an option under UEFI, to ADD BOOT OPTION. Clicking on that gives opens another window:

https://image.ibb.co/iXC7E9/haj.jpg

Last edited by shatt3red (2018-09-26 08:04:38)

Offline

#21 2018-09-26 08:11:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Unable to see/boot from SSD [SOLVED]

That's likely to be it then. click on the browsing symbol (and select the second of the two available filesystems) and find \EFI\GRUB\grubx64.efi give it any name, that one should be bootable.

Last edited by V1del (2018-09-26 08:13:20)

Offline

#22 2018-09-26 08:13:27

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

V1del wrote:

That's likely to be it then. click on the browsing symbol and find \EFI\GRUB\grubx64.efi give it any name, that one should be bootable.

Thank you very much, This is the solution to my problem!
Now I can see the GRUB boot option and it works too!

Thank you very much!
Best of regards

P.S, how do I add [SOLVED] to my topic title? seems to me that I can't type anything cause of title's length*?

Last edited by shatt3red (2018-09-26 08:15:18)

Offline

#23 2018-09-26 08:18:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Unable to see/boot from SSD [SOLVED]

Yeah these kinds of UEFI implementations can be a pain.

Glad to hear that that worked out, for editing title, just remove some other parts, the arch installation steps is not really necessary.

Offline

#24 2018-09-26 08:26:04

shatt3red
Member
Registered: 2018-09-23
Posts: 37

Re: Unable to see/boot from SSD [SOLVED]

V1del wrote:

Yeah these kinds of UEFI implementations can be a pain.

Glad to hear that that worked out, for editing title, just remove some other parts, the arch installation steps is not really necessary.

Again, thank you very much for everything.
have a beutiful day!
Regards

Offline

Board footer

Powered by FluxBB