wiki:SaliUsage/Functions/find_all_disks

Version 6 (modified by bas, 14 years ago) (diff)

--

find_all_disks

This function returns all the disks that could be found. Finding the disks is done by examining the links in /dev/disk/by-id|by-path|label

#!/bin/sh

ALLDISK=$(find_all_disks)
for disk in $ALLDISK
do
   echo $disk
done