What is "/dev/sdd"?

I did not post this in hardware, because I think it’s a software issue.

I list disk drives:


# ls -l /dev/sd?
brw-rw---- 1 root disk 8,  0 Apr  2 22:22 /dev/sda
brw-rw---- 1 root disk 8, 16 Apr  2 22:22 /dev/sdb
brw-rw---- 1 root disk 8, 32 Apr  2 22:22 /dev/sdc
brw-rw---- 1 root disk 8, 48 Apr  3 11:53 /dev/sdd

I have three hard drives on this desktop. So what is “/dev/sdd”?

The timestamp for the first three drives is when I last booted. The time stamp shown for “/dev/sdd” was the time when I used that command.

I cannot access that ghost disk:


# fdisk -l /dev/sdd
fdisk: cannot open /dev/sdd: No medium found

Maybe it is referring to the SATA port. But that should already be connected to the DVD reader:


# ls -l /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Apr  2 22:22 /dev/sr0

And it is not just this computer. If I try on my laptop, with only one hard drive:


# ls -l /dev/sd?
brw-rw---- 1 root disk 8,  0 Mar 31 14:26 /dev/sda
brw-rw---- 1 root disk 8, 16 Apr  3 12:12 /dev/sdb

Again, the timestamp for the actual drive (/dev/sda) is when that computer was last booted. And the timestamp for the ghost drive is the time of the “ls” command.

@nrickert:

Neil, take a look at ‘/sys/block/sd*’


 > l /dev/sd*
brw-rw---- 1 root disk 8,  0  3. Apr 08:15 /dev/sda
brw-rw---- 1 root disk 8,  1  3. Apr 08:15 /dev/sda1
brw-rw---- 1 root disk 8,  2  3. Apr 08:15 /dev/sda2
brw-rw---- 1 root disk 8, 16  3. Apr 08:15 /dev/sdb
brw-rw---- 1 root disk 8, 17  3. Apr 08:15 /dev/sdb1
brw-rw---- 1 root disk 8, 18  3. Apr 08:15 /dev/sdb2
brw-rw---- 1 root disk 8, 32  3. Apr 08:15 /dev/sdc
brw-rw---- 1 root disk 8, 33  3. Apr 08:15 /dev/sdc1
brw-rw---- 1 root disk 8, 34  3. Apr 08:15 /dev/sdc2
brw-rw---- 1 root disk 8, 35  3. Apr 08:15 /dev/sdc3
brw-rw---- 1 root disk 8, 48  3. Apr 08:15 /dev/sdd
brw-rw---- 1 root disk 8, 64  3. Apr 08:15 /dev/sde
brw-rw---- 1 root disk 8, 80  3. Apr 08:15 /dev/sdf
brw-rw---- 1 root disk 8, 96  3. Apr 08:15 /dev/sdg
 > 
> l /sys/block/sd*
lrwxrwxrwx 1 root root 0  3. Apr 08:15 /sys/block/sda -> ../devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda/
lrwxrwxrwx 1 root root 0  3. Apr 08:15 /sys/block/sdb -> ../devices/pci0000:00/0000:00:11.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb/
lrwxrwxrwx 1 root root 0  3. Apr 08:15 /sys/block/sdc -> ../devices/pci0000:00/0000:00:11.0/ata3/host2/target2:0:0/2:0:0:0/block/sdc/
lrwxrwxrwx 1 root root 0  3. Apr 08:15 /sys/block/sdd -> ../devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0/host6/target6:0:0/6:0:0:0/block/sdd/
lrwxrwxrwx 1 root root 0  3. Apr 08:15 /sys/block/sde -> ../devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0/host6/target6:0:0/6:0:0:1/block/sde/
lrwxrwxrwx 1 root root 0  3. Apr 08:15 /sys/block/sdf -> ../devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0/host6/target6:0:0/6:0:0:2/block/sdf/
lrwxrwxrwx 1 root root 0  3. Apr 08:15 /sys/block/sdg -> ../devices/pci0000:00/0000:00:12.2/usb1/1-5/1-5:1.0/host6/target6:0:0/6:0:0:3/block/sdg/
 > 

Using “hdparm -i /dev/sd?” errors at “d” with:


/dev/sdd:
SG_IO: bad/missing sense data, sb]:  70 00 02 00 00 00 00 0a 00 00 00 00 3a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 HDIO_GET_IDENTITY failed: Invalid argument

Most times,
I find that is the optical drive.

TSU

That gives me:


lrwxrwxrwx 1 root root 0 Apr  3 14:35 /sys/block/sdd -> ../devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.4/3-1.4:1.0/host6/target6:0:0/6:0:0:0/block/sdd

If I plug in a USB drive, that shows as “/dev/sde” and not as “/dev/sdd”. But perhaps that depends on which USB port I plug it into.

This is relatively recent. It used to be that only “/dev/sda”, “/dev/sdb” and “/dev/sdc” showed up (unless I plugged in a USB drive). Something has changed. I’m not sure if it is intentional or a bug.

Is it still there after a reboot? I’ve seen this when I had a USB device mounted and unplugged it when I was still in one of the mountpoint in Yakuake, The /dev/ entry was then not removed. So


mount /dev/sdb1 /mnt
cd /mnt (unplug USB disk )
ls -ltr /dev | tail -4 

The last command would still show /dev/sdb and /dev/sdb1 etc. I took tail -4 because I knew the device has 3 partitions.

Yes.

The listing I gave was after booting (last evening), and before plugging in and USB drives. However, since then I have now plugged in an external drive. My laptop, with similar behavior, has not had any USB drive plugged in for several weeks. It does have a USB mouse. I tried unplugging that, but nothing changes (other than the mouse change). I have not tried rebooting without the USB mouse.

