Docsity

ULSA-Lab 6 The Filesystem_.docx, Summaries of Network Programming

Toggle sidebar
bg1
Lab 6: Access Control & Filesystems(40
points)
Overview
After two weeks of review we are now ready to continue with access control and
file systems. This lab will help reinforce the readings for this week and help
cement information learned to this point.
Part 1 Your Filesystems(15 points)
1) Log in as root on your Linux virtual machine.
2) Run this command
ls /dev/sd*
3) Q1) What are the partitions listed?
Sda, sda1, sda2, sda3
4) Run the command fdisk -l(that’s an L). Save a screen shot.
5) Q2) What does fdisk with the -l tell us?
The '-l' argument stands for (listing all partitions) is used with fdisk command
to view all available partitions on Linux.
6) Q3) What is fdisk used for?
pf2

Partial preview of the text

Download ULSA-Lab 6 The Filesystem_.docx and more Summaries Network Programming in PDF only on Docsity!

Lab 6: Access Control & Filesystems(

points)

Overview

After two weeks of review we are now ready to continue with access control and

file systems. This lab will help reinforce the readings for this week and help

cement information learned to this point.

Part 1 Your Filesystems(15 points)

  1. Log in as root on your Linux virtual machine.
  2. Run this command ls /dev/sd*
  3. Q1) What are the partitions listed? Sda, sda1, sda2, sda
  4. Run the command fdisk -l(that’s an L). Save a screen shot.
  5. Q2) What does fdisk with the -l tell us? The '-l' argument stands for (listing all partitions) is used with fdisk command to view all available partitions on Linux.
  6. Q3) What is fdisk used for?

fdisk also known as format disk is a dialog-driven command in Linux used for creating and manipulating disk partition table. It is used for the view, create, delete, change, resize, copy and move partitions on a hard drive using the dialog-driven interface.

7) Do not experiment with fdisk! The above steps are only to determine

what fdisk is.

Mount and Unmount. Using the mount/unmount command in a virtual machine requires steps unrelated to the actual act. Because of this, lets assume there is a mountable drive called sd4 that requires an ext3 file system type. Using the pages 122,123, and 768, list the steps necessary to get the drive mounted(15 points) Mounted step: 1: Sudo mkfs -t ext3 /dev/sd 2: Sudo mkdir /data 3: Sudo mount /dev/sd4 /data