Chapter 4. File Systems

Table of Contents

Finding Mounted File Systems
Finding Unmounted Disks
Using File Systems
Making Use of Swap Space
Mounting Local Hard Disks
Mounting USB Thumb Drives
Making SMB (Windows Shares)
Mounting NFS Drives
Loopback Tricks
Mounting A File As A Filesystem
Mounting a ISO Image
Mounting a Initial RAM Disk
Mounting A Encrypted Filesystem

Though not required, the Network Security Toolkit has a full set of tools for accessing various file systems. If you are already familiar with the mount command you may want to skip this section (though I'd recommend skimming through Loopback Tricks).

If you use your Network Security Toolkit probe to mount and umount a lot file systems, its easy to lose track of what file systems you currently have mounted. The mount and df -k commands are very useful in determing what file systems are currently available (and where they map).

The following was invoked after I'd been playing around with the -rdir DIRECTORY option to the /usr/local/bin/setup_snort script.


From the above ouput, I see that I have a samba file system (//rice/public - a shared folder on a Windows machine) mounted to the directory /mnt/samba). In addition, I see that I have a file on this shared folder mounted as a loop back device at /mnt/loop (this reminds me that I was still experimenting with keeping a permanent copy of the snort logs using space on a shared folder from a Windows machine).

I can also tell that my thumb drive is 71% full (OK it's not technically my thumb drive - I borrowed my wife's MP3 player).