Upgrade Linux File System from ext3 to ext4

Source: Internet
Author: User
Article Title: Upgrade Linux File System from ext3 to ext4. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Although ext4 has been released for some time, because some bugs have not been widely applied to the server production environment, ext4 is mature enough for desktop users. The latest RHEL 5.4 File System released last year is still ext3 by default. Recently, the Linux kernel developer and the ext4 File System maintainer Ted Ts o jumped to Google and continued to work on ext4 development and Linux kernel at Google. In a mailing list, Google Engineer Michael Rubin also mentioned some internal Google use of ext4. According to Google's internal tests, the performance of ext4 is very similar to that of high-performance xfs file systems. The main reason why Google chooses ext4 instead of xfs is that their existing system is ext2, in this way, it is easier to upgrade to ext4. Another interesting thing is that most people trust dbench and choose dbench as the file system testing tool.

How can I upgrade from ext3 to ext4? First, make sure that Linux kernel supports ext4. Second, note that ext3 is recommended for the/boot partition, because grub on the system may not support ext4, the special version of grub of commit is required to support ext4. use the following command to convert:

# Cd/; umount/dev/sda1

# Tune2fs-O extents, uninit_bg, dir_index/dev/sda1

Remember, fsck must be used for scanning after conversion to ext4; otherwise, the file system cannot be mounted. The-p parameter indicates "Automatic Repair:

# Fsck-pf/dev/sda1

Mount the ext4 File System:

# Mount-t ext4/dev/sda1/path//

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.