Changes

Jump to: navigation, search

SYA710 Lab01

36 bytes removed, 06:13, 9 September 2008
PART A (Container is a file):
with password 'seneca99'.</li>
<li>Open a console window and switch to superuser with this command:<br>
<brpre> su - <br> <br/pre>
</li>
<li>Create a regular file (filled with zeros) which will be the
container for our file system.
Use this command:<br>
  <brpre> dd if=/dev/zero of=fakedisk bs=1024 count=10000 <br> <br/pre>
</li>
<li>Use the losetup command to associate your file with /dev/loop0
like this:<br>
<brpre> losetup /dev/loop0 fakedisk <br> <br/pre
</li>
<li>Now create a file system in the container:<br>
<brpre> mkfs -t ext2 /dev/loop0 <br> <br/pre>
</li>
<li>Make a directory to be a mount point for the file system:<br>
<brpre mkdir /mnt1 <br> <br/pre>
</li>
<li>Mount the file system:<br>
<brpre> mount /dev/loop0 /mnt1 <br> <br/pre>
</li>
 
<li>Record the output of the following command:<br>
<brpre> df -Thi/dev/loop0<br> <br/pre>
</li>
<li>Unmount the file system<br>
<brpre> umount /mnt1 <br>  <br/pre>
</li>
<li>Delete the loop device<br>
<brpre> losetup -d /dev/loop0 <br> <br/pre>
</li>
<li>Delete the fakedisk fileusing the rm command.<br> 
</li>
<li>Answer the questions 1 to 4 in PART D, then do PART B.<br>
</li>
</ol>
 
=== PART B (Container is a partition): ===
Perform the following steps:
63
edits

Navigation menu