Ana içeriğe atla
  • Hızla ve kolayca sipariş verin
  • Siparişleri görüntüleyin ve kargonuzun durumunu izleyin
  • Ürünlerinizin listesini oluşturun ve listeye erişin

Ubuntu Linux Terms for your Hard Drive and Devices Explained

Summary: The following article provides a reference about what hard drives and devices are called in the Ubuntu Linux operating system. It takes you through how they are used on your Dell Computer with Ubuntu installed. ...

Bu makale şunlar için geçerlidir: Bu makale şunlar için geçerli değildir: Bu makale, belirli bir ürüne bağlı değildir. Bu makalede tüm ürün sürümleri tanımlanmamıştır.

Instructions

Table of Contents:

  1. Understanding device naming in Linux
  2. Linux device naming convention
  3. GRUB device naming convention
  4. GRUB2 device naming convention
  5. Summary of device terms and usage in Ubuntu

Understanding device naming in Linux

 

Understanding the device naming and its usage are essential if you want to competently install and use Ubuntu Linux. Device naming has changed and evolved over the numerous versions of Linux that are constantly being put out as the technology changes.

Unfortunately this is not comparable to how Window's or Apple's name and use devices on their products. You may see some similarities with Google's Android.

Note: The current version of Ubuntu uses Grand Unified Bootloader (GRUB2). I would recommend sections 4 and section 5 as having the most up-to-date information.

Linux device naming convention

Linux started off by giving each device a name, then a position and then a partition.

Note: When partitioning up a Master Boot Record (MBR) drive: You can have a maximum of four Primary Partitions or a combination of several Primary and Logical Partitions. (It is recommended that you keep to this convention for GUID Partition Table (GPT) drives.)

Under Linux, the original naming convention was:

  • dev/fd0: First floppy disk drive
  • dev/fd1: Second floppy disk drive
  • dev/sda: First Small Computer System Interface (SCSI) disk
    • (SCSI ID address-wise)
  • dev/sdb: Second SCSI disk address-wise and so on
  • dev/scd0 or /dev/sr0: First SCSI CD-ROM
  • dev/hda: Primary disk on the Integrated Drive Electronics (IDE) primary controller
  • dev/hdb: Secondary disk on IDE primary controller
  • dev/mmcblk0: Secure Digital High Capacity (SDHC) card on Personal Computer Memory Card International Association (PCMCIA)
    • (Special Device Naming)
  • dev/sdb: Universal Serial Bus (USB) flash Drive against SCSI emulation
    • (However, the kernel starts in parallel with several drivers. This does not mean that your sda or sdb drive is a USB drive, but that the USB module was started simultaneously as the drive one and sends its messages simultaneously)
  • dev/hdc and /dev/hdd: Primary and secondary disks of the secondary controller respectively, newer IDE controllers have two channels acting like two controllers

GRUB device naming convention

GRUB changed the convention by adding a partition starting at zero.

The base name for a (E)IDE-controlled disk is dev/hd? The ? is a single letter. For GRUB this equals hd? The ? is position one through four.

Naming the devices is straightforward. Taking the first example below, then the first part is the device name hd and then the second part is the position that it holds a.

Drive Name:
  • dev/hda primary disk on first controller
  • dev/hdb secondary disk on first controller
  • dev/hdc primary disk on second controller
  • dev/hdd secondary disk on second controller
GRUB Name:
  • hd1 primary disk on first controller
  • hd2 secondary disk on first controller
  • hd3 primary disk on second controller
  • hd4 secondary disk on second controller

Naming the partitions becomes easier as you attach a number to the appropriate device. Look below for some partitions on dev/hda.

Note: 0 to 3 is the four possible primary partitions that you could choose and then 4 and above for the logical partitions you have set.
Drive Name:
  • dev/hda0 primary disk on first controller, first primary partition
  • dev/hda1 primary disk on first controller, second primary partition
  • dev/hda4 primary disk on first controller, first logical partition
  • dev/hda5 primary disk on first controller, second logical partition
GRUB Name:
  • hd1,0 primary disk on first controller, first primary partition
  • hd1,1 primary disk on first controller, second primary partition
  • hd1,4 primary disk on first controller, first logical partition
  • hd1,5 primary disk on first controller, second logical partition

GRUB2 device naming convention

GRUB2 changed the convention by taking the zero out of the naming convention, this means everything starts at one.

The base name for a (E)IDE-controlled disk is dev/hd? The ? is a single letter. For GRUB2 this equals hd? The ? is position one through four.

