Changes

Jump to: navigation, search

SYA710 Lab01

1,365 bytes added, 06:43, 9 September 2008
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...
== 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 password 'seneca99'.</li>
<li>Open a console window and switch to superuser with this command:<br>
<br>
su - <br>
<br>
</li>
<li>Create a regular file (filled with zeros) which will be the
container for our file system.
Use this command:<br>

<br>
dd if=/dev/zero of=fakedisk bs=1024 count=10000 <br>
<br>
</li>
<li>Use the losetup command to associate your file with /dev/loop0
like this:<br>
<br>
losetup /dev/loop0 fakedisk <br>
<br>

</li>
<li>Now create a file system in the container:<br>
<br>
mkfs -t ext2 /dev/loop0 <br>
<br>
</li>
<li>Make a directory to be a mount point for the file system:<br>
<br>

mkdir /mnt1 <br>
<br>
</li>
<li>Mount the file system:<br>
<br>
mount /dev/loop0 /mnt1 <br>
<br>
</li>

<li>Record the output of the following command:<br>
<br>
df -Thi
/dev/loop0<br>
<br>
</li>
<li>Unmount the file system<br>
<br>
umount /mnt1 <br>

<br>
</li>
<li>Delete the loop device<br>
<br>
losetup -d /dev/loop0 <br>
<br>
</li>
<li>Delete the fakedisk file.<br>

</li>
<li>Answer the questions 1 to 4 in PART D, then do PART B.<br>
</li>
</ol>
63
edits

Navigation menu