LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Disk Utilties that Give the Most Info. (https://www.linuxquestions.org/questions/linux-software-2/disk-utilties-that-give-the-most-info-4175603916/)

slurt 04-15-2017 06:55 PM

Disk Utilties that Give the Most Info.
 
Hi,

Is there a utility that can identify a hard disk configuration. Let's say I have broken RAID array, it's software RAID and I don't know anything about the desktop PC beforehand. Is there something I can run that can look at the "signature" of the disks or a disk and say "there are two disks for RAID 0 and it's corrupted"?

Or how would I get quickly understand I was dealing with two RAID disk or another config? Would fdisk -l give a hint. I'm new to this and just searching for utilities to try. thanks.

smallpond 04-15-2017 07:57 PM

To find out what RAID the kernel knows about:

Code:

cat /proc/mdstat
To look at the RAID info on an individual disk:

Code:

mdadm --examine /dev/sda

Ztcoracat 04-15-2017 08:00 PM

Hi:

There is a Disk Inspection and Monitoring tool that you can use for hard disks called S.M.A.R.T.
https://sourceforge.net/projects/smartmontools/

The command fdisk -l will show you all of the partitions on a machine.

https://raid.wiki.kernel.org/index.php/Linux_Raid

Test Disk is another tool you can use but it's for Recovery:-
http://www.cgsecurity.org/wiki/TestDisk

More Tools here:
http://www.makeuseof.com/tag/avoid-l...h-these-tools/

HTH

syg00 04-15-2017 09:03 PM

I like to use "lsblk -f" as a first attempt. Shows LVM, RAID, whatever - for more RAID detail, as per post #2.


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