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 ?
 


BoringZombie

Active Member
Joined
Apr 1, 2021
Messages
365
Reaction score
185
Credits
2,510

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,784
Reaction score
1,385
Credits
11,982
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.
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top