Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Guida di Installazione Pagina 89

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 88
Chapter 5. The ext3 File System 89
Tip
It is a good idea to write down which partitions (for example, /dev/hdb2) are meant for which file
systems (for example, /home/username) as you create each partition.
Next, you will need to specify what type of file system you intend to put on the disk because fdisk
creates partitions of type unknown by default.
To do this, type t followed by a partition number. Next enter the hex value for the file system type
you intend to install on the partition. For Linux swap partitions. the hex value is 82. For Linux ext2
or ext3 partitions, the hex value is 83. For other partition types, use the l command to see a list of file
system types and their hex values. Repeat this for each partition you created.
When you are finished making partitions, type w to save your changes and quit.
Warning
By typing w, you are permanently destroying any data that currently exists on the device. If you need
wish to preserve any data, type q to exit the program without altering the disk and back up your data.
5.2.2. Formating ext3 File Systems with mkfs
Once you have created partitions on the disk drive using a partitioning program such as fdisk, you
should use mkfs to create an ext3 file system on each partition.
To do this, log in as root and type:
/sbin/mkfs -t ext3 /dev/hdbX
In the above command, replace hdb with the drive letter and X with the partition number.
Warning
Using mkfs to format a disk partition will permanently destroy any data that currently exists on the
partition.
5.2.3. Assigning a Label with e2label
Once you have created and formated a partition, you should assign it a label using the e2label com-
mand. This allows you to add the partition to /etc/fstab using a label instead of using a device path,
thereby making the system more robust.
1
To add a label to a partition, type the following command
as root:
/sbin/e2label /dev/hdbX /mount/point
Where hdb is the drive letter, X is the partition number, and /mount/point is the mount point you
intend to use for the partition.
1. Adding a partition to /etc/fstab allows the partition to be mounted at boot time and simplifies use of the
mount command.
Vedere la pagina 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 281 282

Commenti su questo manuale

Nessun commento