maheshn0205 |
07-20-2020 02:16 PM |
Quote:
Originally Posted by berndbausch
(Post 6147375)
fdisk output is hard to parse, leading to an overly complex program. Instead of fdisk, use /sys/block to generate a list of disks. Instead of computing disk sizes, use percentages in the parted commands.
EDIT: I just noticed you do the latter now. Good! But you don't need the capacity anymore and can you remove the case.
|
Hello Berndbausch. Thank you so much for reply. If you see my previous script, I commented out the #disk_size, here I'm partitioning the drives using disk_capacity such as TiB, GiB. Even though when I generate a list of disks from /sys/blocks who do I partition based on disk_capacity or the size? Sorry, if I'm asking too many questions.
|