Move Error function to util.
Device class
Add filesystem part mapping.