How Does /Dev/sdX Work?

Sorry if I don't have the correct terminology, I am still somewhat a linux novice.

I have a computer with four hard drives (sda, sdb, sdc & sdd) in it. I am going to add a fifth (sde) which will replace two others (sdb & sdc).

Adding the drive and moving data to it is the easy part for me. What happens when I physically remove the other two disks? Will the labels move down? Will I need to manually edit fstab and fix the problem?

1 Answer

Letters are assigned on the basis of which drive gets enumerated first. The first drive gets /dev/sda, the second /dev/sdb, etc. If you want to avoid having to modify /etc/fstab then you should consider using the filesystem labels or UUIDs instead of the device node.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest