What sda numbur does my pc have
I have a Lenovo 300e and right now I am in BusyBox, but I don't know what sda number I have, maybe somebody could help me
- Execute the command
sudo lsblk
should show you all the blocks.- lsblk - list block devices - from lsblk man page.
- Another options is to execute the command
sudo fdisk -l
to show a list of the partitions.- fdisk - manipulate disk partition table - from fdisk man page.
- -l, --list List the partition tables for the specified devices and then exit. If no devices are given, those mentioned in /proc/parti‐ tions (if that file exists) are used - from fdisk man page.
- You can watch this thread for more ways and examples examples
- you can run all the commands with
grep
command to easier find your sda partition. - for example
sudo lsblk | grep -i sda
.
- you can run all the commands with