Change the method to detect device type
change the method detect device
update resizefs