Bird
0
0

You want to convert an existing ext4 file system to XFS without data loss. What is the recommended approach?

hard📝 Application Q9 of 15
Linux CLI - Disk and Storage
You want to convert an existing ext4 file system to XFS without data loss. What is the recommended approach?
ARun a conversion tool that changes ext4 to XFS in place
BBackup data, reformat partition with XFS, then restore data
CRename the file system type in the superblock
DMount ext4 as XFS using mount options
Step-by-Step Solution
Solution:
  1. Step 1: Understand file system conversion

    Direct in-place conversion from ext4 to XFS is not supported.
  2. Step 2: Identify safe method

    Backing up data, reformatting, and restoring is the safe and recommended method.
  3. Final Answer:

    Backup data, reformat partition with XFS, then restore data -> Option B
  4. Quick Check:

    Safe ext4 to XFS = backup + reformat + restore [OK]
Quick Trick: No direct conversion; always backup before reformatting [OK]
Common Mistakes:
  • Expecting in-place conversion
  • Trying to rename FS type
  • Mounting ext4 as XFS

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes