Linux - Disk Management
Commands
Block
List volumes:
Display volume with UUID and fs type:
Display scsi devices:
Scan devices:
Delete scsi device:
Delete lun device:
Device Mapper
List DMs:
Display detail of DMs:
Display state of DMs:
FileSystem
Check FS parameters:
Change FS parameters:
Check FS:
fsck {options} {device}
# Ex:
# fsck /dev/sdb -> Check FS
# fsck -f /dev/sdb -> Force Check
# fsck -c /dev/sdb -> Check Bad Sectors
# fsck -y /dev/sdb -> Always Answer Yes (! Use with Caution)
Tips
Get directory size from a FS with excluding all child FS: