Este conteúdo não está disponível no idioma selecionado.

6.4. Reverting to an ext2 File System


Because ext3 is relatively new, some disk utilities do not yet support it. For example, you may need to shrink a partition with resize2fs, which does not yet support ext3. In this situation, it may be necessary to temporarily revert a file system to ext2.
To revert a partition, you must first unmount the partition by logging in as root and typing,
umount /dev/mapper/VolGroup00-LogVol02umount /dev/mapper/VolGroup00-LogVol02
Copy to Clipboard Toggle word wrap
Next, change the file system type to ext2 by typing the following command as root:
 /sbin/tune2fs -O ^has_journal /dev/mapper/VolGroup00-LogVol02 /sbin/tune2fs -O ^has_journal /dev/mapper/VolGroup00-LogVol02
Copy to Clipboard Toggle word wrap
Check the partition for errors by typing the following command as root:
/sbin/e2fsck -y /dev/mapper/VolGroup00-LogVol02/sbin/e2fsck -y /dev/mapper/VolGroup00-LogVol02
Copy to Clipboard Toggle word wrap
Then mount the partition again as ext2 file system by typing:
mount -t ext2 /dev/mapper/VolGroup00-LogVol02/mount/pointmount -t ext2 /dev/mapper/VolGroup00-LogVol02/mount/pointmount -t ext2 /dev/mapper/VolGroup00-LogVol02/mount/point
Copy to Clipboard Toggle word wrap
In the above command, replace /mount/point with the mount point of the partition.
Next, remove the .journal file at the root level of the partition by changing to the directory where it is mounted and typing:
rm -f .journal
Copy to Clipboard Toggle word wrap
You now have an ext2 partition.
If you want to permanently change the partition to ext2, remember to update the /etc/fstab file.

Note

You can increase the size of an ext3 file system using ext2online. ext2online allows you to increase the size of an ext3 file system once it is mounted (online) and on a resizable logical volume. The root file system is set up by default on LVM2 logical volumes during installation.
Note that ext2online will only work on ext3 file systems. For more information, refer to man ext2online.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat