Add files via upload

This commit is contained in:
kneutron 2024-05-27 10:15:17 -06:00 committed by GitHub
parent e7e6f30f6e
commit f3eb1971c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,11 +15,18 @@ outf=/root/drivemap.txt
# Use 'sort -k 3' if $9 $10 $11
ls -lR /dev/disk |grep -w /sd[a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
>$outf
ls -lR /dev/disk |grep -w /vd[a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
>>$outf
echo '========' >> $outf
ls -lR /dev/disk |grep -w /sd[a-z][a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
>>$outf
ls -lR /dev/disk |grep -w /vd[a-z][a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
>>$outf
ls -lR /dev/disk |grep -w /nvme.n. |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
>>$outf
echo '=====' >>$outf
lsscsi -s >>$outf
@ -37,6 +44,7 @@ function hdps () {
hdps |sort -k 2 >>$outf
cp -v $outf /tmp/
ls -l $outf
# To search outfile: