[Ubuntu] The system U disk becomes an ordinary U disk

If you don't have Disk Utility available on your Ubuntu system, you can try using the command line tools to format your system USB drive. Follow the steps below:

  1. Open Terminal: On the Ubuntu desktop, press Ctrl + Alt + Tthe shortcut key, or search for and open "Terminal" in the applications menu.

  2. View available devices: In Terminal, run the following command to see a list of devices connected to your computer:

    lsblk

    This will display information for all disks and devices, including device names and mount points.

  3. Unmount the U disk: If the system U disk has been mounted as a file system, you need to unmount it first for formatting. Run the following command to unmount the USB drive:

    sudo umount /dev/sdX

    Replace /dev/sdXwith the device name of the system USB drive. For example, if the system USB drive is recognized as /dev/sdb, run sudo umount /dev/sdb.

     

  4. Format the USB drive: In the terminal, run the following command to format the system USB drive:

    sudo mkfs -t 文件系统类型 /dev/sdX

    Replace 文件系统类型with the type of file system you wish to use, such as FAT32or NTFS. Replace /dev/sdXwith the device name of the system USB drive.

    For example, to format the system USB flash drive as a FAT32 file system, run sudo mkfs -t vfat /dev/sdb.

  5. Finished: When the formatting process is complete, your system USB drive will become a normal USB drive to which you can copy files and data.

Note that formatting a USB drive will delete all data on it, so make sure you have backed up important files before formatting. At the same time, please make sure to select the correct device for formatting to avoid accidental deletion of data in other devices.

Guess you like

Origin blog.csdn.net/Holenxr/article/details/131587005