Naming the devices is straight forward. Taking the first example below then the first part is the device name hd then the second part is the position that it holds a.

Drive Name:
  • dev/hda primary disk on first controller
  • dev/hdb secondary disk on first controller
  • dev/hdc primary disk on second controller
  • dev/hdd secondary disk on second controller
GRUB2 Name:
  • hd1 primary disk on first controller
  • hd2 secondary disk on first controller
  • hd3 primary disk on second controller
  • hd4 secondary disk on second controller

Naming the partitions gets easier as you attach a number to the appropriate device. Look below for some partitions on dev/hda.

Note: 1 to 4 are the four possible primary partitions that you could choose and then 5 and above for the logical partitions you have set.
Drive Name:
  • dev/hda1 primary disk on first controller, first primary partition
  • dev/hda2 primary disk on first controller, second primary partition
  • dev/hda5 primary disk on first controller, first logical partition
  • dev/hda6 primary disk on first controller, second logical partition
GRUB2 Name:
  • hd1,1 primary disk on first controller, first primary partition
  • hd1,2 primary disk on first controller, second primary partition
  • hd1,5 primary disk on first controller, first logical partition
  • hd1,6 primary disk on first controller, second logical partition

Summary of device terms and usage in Ubuntu

Serial Advanced Technology Attachment (SATA) Drives:

With the advent of SATA drives, the convention changed and now hard drives are mostly referenced as sda instead of hda. Where sd stands for serial drive.

Partition Tables:

A partition table shows the partitions of a hard drive or any other storage device. There are two standards for the layout of the partition table:

  1. Master Boot Record (MBR): MBR also known as MS-DOS is what you might call the original standard. MBR is still the most widely used partition table, but it comes with two major limitations:

    1. It does not allow you to create more than four main partitions. Those partitions are called primary partitions.

    2. Disk partitions may not exceed two TB.

  2. GUID Partition Table (GPT): GPT came later. While MBR is still in use, the limitations are what led to the development of GPT. GPT overcomes the two limitations of MBR. You can have multiple primary partitions, and the drive size can exceed two TB.

Hard Drive Naming Convention:

The first thing that you must know is that there is no C drive or E drive in Linux. You see something like /dev/sda, /dev/sdb, /dev/sdc, and so on instead. The dev is short for device. The sd is short for SCSI mass-storage drive.

Partitions and Partition Numbering:

To install an operating system on a hard drive, you have to divide it into distinct storage units. We call those storage units partitions. Under MBR: Which is the default on virtually all Linux distributions, there are three different types of partitions - Primary, Extended, and Logical. With MBR any partition that is not explicitly created as an extended or logical partition, is a primary partition. Any unallocated space is shown as Free. While it may be free, you cannot use it in that state. As far as the computer is concerned that free space does not exist until it is partitioned.

partition guide screenshot

(Figure.1: Screenshot of the Partition Guide window)

If you have created the maximum number of partitions and still have Free Space, it is unusable.

partitioning error message screenshot

(Figure.2: Screenshot of the Partitioning error message)

Extended Partition:

By tagging a partition as an extended partition, it is possible to create many more partitions under the extended partition. Those partitions are called logical partitions, and there is no limit to the number of logical partitions that you can create. This means you can have three primary partitions and one extended partition and then create numerous partitions from there.

Note: Only one extended partition may be configured on a single hard drive.

The graphical installation program of Ubuntu is Ubiquity.

Two features have been added which have been available on other Linux distro's for some time.

The two features are:

Full Disk Encryption:

Support for encrypting the users' home directory has been in Ubiquity for a long time, but as a physical security tool. With full disk encryption, the computer does not boot if the correct disk encryption passphrase is not used. At every reboot, the person sitting in front of the computer with full disk encryption configured, a prompt is shown.

Linux Logical Volume Manager (LVM):

LVM makes it easier to manage disk space. Especially when it comes to resizing partitions and adding another hard Drive to the computer. LVM does not have redundancy built in. This means that in a multi-disk computer if one disk fails you have problems. LVM is only working using the automated scheme now.

Additional Information

Note:
Software support is by Canonical through the following methods: For technical support, contact: Dell Technical Support

Etkilenen Ürünler

Latitude, Vostro, XPS, Thin Clients, Fixed Workstations
Makale Özellikleri
Article Number: 000132092
Article Type: How To
Son Değiştirme: 09 May 2024
Version:  5
Sorularınıza diğer Dell kullanıcılarından yanıtlar bulun
Destek Hizmetleri
Aygıtınızın Destek Hizmetleri kapsamında olup olmadığını kontrol edin.