Filesystem and Storage Device Management
109
Cluster size 32 KB
Volume size 7648 MB
Used space 1265 MB
Available space 6383 MB
Totally 20 directories and 111 files.
File system checking finished. No errors found.
Summary
Understanding how Linux designates and manages
its devices is crucial
for any Linux user and hacker. Hackers will need to know what devices
are attached to a system and how much space is available. Because storage
devices often develop errors, we can check and
repair those errors with
fsck
. The
dd
command is capable of making a physical copy of a device,
including any deleted files.
E XERCISES
Before you move on to Chapter 11, try out the skills you learned from this chapter
by completing the following exercises:
1. Use the mount and umount commands to mount and unmount your flash
drive.
2. Check the amount of disk space free on your primary hard drive.
3. Check for errors on your flash drive with fsck.
4. Use the dd command to copy the entire contents
of one flash drive to
another, including deleted files.
5. Use the lsblk command to determine basic characteristics of your block
devices.