In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the linux hard disk can not identify how to do, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Linux hard disk unrecognized solutions: 1, view the hard drive; 2, view the current system's host directory; 3, to the host directory inside the file scan appended "-"; 4, one click to execute the shell script.
Operating environment of this article: linux5.9.8 system, DELL G3 computer
What if the linux hard drive is not recognized?
The solution that adding a new hard disk to Linux does not recognize [no reboot]
1. View the hard disk
[root@linux-host1 ~] # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsda 8:0 0 20G 0 disk ├─ sda1 8:1 0 1G 0 part / boot └─ sda2 8:2 0 19G 0 part ├─ centos-root 253 sda2 0 017G 0 lvm / └─ centos-swap 253 Switzerland 1 0 2G 0 lvm [SWAP] sr0 11:0 1 1G 0 rom # No hard drive detected for sdb
2. Check how many host directories there are on the current system.
[root@linux-host1] # ls / sys/class/scsi_host/-ltotal 0lrwxrwxrwx. 1 root root 0 Sep 16 12:42 host0->.. / devices/pci0000:00/0000:00:10.0/host0/scsi_host/host0lrwxrwxrwx. 1 root root 0 Sep 16 12:42 host1->.. / devices/pci0000:00/0000:00:07.1/ata1/host1/scsi_host/host1lrwxrwxrwx. 1 root root 0 Sep 16 12:42 host2->.. / devices/pci0000:00/0000:00:07.1/ata2/host2/scsi_host/host2
3. Append "- -" to the file scan in as many host directories as there are host.
[root@linux-host1 ~] # echo "- -" > / sys/class/scsi_host/host0/scan [root@linux-host1 ~] # echo "- -" > / sys/class/scsi_host/host1/scan [root@linux-host1 ~] # echo "--> / sys/class/scsi_host/host2/scan
4. Check again whether the hard drive has been recognized
[root@linux-host1 ~] # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsda 8:0 0 20G 0 disk ├─ sda1 8:1 0 1G 0 part / boot └─ sda2 8:2 0 19G 0 part ├─ centos-root 253 sda2 0 017G 0 lvm / └─ centos-swap 253 Switzerland 1 0 2G 0 lvm [SWAP] sdb 8:16 0 20G 0 disk
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.