In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Today, I will talk to you about how to add a hard disk in Linux. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
1. After adding the disk, it was not refreshed.
[root@node /] # fdisk-l
Disk / dev/sda: 17.2 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000aa84a
Device Boot Start End Blocks Id System
/ dev/sda1 * 1 2089 16775168 83 linux
/ dev/sda2 2089 2089 1024 82 Linux swap / Solaris
two。 View host bus number
Root@node /] # ls / sys/class/scsi_host/
Host0 host1 host2
3. Rescan the SCSI bus to add devices
[root@node /] # echo "- -" > / sys/class/scsi_host/host0/scan
[root@node /] # echo "- -" > / sys/class/scsi_host/host1/scan
[root@node /] # echo "- -" > / sys/class/scsi_host/host2/scan
4. Looking at the disk, you can see / dev/sdb: 53.7g this is the newly added disk.
[root@node /] # fdisk-l
Disk / dev/sda: 17.2 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000aa84a
Device Boot Start End Blocks Id System
/ dev/sda1 * 1 2089 16775168 83 Linux
/ dev/sda2 2089 2089 1024 82 Linux swap / Solaris
Disk / dev/sdb: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
After reading the above, do you have any further understanding of how to add a hard drive to Linux? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.