Obtain the size of raw devices correctly.
Remove debugging output.
Merge pull request #319 from msuhanov/master

Fix #303. Thanks.