In GNOME, you can find the serial number of a drive using the Disks
utility. Here are the steps:
- Open the
Disks
utility by clicking on the Applications menu and searching for “Disks”. - In the
Disks
window, select the drive you want to find the serial number for from the list of drives on the left-hand side. - Once you have selected the drive, click on the gear icon at the top right corner of the window and select “Drive Settings”.
- In the “Drive Settings” window, you will see the serial number listed under the “Device” section.
Alternatively, you can use the udevadm
command to find the serial number of a drive. Here are the steps:
- Open the terminal by clicking on the Applications menu and searching for “Terminal”.
- In the terminal, type the following command to find the device name of the drive:
sudo fdisk -l
- Look for the device name of the drive in the output of the
fdisk
command. It will be something like/dev/sda
or/dev/sdb
. - Once you have found the device name, type the following command to find the serial number:
sudo udevadm info --query=property --name=/dev/sda | grep ID_SERIAL
Replace
/dev/sda
with the device name of your drive. - The output of the
udevadm
command will show the serial number of the drive. It will be listed asID_SERIAL=
followed by the serial number.