You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# To test this script when you have no SMR disks, configure and temporarily uncomment one of the the TEST arrays below with a valid CMR disk on your system.
114
+
# To test this script when you have no SMR drives, configure and temporarily uncomment one of the the TEST arrays below with a valid CMR drives on your system.
115
115
# TEST=("WDC WD" "30" "EFRX")
116
116
# TEST=("ST" "6000" "VN0041")
117
117
# Now uncomment the TEST lines below (there should bbe two of them), and run the script. Remeber to comment oall TEST lines again when you've finished.
118
118
119
-
# Quiet detection phase. If an SMR disk is detected flag f will be set.
119
+
# Quiet detection phase. If an SMR drive is detected flag f will be set.
120
120
f=0
121
121
122
-
# Detect Western Digital SMR disks
122
+
# Detect Western Digital SMR drives
123
123
forkin {01..10};do
124
124
DetectSMR WD"$k" q
125
125
done
126
126
127
-
# Detect Seagate SMR disks
127
+
# Detect Seagate SMR drives
128
128
forkin {01..31};do
129
129
DetectSMR ST"$k" q
130
130
done
131
131
132
-
# Detect Toshiba SMR disks
132
+
# Detect Toshiba SMR drives
133
133
forkin {01..6};do
134
134
DetectSMR TO"$k" q
135
135
done
136
136
137
137
# DetectSMR TEST q
138
138
139
-
# If the flag f is still unset, no SMR disk was detected. :)
139
+
# If the flag f is still unset, no SMR drive was detected. :)
140
140
if [[ "$f"== 0 ]];then
141
141
echo
142
-
echo -e "\e[1;32mNo known SMR disks detected.\e[0m"
142
+
echo -e "\e[1;32mNo known SMR drives detected.\e[0m"
143
143
echo
144
144
else
145
-
# otherwise, one or more SMR disks were detected so diplay all SMR disks in a table :(
145
+
# otherwise, one or more SMR drives were detected so diplay all SMR drives in a table :(
0 commit comments