IT 3100: Systems Design and Administration I
Due according to the class schedule.
In this assignment, you will configure the disk on a machine to have many partitions and create many different filesystems with various configurations. Finally, you will explore the data and file storing properties of the different file systems and configurations.
NOTE When choosing file sizes below in cfdisk, make sure you are using the MB or GB options, rather than just M or G
Use the virtual machine with a large disk
You should already have a virtual machine with a large disk from a previous assignment. It should meet the requirements listed here. If it doesn’t, then remove it and create the machine again.
This system should have an 8 gigabyte disk. During the installation, do a manual configuration of the disk space. Allocate a primary partition of 6GB for the / filesystem and a primary 512MB partition for the swap area. Leave the rest of the disk space to be configured after the installation has been completed.
Before you begin, check the following
Check to see if your system installed in GPT mode or MSDOS mode. Primary, Extended, and Logical Partitions are only available in msdos mode. To check this, execute the following command
sudo fdisk -l /dev/sda | grep label. If the Disklabel type is NOT dos, you will need to perform the following commands:
r, followed by
g, followed by a
w. Save any changes. Exit from gdisk.
Re-execute the above
fdisk command to see if the disklabel changed.
You now need to update grub or your system will not boot. So do the following:
grub-install --recheck /dev/sda
Reboot the machine. If it doesn’t come back up, see your instructor.
Before moving on, after the machine comes back up, delete the /dev/sda1 partition using cfdisk. Write the changes, exit, and use
partprobe. Now, you can use the free space to create the partitions outlined below.
After the system has been installed, create the following additional partitions:
- 1 X 200MB primary partition
- 1 X 1000MB extended partition
- 10 X 50MB logical partitions
Create file systems
Create file systems on the 10 50MB partitions
as described below. All ext filesystems should
be configured with the ‘type’ of
83 in cfdisk. All
VFAT should be configured with the ‘type’ of
NTFS should be configured with the ‘type’ of
- EXT4 file system with block size 1024 and no reserved blocks.
- EXT4 file system with block size 1024, no reserved blocks and 1024 bytes per inode.
- EXT4 file system with block size 4096 and no reserved blocks.
- EXT4 file system with block size 4096, no reserved blocks and 128 inodes.
- VFAT file system with FAT size of 32.
- VFAT file system with FAT size of 32 and logical sector size of 512.
- VFAT file system with FAT size of 16 and logical sector size of 4096.
- NTFS file system with default configuration.
- NTFS file system with cluster size of 512.
- NTFS file system with cluster size of 65536.
Mount file systems
Create a directory named
/space. Inside this directory,
create 10 directories to mount the directories listed above.
These 10 directories will be the mount points for the 10 file systems created in the previous section.
Put entries in
/etc/fstab for these all of these file systems
to be mounted at boot time. Manually test the mounting and
umounting of the file systems. Then reboot the machine to verify
Exercise the file systems
Be sure that your file systems are all correctly mounted before proceeding.
Be sure NOT to run these tests in your root file system.
diskhogprogram, find the largest file that can be created in each of the 10 file systems.
inodehogprogram, find the largest number of files that can be created in each of the 10 file systems.
Understanding file systems
Make a chart of the largest file size for each of the 10 file systems.
Make a chart of the largest number of small files for each of the 10 file systems.
Make a chart of the ‘1K-blocks’ field in the output of
dffor each of the 10 file systems.
Make a chart of the ‘Available’ field in the output of
diskhogtest for each of the 10 file systems.
Make a chart of the ‘Available’ field in the output of
inodehogtest for each of the 10 file systems.
The other partition
Create an ext4 file system on the other 200MB
primary partition created. Make this file system
the storage location for all of the users’ data,
This work must be completed such that no user data is
lost in the process, and such that the
/home file system
will be mounted automatically at boot time.
Be careful not to lose the contents of your current files.
Submission File Format
This assignment has an additional submission requirement of submitting the 5 charts described above in PDF format.
The submission file is a UNIX text file, and must have this format, exactly!
The file must be named
host: ip_address_of_your_file_system_machine devices: device_name1, device_name2, ..., device_name10 homedevice: device_name mountpoints: mount_point1, mount_point2, ..., mount_point10
For example, my file would look like this:
host: 220.127.116.11 devices: /dev/sda5, /dev/sda6, /dev/sda7, /dev/sda8, /dev/sda9, /dev/sda10, /dev/sda11, /dev/sda12, /dev/sda13, /dev/sda14 homedevice: /dev/sda3 mountpoints: /space/e1, /space/e2, /space/e3, /space/e4, /space/v1, /space/v2, /space/v3, /space/n1, /space/n2, /space/n3
Submission and Passoff
Use the Submisions link at the top of the page to submit your text file to the
Also submit your PDF file(s) with your charts.
Check back at the submissions site for feedback on the completeness of your work. Fix anything that’s wrong. Repeat.
Last Updated 08/07/2020