What Is /dev/sdb
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 11, 2026
Key Facts
- Linux device naming convention for disks was established in the 1990s, with /dev/sdb representing the second drive in sequence
- /dev/sdb is a block device file that operates at 4096-byte sector boundaries on modern systems, allowing efficient data access
- Partitions on /dev/sdb are numbered sequentially as /dev/sdb1, /dev/sdb2, etc., enabling multiple filesystems on a single drive
- Default file permissions for /dev/sdb are 660 (rw-rw----) owned by root:disk, restricting direct access to privileged users
- The 'd' in sdb stands for 'disk' while 'b' indicates block device; SATA drives typically use sd* naming, while NVMe drives use nvme* naming
Overview
/dev/sdb is a device file in Linux systems that represents the second SATA or SCSI disk drive connected to a computer. It is part of Linux's device naming convention, where /dev/sda represents the first disk, /dev/sdc represents the third disk, and so on. This naming scheme has been the standard in Unix-like systems since the 1990s and remains unchanged in modern Linux distributions.
As a block device, /dev/sdb provides raw access to the physical storage medium, allowing the operating system, system administrators, and applications to read from and write to the entire disk without going through a filesystem layer. Block devices differ from character devices in that they are accessed in fixed-size blocks (typically 4096 bytes on modern systems) rather than as a stream of characters. The file itself is not a regular file on disk but rather a special file that acts as an interface to the underlying hardware device driver.
How It Works
Understanding /dev/sdb requires knowledge of how Linux manages storage devices at the system level:
- Device Naming Convention: Linux follows a predictable naming scheme where the second letter (b, c, d, etc.) indicates the device sequence, and the third letter 'd' stands for disk. This allows administrators to quickly identify which physical drive they are working with when multiple storage devices are present on a system.
- Block Device Access: /dev/sdb operates as a block device, meaning data is accessed in discrete blocks rather than as a continuous stream. Modern systems typically use 4096-byte blocks, which align with the physical sector size of most contemporary hard drives and SSDs, optimizing performance and reducing overhead.
- Partitioning and Partitions: A single disk device like /dev/sdb can be divided into multiple partitions, which are represented as /dev/sdb1, /dev/sdb2, /dev/sdb3, and so forth. Each partition can contain its own filesystem (ext4, NTFS, FAT32, etc.) and can be mounted independently at different locations in the filesystem hierarchy.
- File Permissions and Access Control: /dev/sdb files typically have permissions of 660 (rw-rw----), owned by the root user and the disk group. This means only the root user and members of the disk group can directly access the device, preventing unprivileged users from accidentally or maliciously corrupting disk data.
- Kernel Device Drivers: The actual communication between /dev/sdb and the physical hardware is handled by kernel-level device drivers specific to the storage controller (SATA, SCSI, NVMe, etc.). These drivers translate system calls from userspace applications into hardware-specific commands sent to the storage device.
Key Comparisons
| Feature | /dev/sdb (SATA/SCSI) | /dev/nvme0n1 (NVMe) | /dev/vda (Virtual) |
|---|---|---|---|
| Device Type | Physical SATA/SCSI disk | NVMe solid-state drive | Virtual block device |
| Naming Pattern | sd + letter sequence | nvme + controller number + drive number | vd + letter sequence |
| Typical Speed | 100-300 MB/s (SATA) | 3,000-7,000 MB/s (PCIe 3.0+) | Depends on backend storage |
| Common Uses | Secondary drives, external USB storage | High-performance system drives | Virtual machines, containers |
| Access Permissions | root:disk (660) | root:disk (660) | root:root (660) |
Why It Matters
System Administration Impact: Administrators must understand /dev/sdb to perform critical tasks including disk partitioning with fdisk or parted, creating filesystems with mkfs, backing up data with dd or tar, and troubleshooting storage issues. Incorrectly targeting the wrong device (such as confusing /dev/sdb with /dev/sda) can result in catastrophic data loss, making proper identification essential before any destructive operation.
Storage Scalability: As systems require additional storage capacity, /dev/sdb and subsequent devices provide a standardized way to integrate new drives. This naming convention ensures that scripts, automation tools, and system documentation remain consistent across different hardware configurations and Linux distributions, facilitating easier system maintenance and scaling.
Data Recovery and Forensics: The direct block device access provided by /dev/sdb is critical for data recovery specialists and forensic analysts who need to examine or recover data from damaged filesystems or deleted files. By working directly with the device, rather than through a mounted filesystem, they can access data that would otherwise be inaccessible.
Performance Optimization: Understanding /dev/sdb and its characteristics allows system administrators to optimize storage performance through proper alignment of partitions, selection of appropriate block sizes, and configuration of I/O scheduling algorithms. This knowledge is particularly important in high-performance computing environments and database servers where storage I/O is a critical bottleneck.
In modern cloud and virtualized environments, the equivalent concept is represented differently (such as /dev/vda for virtual machines), but the principles of block device access remain the same. Whether working with physical hardware, virtual machines, or cloud-based storage, understanding the /dev/sd* naming convention is fundamental to Linux system administration and storage management.
More What Is in Daily Life
Also in Daily Life
More "What Is" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
Missing an answer?
Suggest a question and we'll generate an answer for it.