loopback devices was a bad ides, swith to partitioning. Fix some bugs