My main desktop (for the original listing that I gave) routinely has a USB mouse, a USB keyboard and a USB ups system connected, none of which are disks or disk-like.

No. It is next unused SCSI disk name. It does not matter how it is connected. What “lsusb -t” says? Full “udevadm info --export-db” output would be even better.

Try this google-drive link for the udevadm output. I will delete in a week or two.

I have (alomost the same here.

boven:~ # l /dev/sd?
brw-rw---- 1 root disk 8,  0 Apr  4 09:51 /dev/sda
brw-rw---- 1 root disk 8, 16 Apr  4 09:51 /dev/sdb
boven:~ # fdisk /dev/sdb

Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

fdisk: cannot open /dev/sdb: No medium found
boven:~ # ls -l /dev/disk/by-* | grep sdb
lrwxrwxrwx 1 root root  9 Apr  4 09:51 usb-Generic-_SD_MMC_MS_PRO_20120926571200000-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 Apr  4 09:51 pci-0000:00:14.0-usb-0:9:1.0-scsi-0:0:0:0 -> ../../sdb
boven:~ # 

Straight after boot. Only the date/time is that of boot in both disks. Needless to say that I have only one disk

EDIT: Sorry, must be the card reader.!!

Do you have this device?

E: ID_MODEL=USB2.0-CRW
E: ID_MODEL_FROM_DATABASE=USB 2.0 multicard reader
E: ID_MODEL_ID=0158
E: ID_REVISION=5888
E: ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Corp.
E: ID_VENDOR_ID=0bda

No, there’s no such device here unless it is well hidden.

Well, I guess full dmesg after boot would be helpful.

I am not affluent with Udev, but as udev creates the device files, checking there might be helpful. I know udev has some informational commands and/or loggings.

What about

udevadm info /dev/sdd

It is always after boot :frowning:

I can upload the current “dmesg” output. If you need me to reboot first, then I’ll delay until a convenient time. My next scheduled reboot is Monday morning, but I guess I can do an earlier one.

Mine is

ls -l /dev/sd?
brw-rw---- 1 root disk 8,  0 Apr  4 13:03 /dev/sda
brw-rw---- 1 root disk 8, 16 Apr  4 13:03 /dev/sdb
brw-rw---- 1 root disk 8, 32 Apr  4 13:03 /dev/sdc
brw-rw---- 1 root disk 8, 48 Apr  4 13:03 /dev/sdd
brw-rw---- 1 root disk 8, 64 Apr  4 13:03 /dev/sde
brw-rw---- 1 root disk 8, 80 Apr  4 13:03 /dev/sdf
brw-rw---- 1 root disk 8, 96 Apr  4 13:03 /dev/sdg

df /dev/sdd
Filesystem     1K-blocks  Used Available Use% Mounted on
devtmpfs         9171092     0   9171092   0% /dev

From sdd to sdg all are in devtmpfs

If it contains all messages starting from boot - fine. You could also upload “journalctl -b” output, should have the same things.

Sorry, but I assume you missed something.

@nrickert has a disk that he can not identify, because there is only one disk present on his system.
To show you have the same or similar astonishment, you should at least explain which of thoses devices do not correspond to a disk you physicaly have, else it is just a list of your mass-storage devices. :wink:

Please re-read and try to understand what df does

man df

The command you gave lets df first search for the file /dev/sdd. Then it finds out on what file system that file sits. That file system happens to be /dev. Then it shows data about that file system. Amongst that is what device it is mounted from (/dev) and the file system type (devtmpfs).

That will be true for all /dev/sd? files you try. Even for /dev/sda, /dev/sdb and /dev/sdc.
It is in fact the first line of what you see on my system when I use no file name, which then means

If no file name is given, the space available on all currently mounted file systems is shown

henk@boven:~> df
Filesystem     1K-blocks     Used Available Use% Mounted on
devtmpfs         4001520        8   4001512   1% /dev
tmpfs            4010008   178980   3831028   5% /dev/shm
tmpfs            4010008     1796   4008212   1% /run
tmpfs            4010008        0   4010008   0% /sys/fs/cgroup
/dev/sda3       20510716 11315028   8130732  59% /
tmpfs            2005008       12   2004996   1% /tmp
/dev/sda1         262144    83872    178272  32% /boot/efi
/dev/sda4      206291640 84842620 120384072  42% /home
tmpfs             802000       12    801988   1% /run/user/1000
henk@boven:~> 

I will get that first line for every file I give to df that is inside the /dev mount point:

henk@boven:~> df /dev/sda
Filesystem     1K-blocks  Used Available Use% Mounted on
devtmpfs         4001520     8   4001512   1% /dev
henk@boven:~> df/dev/sdb
bash: df/dev/sdb: Bestand of map bestaat niet
henk@boven:~> df /dev/sdb
Filesystem     1K-blocks  Used Available Use% Mounted on
devtmpfs         4001520     8   4001512   1% /dev
henk@boven:~> df /dev/tty
Filesystem     1K-blocks  Used Available Use% Mounted on
devtmpfs         4001520     8   4001512   1% /dev
henk@boven:~>

Like I will always get the information about the file system mounted on /home with

henk@boven:~> df /home/henk
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda4      206291640 84842612 120384080  42% /home
henk@boven:~> df /home/henk/bin
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda4      206291640 84842612 120384080  42% /home
henk@boven:~> 

Here’s a downloadable url for "dmesg.out
which appears to have all messages since boot.

Hi,
Thanks for that.
I also have only 3 hard drive on this desktop