Ogandos
asked on
Automatically take the output of my non-partitioned disks.
Hello Experts,
How can I automatically take the output of my non partitioned disks? (it will be part of a script).
Let's say that my system is currently with four installed disks: /sda /sdb /sdc /sdd, where only /sda is used. How can I take a command that identifies that b, c, and d are not partitioned, and give me an output as /sdb /sdb /sdc so that I can pipe it to another command.
How can I automatically take the output of my non partitioned disks? (it will be part of a script).
Let's say that my system is currently with four installed disks: /sda /sdb /sdc /sdd, where only /sda is used. How can I take a command that identifies that b, c, and d are not partitioned, and give me an output as /sdb /sdb /sdc so that I can pipe it to another command.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hey thanks,
I know these options, but none of them can be easily put in a script for detecting which ones are my unpartitioned disks.
I know these options, but none of them can be easily put in a script for detecting which ones are my unpartitioned disks.
I think I could cruft up a script that started cat /proc/partitions. But to be sure you would find it useful, could you please post the output from cat /proc/partitions on your system?
And indicate what exactly you would like the script to output (device per line, CSV, ...)
And indicate what exactly you would like the script to output (device per line, CSV, ...)
Open in new window
Also this, to show any RAID configuration...
Open in new window