大网数据广告活动
服务器运维问答

How to find a not formatted hard disk on Linux

· 52CE 我爱测

My server has two hard disks. One very limited of around 500 GB and another NOT FORMATTED of more than 1 TB. I need to find this second disk to format it (and eventually mount it to my Red Hat Linux 6 enterprise). The thing is th…

问题原文

原帖链接 · Abruzzo Forte e Gentile · CC BY-SA 3.0

My server has two hard disks. One very limited of around 500 GB and another NOT FORMATTED of more than 1 TB. I need to find this second disk to format it (and eventually mount it to my Red Hat Linux 6 enterprise).

The thing is that I cannot see this second hard disk. I tried with lshw --class disk, but I get the list of the CD ROM and the first hard disk.

How can I find where my disk is and format it?

社区高分解答

原帖链接 · Michael Martinez · CC BY-SA 3.0

All block devices that Linux knows about when it boots are given in /sys/block. If your device isn't there it means Linux did not register it when it booted. In this case, commands given in some of the other answers dealing with upper level filesystem or partition structures aren't relevant (/etc/fstab, fdisk, mount). If your device isn't in /sys/block, then you need to power down, make sure the device is attached and make sure the BIOS recognizes it. If your device is attached and the BIOS does not recognize it, then the device is not receiving power, malfunctioning, or its cable is bad.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2013-06-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。