Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #create vfat filesystem file
- mkdosfs -C temp_file 1000000000
- #check file size
- ls -lh temp_file #fake size
- ls -sh #real Size
- #get real size in KB
- ls -s temp_file
- #As ROOT (Not SUDO)
- head -c [size_from_above]K temp_file > /dev/sdc1
- #umount and remount
- #label Drive
- sudo mlabel -i /dev/sdc1 ::"1TB DRIVE"
- #OR
- sudo dosfslabel /dev/sdc1 "1TB DRIVE"
- #filelight is a good visual of disk usage
- #df -h will show it was a TB
- #Gparted is not fooled
- #fdisk is not fooled
- #use fdisk and mkfs.vfat to recreate partition to fix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement