late reply and you have probably lost interest in this project but...
you could use
local writeTo = {}
local ignoreDrives = {}
-- If the address is contained within a list of drive addresses to be ignored, return false
-- Otherwise return true. Used to filter out RAID arrays, local disks, or other floppies you do not wish to write to
function filter(addr)
return not ignoreDrives[addr]
end
-- Loop over all drives, and if they are not blacklisted add them to a list to write to
for _,addr in pairs(component.list("filesystem")) do
if filter(addr) then table.insert(writeTo, addr) end
e