Problem

In this hands-on project, you view disk usage and check filesystems for errors. 1. Swit...

In this hands-on project, you view disk usage and check filesystems for errors.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type df and press Enter. What filesystems are displayed? Can you see the swap partition? Why?

3. At the command prompt, type dumpe2fs –h /dev/vg00/volume1 | more and press Enter. How many inodes are available to this filesystem? How many inodes are free to be used? Why?

4. At the command prompt, type fsck /dev/vg00/volume1 and press Enter. What error message do you receive and why? Type n at the prompt to quit the fsck command.

5. At the command prompt, type umount /volume1 and press Enter. Next, type the mount command and press Enter to verify that the filesystem was unmounted correctly.

6. At the command prompt, type fsck /dev/vg00/volume1 and press Enter. How long did the filesystem check take and why?

7. At the command prompt, type fsck –f /dev/vg00/volume1 and press Enter. How long did the filesystem check take and why?

8. At the command prompt, type fsck –Cf /dev/vg00/volume1 and press Enter. What does the –C option do when displaying the results to the terminal screen?

9. At the command prompt, type e2fsck –c /dev/vg00/volume1 and press Enter. What does this command do?

10. At the command prompt, type tune2fs –i 0 /dev/vg00/volume1 and press Enter to change the interval for forced checks so that they are avoided. Is this a good idea for the ext4 filesystem? Why?

11. At the command prompt, type mount /dev/vg00/volume1 and press Enter. Next type the mount command and press Enter to verify that the filesystem was mounted correctly.

12. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 5