LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-19-2022, 07:17 PM   #1
Ve0
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Rep: Reputation: 1
Debian 11 can see the hdd which is not exist.


That is pretty wired. The system can see /dev/sdb. But ithe whole system only one hdd, why the system shows it? It cousing a lot of issues, for example systemd trying to initialize the hdd, load avarage going high... How to fix this issue?

Code:
pi@MonitoringServer:~$ lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0 74.5G  0 disk
├─sda1   8:1    0 73.6G  0 part /
├─sda2   8:2    0    1K  0 part
└─sda5   8:5    0  976M  0 part [SWAP]

pi@MonitoringServer:~$ ls -l /dev/sdb
brw-rw---- 1 root disk 8, 16 Apr 19 15:41 /dev/sdb

pi@MonitoringServer:~$ ls -al /dev/ | grep sd
brw-rw----  1 root disk      8,   0 Apr 19 16:22 sda
brw-rw----  1 root disk      8,   1 Apr 19 16:22 sda1
brw-rw----  1 root disk      8,   2 Apr 19 16:22 sda2
brw-rw----  1 root disk      8,   5 Apr 19 16:22 sda5
brw-rw----  1 root disk      8,  16 Apr 19 16:22 sdb

pi@MonitoringServer:~$ sudo fdisk -l /dev/sdb
[sudo] password for pi:
fdisk: cannot open /dev/sdb: No medium found

pi@MonitoringServer:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

pi@MonitoringServer:~$ ps -eo s,user,cmd | grep ^[RD]
D root     smartctl -a /dev/sdb -d 3ware,0 -j
D root     smartctl -a /dev/sdb -d sat -j
D root     smartctl -a /dev/sdb -d areca,1 -j
D root     /lib/systemd/systemd-udevd
D root     smartctl -a /dev/sdb -d 3ware,0 -j
D root     smartctl -a /dev/sdb -d cciss,0 -j
D root     smartctl -a /dev/sdb -d sat -j
R pi       ps -eo s,user,cmd

pi@MonitoringServer:~$

Last edited by Ve0; 04-19-2022 at 07:23 PM.
 
Old 04-20-2022, 12:35 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,353
Blog Entries: 1

Rep: Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200
Cannot reproduce here:
Code:
# inxi -Syz
System:
  Kernel: 5.10.0-13-amd64 arch: x86_64 bits: 64 Console: pty pts/0
    Distro: Debian GNU/Linux 11 (bullseye)
# fdisk -l | grep sdb
# ls -al /dev/ | grep sd
brw-rw----  1 root disk      8,   0 Apr 20 00:25 sda
brw-rw----  1 root disk      8,   1 Apr 20 00:25 sda1
brw-rw----  1 root disk      8,  10 Apr 20 00:25 sda10
brw-rw----  1 root disk      8,  11 Apr 20 00:25 sda11
brw-rw----  1 root disk      8,  12 Apr 20 00:25 sda12
brw-rw----  1 root disk      8,  13 Apr 20 00:25 sda13
brw-rw----  1 root disk      8,  14 Apr 20 00:25 sda14
brw-rw----  1 root disk      8,  15 Apr 20 00:25 sda15
brw-rw----  1 root disk    259,   0 Apr 20 00:25 sda16
brw-rw----  1 root disk    259,   1 Apr 20 00:25 sda17
brw-rw----  1 root disk    259,   2 Apr 20 00:25 sda18
brw-rw----  1 root disk    259,   3 Apr 20 00:25 sda19
brw-rw----  1 root disk      8,   2 Apr 20 00:25 sda2
brw-rw----  1 root disk    259,   4 Apr 20 00:25 sda20
brw-rw----  1 root disk    259,   5 Apr 20 00:25 sda21
brw-rw----  1 root disk    259,   6 Apr 20 00:25 sda22
brw-rw----  1 root disk    259,   7 Apr 20 00:25 sda23
brw-rw----  1 root disk    259,   8 Apr 20 00:25 sda24
brw-rw----  1 root disk    259,   9 Apr 20 00:25 sda25
brw-rw----  1 root disk    259,  10 Apr 20 00:25 sda26
brw-rw----  1 root disk    259,  11 Apr 20 00:25 sda27
brw-rw----  1 root disk    259,  12 Apr 20 00:25 sda28
brw-rw----  1 root disk    259,  13 Apr 20 00:25 sda29
brw-rw----  1 root disk      8,   3 Apr 20 00:25 sda3
brw-rw----  1 root disk    259,  14 Apr 20 00:25 sda30
brw-rw----  1 root disk    259,  15 Apr 20 00:25 sda31
brw-rw----  1 root disk    259,  16 Apr 20 00:25 sda32
brw-rw----  1 root disk    259,  17 Apr 20 00:25 sda33
brw-rw----  1 root disk    259,  18 Apr 20 00:25 sda34
brw-rw----  1 root disk    259,  19 Apr 20 00:25 sda35
brw-rw----  1 root disk    259,  20 Apr 20 00:25 sda36
brw-rw----  1 root disk    259,  21 Apr 20 00:25 sda37
brw-rw----  1 root disk    259,  22 Apr 20 00:25 sda38
brw-rw----  1 root disk    259,  23 Apr 20 00:25 sda39
brw-rw----  1 root disk      8,   4 Apr 20 00:25 sda4
brw-rw----  1 root disk    259,  24 Apr 20 00:25 sda40
brw-rw----  1 root disk    259,  25 Apr 20 00:25 sda41
brw-rw----  1 root disk    259,  26 Apr 20 00:25 sda42
brw-rw----  1 root disk    259,  27 Apr 20 00:25 sda43
brw-rw----  1 root disk    259,  28 Apr 20 00:25 sda44
brw-rw----  1 root disk    259,  29 Apr 20 00:25 sda45
brw-rw----  1 root disk    259,  30 Apr 20 00:25 sda46
brw-rw----  1 root disk    259,  31 Apr 20 00:25 sda47
brw-rw----  1 root disk    259,  32 Apr 20 00:25 sda48
brw-rw----  1 root disk    259,  33 Apr 20 00:25 sda49
brw-rw----  1 root disk      8,   5 Apr 20 00:25 sda5
brw-rw----  1 root disk    259,  34 Apr 20 00:25 sda50
brw-rw----  1 root disk      8,   6 Apr 20 00:25 sda6
brw-rw----  1 root disk      8,   7 Apr 20 00:25 sda7
brw-rw----  1 root disk      8,   8 Apr 20 00:25 sda8
brw-rw----  1 root disk      8,   9 Apr 20 00:25 sda9
root@p5bse:~# ps -eo s,user,cmd | grep ^[RD]
R root     ps -eo s,user,cmd
#  hwinfo --disk
27: IDE 00.0: 10600 Disk
  [Created at block.245]
  Unique ID: 3OOL.KUHAmYKkMP8
  Parent ID: w7Y8.C1XtO3LrEQC
  SysFS ID: /class/block/sda
  SysFS BusID: 0:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0
  Hardware Class: disk
  Model: "HITACHI HDS72505"
  Vendor: "HITACHI"
  Device: "HDS72505"
  Revision: "AB0A"
  Serial ID: "ZBGDYU6F"
  Driver: "ata_piix", "sd"
  Driver Modules: "ata_piix", "sd_mod"
  Device File: /dev/sda
  Device Number: block 8:0-8:15
  BIOS id: 0x80
  Geometry (Logical): CHS 60801/255/63
  Size: 976773168 sectors a 512 bytes
  Capacity: 465 GB (500107862016 bytes)
  Geometry (BIOS EDD): CHS 969021/16/63
  Size (BIOS EDD): 976773168 sectors
  Geometry (BIOS Legacy): CHS 1024/255/63
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #3 (IDE interface)
#
Could this be because you're doing these sysadmin-type things as ordinary user instead of root?
 
