Home‎ > ‎CIS 191‎ > ‎

Lab 5: Partitioning Disks

Before you can do this lab you will need to add disks to your VM. Instructions on how to do that can be found on the page Adding Disks to your VMIn this lab you will follow the instructions on the page Disk Partitioning

  1. Install the btrfs-tools package. You'll need it to be able to format a btrfs filesystem:
            sudo apt-get install btrfs-tools
  1. Create a GPT disk label on /dev/sdb
    1. Make five 2GB partitions on /dev/sdb with types
      1. ext2
      2. ext3
      3. ext4
      4. btrfs
      5. msdos
  2. Create a MSDOS disk label on /dev/sdc
    1. Make five 2GB partitions on /dev/sdc with any type
      1. ext2
      2. ext3
      3. ext4
      4. btrfs
      5. linux-swap
  3. Format and mount all of the partitions you created (except for the swap partitions)
When you have done the above answer the following questions:
  1. What are the partition numbers that were created on both disks? 
  2. Why are they different? 
Also, print the partition tables into text files and submit them with your lab:

$ sudo parted /dev/sdb print free > partitions-sdb.txt
$ sudo parted /dev/sdc print free > partitions-sdc.txt
$ mount > mounts.txt

Comments