Prev | Current Page 389 | Next

Christopher Negus

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


If you don??™t use -t ext3, an ext2 file system is created by default. Use other commands,
or options to this command, to create other file system types. For example, use
mkfs.vfat to create a VFAT file system, mkfs.msdos for DOS, or mkfs.reiserfs for a Reiser
file system type. The tune2fs command, described later in this section, can be used to change an
ext2 file system to an ext3 file system.
14. After the file system is created, you can have the partition permanently mounted by editing
/etc/fstab and adding the new partition. Here is an example of a line you might
add to that file:
/dev/hdb1 /abc ext3 defaults 1 1
TIP
174
Running the Show Part II
In this example, the partition (/dev/hdb1) is mounted on the /abc directory as an ext3
file system. The defaults keyword causes the partition to be mounted at boot time. The
numbers 1 1 cause the disk to be checked for errors. Add one line like this example for
each partition you created.
15. Create the mount point. For example, to mount the partition on /abc (as shown in the
previous step), type the following:
# mkdir /abc
16. Create your other mount points if you created multiple partitions. The next time you
boot Linux, the new partition(s) will be automatically mounted on the abc directory.


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