Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  8 of 908 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 381
Last update: 05-11-06
Issue:
How do I create a new ext3 file system if a disk was added to the system?
Resolution:
  1. Create the partition using the fdisk command. To start fdisk at a shell prompt (as root), type the command:

    fdisk/dev/hdb

    where /dev/hdb is the device name for the drive you want to configure. The Command (m for help): prompt is displayed. Type n then p, to create a new (n) primary (p) partition. You will then be asked to enter a partition number 1-4. You can only have a total of 4 primary partitions. If you need more than 4 partitions, then your 4th partition will become your extended partition and you can create up to 15 partitions that the system will recognize. You will then enter the size of the partition that you want to create. The easiest way to do this is to select the defaulted start cylinder, then issue a size based on MB. Example: +5000MB to create a 5 GB partition.

  2. Format the partition with the ext3 file system using mke2fs. Note that an ext3 file system is an ext2 filesystem with journaling (the -j option). See man mke2fs for more options. Type:

    /sbin/mke2fs -j /dev/hdb3

    where /dev/hdb3 is the partition you want to format.

    Note: If mke2fs does not recognize your partition, then you must reboot your system so that the new partition table is recognized.

  3. You can label the partition using e2label. For example, if you want to label the new partition /work, type e2label /dev/hdb3 /work.

  4. As root, create the mount point: mkdir /work

  5. As root, edit the /etc/fstab to include the new partition. The new line should similar to the following:

    LABEL=/work           /work               ext3      defaults    1 2 
  6. Reboot your system so that the new partition table is recognized.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   8  of  908  >>