Old 04-20-2022, 01:39 AM   #3
Ve0
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Original Poster
Rep: Reputation: 1
Code:
pi@MonitoringServer:~$ hwinfo --disk
21: SCSI 400.0: 10600 Disk
  [Created at block.256]
  Unique ID: uI_Q.ZiH4cwUk08E
  Parent ID: 5YuN.zjSfFcV+DI1
  SysFS ID: /class/block/sdb
  SysFS BusID: 4:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/host4/target4:0:0/4:0:0:0
  Hardware Class: disk
  Model: "Generic Multi-Card"
  Vendor: "Generic-"
  Device: "Multi-Card"
  Revision: "1.00"
  Driver: "ums-realtek", "sd"
  Driver Modules: "ums_realtek", "sd_mod"
  Device File: /dev/sdb (/dev/sg1)
  Device Files: /dev/sdb, /dev/disk/by-id/usb-Generic-_Multi-Card_20090516388200000-0:0, /dev/disk/by-path/pci-0000:00:1d.7-usb-0:8:1.0-scsi-0:0:0:0
  Device Number: block 8:16-8:31 (char 21:1)
  Drive status: no medium
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #19 (USB Controller)

22: IDE 00.0: 10600 Disk
  [Created at block.245]
  Unique ID: 3OOL.5HWPEg3CgYA
  Parent ID: w7Y8.Bf3tZZoWvNB
  SysFS ID: /class/block/sda
  SysFS BusID: 0:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0
  Hardware Class: disk
  Model: "INTEL SSDSA2CW08"
  Vendor: "INTEL"
  Device: "SSDSA2CW08"
  Revision: "0302"
  Driver: "ahci", "sd"
  Driver Modules: "ahci", "sd_mod"
  Device File: /dev/sda
  Device Files: /dev/sda, /dev/disk/by-id/wwn-0x500151795955e8e1, /dev/disk/by-path/pci-0000:00:1f.2-ata-1, /dev/disk/by-path/pci-0000:00:1f.2-ata-1.0, /dev/disk/by-id/ata-INTEL_SSDSA2CW080G3_CVPR118001P9080BGN
  Device Number: block 8:0-8:15
  Drive status: no medium
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #3 (SATA controller)

27: USB 00.0: 10600 Disk
  [Created at usb.122]
  Unique ID: zFuK.lW+IYSj3qA1
  Parent ID: k4bc.9T1GDCLyFd9
  SysFS ID: /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0
  SysFS BusID: 1-8:1.0
  Hardware Class: disk
  Model: "Realtek RTS5138 Card Reader Controller"
  Hotplug: USB
  Vendor: usb 0x0bda "Realtek Semiconductor Corp."
  Device: usb 0x0138 "RTS5138 Card Reader Controller"
  Revision: "38.82"
  Serial ID: "20090516388200000"
  Driver: "ums-realtek"
  Driver Modules: "ums_realtek"
  Speed: 480 Mbps
  Module Alias: "usb:v0BDAp0138d3882dc00dsc00dp00ic08isc06ip50in00"
  Driver Info #0:
    Driver Status: ums_realtek is active
    Driver Activation Cmd: "modprobe ums_realtek"
  Driver Info #1:
    Driver Status: uas is active
    Driver Activation Cmd: "modprobe uas"
  Driver Info #2:
    Driver Status: usb_storage is active
    Driver Activation Cmd: "modprobe usb_storage"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #26 (Hub)
All card readers are empty.

Last edited by Ve0; 04-20-2022 at 01:43 AM.
 
Old 04-20-2022, 01:40 AM   #4
Ve0
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Original Poster
Rep: Reputation: 1
Question

Quote:
Originally Posted by mrmazda View Post
Could this be because you're doing these sysadmin-type things as ordinary user instead of root?
Not sure I understand you...
 
Old 04-20-2022, 02:07 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,353
Blog Entries: 1

Rep: Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200Reputation: 2200
Quote:
Originally Posted by Ve0 View Post
Not sure I understand you...
Disk management is the type of thing normally managed by the administrator. Trying to run commands admins normally use as a normal user sometimes produce unexpected results.

hwinfo --disk shows an association between sdb and the Generic Multi-Card device. Are you able to disconnect that device as a test to determine if it is related to, or it or its driver is, the cause of the problem?
 
Old 04-20-2022, 02:57 AM   #6
lvm_
Senior Member
 
