How does Ubuntu manage switching from /dev/sdx to name or id ?

Status
Not open for further replies.

anneranch

Active Member
Joined
Mar 16, 2019
Messages
223
Reaction score
43
Credits
2,078
To my limited knowledge about UNIX devices - they "start" with /dev/sdx designation.

There must be an advantage to switch to other designations , and at this point I am not
interested why . Please no sermons about it.

( I have enough problems keeping track of the SECOND device letter designation EVERY time I run gparted - YES , 3rd party story - no such comments required either)

Would somebody who actually works on Ubuntu contact me and answer this question:

Gurus can use name or id BUT for us mortals, limited to recognize only "dev/sdx" ,
can Ubuntu OS OUTPUTs "dev/sdx" aslo ?
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,078
Reaction score
747
Credits
5,603
The /dev (device) isn't determined by Ubuntu.
It's part of the Linux Kernel.

IDE hard drives, SATA hard drives (which includes most SSD drives) are usually recognized as /dev/sdX
(normally starting at "a")
Almost almosts USB thumb drives all also listed as /dev/sdX
NVME drives are normally recognized as /dev/nvmeXm
(normally starting at 0)
CD/DVD ROM drives are usually recognized as /dev/srX
(normally starting at 0 )

You can use udev rules to re-order or re-label these drives.

Some applications such as the Linux mount daemon, will also use use the /dev device path for mounting disks.
However they prefer the blkid of the device, over the device path.
 
Status
Not open for further replies.
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top