Prev | Current Page 390 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


After you have created the file systems on your partitions, a nice tool for adjusting those file systems
is the tune2fs command. You can use it to change volume labels, how often the file system
is checked, and error behavior. You can also use it to change an ext2 file system to an ext3 file system
so the file system can use journaling. For example:
# tune2fs -j /dev/hdb1
tune2fs 1.39 (29-May-2008)
Creating journal inode: done
This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
By adding the -j option to tune2fs, you can either change the journal size or attach the file system
to an external journal block device (essentially turning a nonjournaling ext2 file system into a
journaling ext3 file system). After you use tune2fs to change your file system type, you probably
need to correct your /etc/fstab file to include the file type change (from ext2 to ext3).
Checking System Space
Running out of disk space on your computer is not a happy situation. You can use tools that come
with Linux to keep track of how much disk space has been used on your computer, and you can
keep an eye on users who consume a lot of disk space.
Displaying System Space with df
You can display the space available in your file systems using the df command.


Pages:
378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402