Книга: Fedora™ Unleashed, 2008 edition

Creating the Partition Table and Formatting the Disk

Creating the Partition Table and Formatting the Disk

After it is installed and recognized by the BIOS, a partition table needs to be created. Use fdisk (or the program of your choice) to create a single partition on the drive, remembering to write the changes to the MBR before you exit the program (refer to "Creating the Partition Table," earlier in this chapter).

Formatting the drive is next. Because we are creating a new ext3 file system, we use the j option, as:

# mke2fs -cj /dev/hdb1

Notice that we are checking the drive (using the -c option) for bad blocks as we format. Even though it adds considerable time to formatting the drive, an initial bad block check is always a good idea. The program identifies bad blocks and doesn't use them; bad blocks would only corrupt our data if we didn't mark the file system to ignore them.

Оглавление книги


Генерация: 1.253. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз