fix the last 2 commits to work with devices larger than 2tb
fix the last 2 commits to work with devices larger than 2tb

scriptzteam/pzs-ng,scriptzteam/pzs-ng,bioboy/pzs-ng,scriptzteam/pzs-ng,bioboy/pzs-ng,bioboy/pzs-ng,scriptzteam/pzs-ng,scriptzteam/pzs-ng,bioboy/pzs-ng,bioboy/pzs-ng