You are not logged in.

#1 2022-03-26 09:14:39

amghwk
Member
Registered: 2020-05-23
Posts: 43

Is there a way to list all partitions in (hdx,y) format for Grub?

In addition to knowing my Android-x86 partition in /dev/nvme0n1p5 for making a Grub entry in my Arch's Grub, is there a way to list all drives in their (hdx,y) identification?

I have two drives in my laptop : a 2TB SATA HDD for data storage in a single partition, which is shown as sda1 when I do a ls -l /dev/disk/by-xxxx command, and a 960GB NVME M.2 SSD, which is shown as /dev/nvme0n1p(x).

What will be the correct (hd[x],[y]) for the partition at /dev/nvme0n1p5?

And how can I proceed on my own in future to get the correct (hd[x],[y]) ?

I don't have a device.map file in the /boot/grub directory.

Thank you for any help.

Last edited by amghwk (2022-03-26 09:15:24)

Offline

#2 2022-03-26 10:34:07

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 127

Re: Is there a way to list all partitions in (hdx,y) format for Grub?

Use the UUID method. ie.sudu blkid to get UUID for your partition.

Offline

Board footer

Powered by FluxBB