Wednesday, November 9, 2011

ubuntu tweaks with disk commands

Format to NTFS / FAT

sudo aptitude install ntfsprogs ntfs-3g gparted
Then use Gparted and run the check from there.

get free space on disks:
df -h

show size only for folders:
du -sh /home/*

ext3 file system, get back the space:
tune2fs -m 0 /dev/hda1

tune2fs -l /dev/sda1
dumpe2fs -h /dev/hd1

No comments:

Post a Comment