Username:
Password:
Linux Professional Institute: Level 2 Tutorials

Files & Filesystems / Maintaining a Linux Filesystem

Subtitles of the Movie

Exam objective 2.203.2 has a weight of 4, and verifies that candidates are able to maintain a Linux file system using system utilities. This includes maintaining standard file systems. You need to know about the tools used to manipulate EXT2 and EXT3 file systems and also RESERFS file systems. There are some file system tools you need to be aware of. You can check any disk for flaws by using the Bad Blocks command, but be careful. It's not entirely safe to run this program on a disk partition that has a file system with information you want to keep. To run it, you need to unmount the drive and use the name of the device node as the argument to the command. By default it will check the entire drive, but if you wish, you can specify which blocks you want checked. You can even tell it where you think some bad blocks are, and it won't check those. If you're going to use it's output to feed into another program to mark bad blocks, you need to be careful that you specify the right block size. The best way to run it is to use the C argument on FSC check and let it run it for you. That way, the correct block size is used and the bad blocks, if any, are marked as such on the disk so they won't be used for any file. Of course, you can always determine the block size, and a lot of other information about EXT2 and EXT3 drives with DumpE2FS, and you can use Tune2FS to adjust some of the settings of an EXT2 or EXT3 disk drive. You can set the number of mounts after which FSCK will automatically check the disk, and you can adjust the count of the number of mounts so far. You can set the time interval after which the data is checked. You can use it to add journaling to a file system, change the default mount options, and some other things, some of which you don't want to mess with. DebugFS is, in some ways, a similar program. It is an EXT2 and 3 file system debugger. It is an interactive program that can not only inspect details of the file system, but makes it possible to fix anything that's broken. You can look at and modify the detailed structure of files and directories. The RESERFS file system is another journaling file system and is the default used by several versions of Linux. It's version 3 of the file system that became the standard used by several Linux distributions. It's considered stable and complete. Development is proceeding as a separate project on version 4. It's a from-scratch development of a new file system. This file system not only has its own FSCK, it has its own debugger and tune programs. If you have the RESER file system, you should also have these utilities installed. Be careful when you use these programs, especially Bad Blocks. Read the MAN page first. If you've got some old floppy disks laying around, try scanning them for bad blocks. If the program runs and doesn't produce any output, the disk is okay. Try DumpE2FS with the H option. This will reduce the amount of output to something you can read, and learn how your disks are configured. Create an EXT2 file system on a floppy disk, and using DebugFS, add a directory to it. Then examine the Inode of that directory.

Tutorial Information

Course: Linux Professional Institute: Level 2
Author: Arthur Griffith
SKU: 33894
ISBN: 1-934743-79-8
Release Date: 2008-07-21
Duration: 7.5 hrs / 113 lessons
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 81,350 Video Tutorials (20,800 free)
  • Video Available as Flash or QuickTime
  • Over 782 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available