Use LiveCD to enable existing Fedora13 to use Btrfs File System

Source: Internet
Author: User
Fedora13 introduced the Anaconda installer to support the next-generation Btrfs file system. However, this installation option is only available for installation on a DVD. I will briefly introduce how to use LiveCD to allow existing systems to use Btrfs partitions without affecting the stored data after installing LiveCD in other ways or upgrading it with PreUpgrade. In view of the fact that all the children's shoes that I want to make so much effort have some knowledge about the Linux system

The Anaconda installer is introduced in Fedora 13 to support the next-generation Btrfs file system. However, this installation option is only available for installation on a DVD. I will briefly introduce how to use LiveCD to allow existing systems to use Btrfs partitions without affecting the stored data after installing LiveCD in other ways or upgrading it with PreUpgrade.

In view of the fact that all the children's shoes that you want to make are familiar with the Linux system, we will only talk about the next process here. The tests are normal now.

Required tools:

Fedora 13 lvmcm or the corresponding LiveUSB.

If you have installed the Fedora 13 system on the hard disk, use the ext3 or ext4 file system.

Steps:

Install the btrfs-progs package on the Fedora 13 system that has been installed on the hard disk to provide necessary btrfs maintenance tools.

Restart your computer and boot from LiveCD or LiveUSB.

Btrfs-progs is also installed in the Live environment. Use the btrfs-convert tool to convert the partition on the hard disk to the btrfs file system.

Use blkid to obtain the new UUID Number of the partition and modify the UUID value in the fstab and grub. conf files.

Use touch. autorelabel on the system/partition on the hard disk. SELinux is required to re-mark the entire file system at the next restart.

Restart the system, boot from the hard disk, and wait for SELinux to be re-labeled.

If everything goes well, congratulations! You can start to experience the file system Btrfs of the Next Generation Linux platform.

The advantage of this method is that the system will retain the data on the hard disk as a sub-volume, which means that the data can be returned to the ext3/ext4 file system at any time without any data loss during the conversion process.

The method for restoring ext4 is similar to the above, but the-r recovery option is added when btrfs-convert is used in step 3. Note that all changes made when using the Btrfs file system will be lost!

If you are satisfied with the Btrfs file system, you can use btrfs subvolume delete to delete the backup sub-volumes and release the occupied space.

References

PS: if you are using Ubuntu, you can refer to this tutorial to experience Btrfs, but it is complicated: You need to patch grub2 and add the initramfs generation rules of the btrfs module.

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.