Results 1 to 3 of 3

Thread: Device names in Linux

  1. #1
    Join Date
    Mar 2008
    Location
    Latvia
    Beans
    143
    Distro
    Xubuntu 13.04 Raring Ringtail

    Question Device names in Linux

    Hi, guys!

    I'm trying to understand how Linux ( (K)Ubuntu ) is naming devices (hard disks etc).
    So here goes basics...

    Found this page --->
    Click - Device names in Linux

    Is information in link above correct?


    And if it is, I have some questions:

    The first SCSI disk is named /dev/sda.
    1. Does SATA = SCSI? (I have one SATA hard drive and it is named [b]sdc[/])


    • The master disk on IDE primary controller is named /dev/hda.
    • The slave disk on IDE primary controller is named /dev/hdb.
    2. I don't see any hard drives / partions named hd(x); instead everything is named sd(x).
    And I have 2 IDE hard drives.

    I get that info by:
    Code:
    sudo fdisk -l
    Click - Paste Ubuntu of my fdisk


    Also does someone have some good links about this kinda things? (easy to understand language; or if not "hard language" )

  2. #2
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Device names in Linux

    The link you found was for Ubuntu Hardy (8.04) which is now no longer supported in the desktop version (the server version is still supported). The important thing is that there has been a change in the hard drive controller kernel drivers since Hardy. It used to be that sdX referred specifically to a SCSI drive, but when flash drives and SATA drives appeared, the SCSI controller driver was developed to include them so that sdX could refer to SCSI, SATA and flash drives. IDE/PATA drives still had their own kernel driver and were referred to as hdX. But then all types of hard or flash drives were integrated into one kernel driver and since then hdX device names have disappeared and all hard drives and flash drives appear as sdX - unless you use an old version of the Linux kernel.

    To be honest, I thought the change occurred before Hardy but, whatever, I do remember that with one version of the kernel during the changover, hdX/sdX designation varied according to the make of hardware controller. I had the disconcerting experience of seeing my IDE drives referred to as sdX in one machine and hdX on another - that's with the same release of Ubuntu.

    It's simpler now. Device name hdX belongs in the past.

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  3. #3
    Join Date
    Oct 2009
    Location
    apt-get
    Beans
    4,245
    Distro
    Ubuntu Gnome Development Release

    Re: Device names in Linux

    I always use GParted to give some Labels to my drives so that I can easily access them.

    I think Coffeecat has explained everything already

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •