Obtain the size of raw devices correctly.