Why my bash script isn't partitioning the first two disks?
by maheshn0205 from LinuxQuestions.org on (#55TFX)
Hello All,
I'm in a weird situation, I developed a bash script which automatically does the disk partitions based the capacity. I have 62 drivers mix of TB and GB. When I ran the script, it is skipping the first two drivers (/dev/sda and /dev/sdb), rest are getting partitioned. Please see the link for the for the code or file which is attached. Your help is much appreciated.
https://pastebin.com/index/hFrAX6dn
Thank you All.


I'm in a weird situation, I developed a bash script which automatically does the disk partitions based the capacity. I have 62 drivers mix of TB and GB. When I ran the script, it is skipping the first two drivers (/dev/sda and /dev/sdb), rest are getting partitioned. Please see the link for the for the code or file which is attached. Your help is much appreciated.
https://pastebin.com/index/hFrAX6dn
Thank you All.