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

Quick Answer: /dev/sdb is the Linux device file representing the second SATA or SCSI disk drive connected to a system, following the naming convention where /dev/sda is the first disk. It functions as a block device that allows users and applications to access raw disk storage for partitioning, formatting, and mounting filesystems. This device file is essential for managing multiple storage devices on Linux systems and is typically used for secondary drives, external USB storage, or additional internal hard drives.

Key Facts

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:

Key Comparisons

Feature/dev/sdb (SATA/SCSI)/dev/nvme0n1 (NVMe)/dev/vda (Virtual)
Device TypePhysical SATA/SCSI diskNVMe solid-state driveVirtual block device
Naming Patternsd + letter sequencenvme + controller number + drive numbervd + letter sequence
Typical Speed100-300 MB/s (SATA)3,000-7,000 MB/s (PCIe 3.0+)Depends on backend storage
Common UsesSecondary drives, external USB storageHigh-performance system drivesVirtual machines, containers
Access Permissionsroot: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.

Sources

  1. Linux Kernel Documentation - Device FilesGPL-2.0
  2. Linux Manual Page - sd (SCSI Disk Devices)GPL-2.0
  3. Linux Storage Stack OverviewCC-BY-4.0

Missing an answer?

Suggest a question and we'll generate an answer for it.