Can you format ext2 using WSL?

Ben Edwards 0 Reputation points
2023-05-26T09:34:34.8066667+00:00

Also, is it as straight-forward as doing it on a full Linux system? Is mounting a USB drive and copying stuff to it straightforward?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Khaled Elsayed Mohamed 1,335 Reputation points
    2023-06-12T10:03:10.57+00:00

    Hi BE

    Can you try this:

    1. Open a WSL terminal.

    Check if the ext2 filesystem is installed.

    sudo apt install mkfs.ext2

    Format the drive using the mkfs.ext2 command.

    sudo mkfs.ext2 /dev/sdX
    

    Where /dev/sdX is the device name of the drive you want to format.

    Check the status of the drive using the df command.

    df -h
    

    The drive should now be formatted with the ext2 filesystem.

    Here are some additional tips:

    Make sure you have enough storage space on the drive. ext2 filesystems typically require at least 100MB of free space.

    If you are formatting a USB drive, make sure to eject it before you unplug it from your computer.

    If you are formatting a partition on your hard drive, make sure to back up any important data before you format it.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.