SYA710 Lab01

From CDOT Wiki
Revision as of 05:43, 9 September 2008 by Selmys (talk | contribs) (New page: == SYA710 Lab #1 == === Focus: Working With File Systems === === PART A: Perform the following steps: === <ol> <li>Power on your PC and boot up Fedora 8 Test and login as 'joker' with pa...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SYA710 Lab #1

Focus: Working With File Systems

PART A: Perform the following steps:

  1. Power on your PC and boot up Fedora 8 Test and login as 'joker' with password 'seneca99'.
  2. Open a console window and switch to superuser with this command:

    su -

  3. Create a regular file (filled with zeros) which will be the container for our file system. Use this command:

    dd if=/dev/zero of=fakedisk bs=1024 count=10000

  4. Use the losetup command to associate your file with /dev/loop0 like this:

    losetup /dev/loop0 fakedisk

  5. Now create a file system in the container:

    mkfs -t ext2 /dev/loop0

  6. Make a directory to be a mount point for the file system:

    mkdir /mnt1

  7. Mount the file system:

    mount /dev/loop0 /mnt1

  8. Record the output of the following command:

    df -Thi /dev/loop0

  9. Unmount the file system

    umount /mnt1

  10. Delete the loop device

    losetup -d /dev/loop0

  11. Delete the fakedisk file.
  12. Answer the questions 1 to 4 in PART D, then do PART B.