Registered: Jul 2020
Posts: 1,393

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
Devices for removable disks - floppies, card readers, etc, are created at boot and always available regardless of whether the disk is present. This is the standard behaviour and your issue whatever it is is caused by something else. It's a good idea to describe your problem in more detail.
 
Old 04-20-2022, 04:20 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,700

Rep: Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823
it looks like /dev/sdb is an usb device, so probably something is plugged in (a phone, or ???). I guess something which can work as a storage device, but currently that feature is disabled.
 
Old 04-20-2022, 01:52 PM   #8
Ve0
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by pan64 View Post
it looks like /dev/sdb is an usb device, so probably something is plugged in (a phone, or ???). I guess something which can work as a storage device, but currently that feature is disabled.
Only one thing is pluged in true USB - APC UPS, which monitored by apcupsd. But system have MS/SD/MMC card reader, which connected by USB too, I guess (Card rider is a part of the computer, cant disconnect it)

Code:
Bus 005 Device 002: ID 0bda:0138 Realtek Semiconductor Corp. RTS5138 Card Reader Controller
UPD: google it by model and found that the card reader (which my tiny computer have) in windows and linux systems shows as the disk. How can I disable it in the system? Which driver should I blacklisted to disable it? I do not use Card reader at all.

Last edited by Ve0; 04-20-2022 at 02:16 PM.
 
Old 04-20-2022, 02:34 PM   #9
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by Ve0 View Post
How can I disable it in the system? Which driver should I blacklisted to disable it? I do not use Card reader at all.
Why be concerned? It's just an empty device pointer.
 
Old 04-20-2022, 02:37 PM   #10
Ve0
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by SlowCoder View Post
Why be concerned? It's just an empty device pointer.
High load average because monitoring system thinking it is device. smartmontools trying to monitor it.
 
Old 04-20-2022, 02:55 PM   #11
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
If you truly think that is a problem with the USB card reader then why not unplug it, and only plug it in when you have a card that you need to use. Seems the simplest solution if your premise is correct.

I never plug in usb devices that are not currently needed or in use. Not even disconnected cables.
 
Old 04-20-2022, 03:17 PM   #12
Arnulf
Member
 
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 307

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by Ve0 View Post
smartmontools trying to monitor it.
Be root and edit your /etc/smartd.conf in a way that /dev/sdb (your cardreader) won't be monitored longer.

man smartd.conf
 
1 members found this post helpful.
Old 04-20-2022, 07:50 PM   #13
Ve0
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by computersavvy View Post
If you truly think that is a problem with the USB card reader then why not unplug it, and only plug it in when you have a card that you need to use. Seems the simplest solution if your premise is correct.

I never plug in usb devices that are not currently needed or in use. Not even disconnected cables.
Can't do that, card reader in on the motherboard. I can't disconnect it at all.
 
Old 04-20-2022, 08:58 PM   #14
Ve0
LQ Newbie
 
Registered: Apr 2022
Posts: 13

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Arnulf View Post
Be root and edit your /etc/smartd.conf in a way that /dev/sdb (your cardreader) won't be monitored longer.

man smartd.conf
Thank you! Already read it. But the issue with not only smartctl. I need to remove this disk from dev dir...
 
Old 04-21-2022, 01:18 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,700

Rep: Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823Reputation: 7823
https://sleeplessbeastie.eu/2018/06/...le-usb-device/
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No UUID on external 500G HDD and can't even see the 500G INTERNAL hdd hapibeli Linux - Hardware 7 01-05-2022 08:47 PM
hdd dock can't see new raw hdd DanceMan Linux - Hardware 3 08-24-2021 03:34 AM
Selenium: Check whether button exist or not and if exist whether the the text is in it is desired one or not daichiash General 0 07-03-2020 11:17 AM
[SOLVED] cannot login to funtoo linux. UID 0 does not exist. no users or groups seem to exist. whansard Linux - Security 1 12-19-2018 04:40 AM
can not see fonts in Gnome, can not see fonts in GNOME... Dunhill Linux - Software 0 09-04-2006 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration