mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-23 21:20:42 +08:00
translated
This commit is contained in:
parent
ec53e4120f
commit
aa6fb8bece
@ -1,126 +0,0 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (How to Format a USB Disk as exFAT on Linux [Graphically and Command Line])
|
||||
[#]: via: (https://itsfoss.com/format-exfat-linux/)
|
||||
[#]: author: (Dimitrios Savvopoulos https://itsfoss.com/author/dimitrios/)
|
||||
|
||||
How to Format a USB Disk as exFAT on Linux [Graphically and Command Line]
|
||||
======
|
||||
|
||||
_**Brief: This tutorial teaches you how to format a USB disk in exFAT format on Linux systems. Both GUI and command line methods have been discussed.**_
|
||||
|
||||
For a long time [FAT][1] has been the default choice of filesystem for formatting disks. It is compatible with pretty much all the major operating systems.
|
||||
|
||||
The one major problem with FAT filesystem is that you cannot transfer a file larger than 4 GB. This means even if your USB disk has 32 GB of free space, if you try to transfer a ISO image or some other file greater than 4 GB in size, the transfer will fail.
|
||||
|
||||
This creates a problem in situation like when you are [creating a bootable USB of Windows in Linux][2]. You cannot use [NTFS][3] and FAT filesystem has that 4 GB size restrictions.
|
||||
|
||||
To overcome the limitations of FAT filesystem, Microsoft came up with [exFAT filesystem][4]. And in this tutorial, I’ll show you how to format a USB disk in exFAT filesystem.
|
||||
|
||||
* [Format disk as exFAT using graphical tool][5]
|
||||
* [Format disk as exFAT using command line][6]
|
||||
|
||||
|
||||
|
||||
P**rerequisite**
|
||||
|
||||
Starting [Linux kernel 5.4][7], exFAT filesystem support is enabled in Linux kernel itself. [Check which Linux kernel version you are running][8]. If it is kernel 5.4 or higher, you should be fine.
|
||||
|
||||
Otherwise, you’ll have to [enable exFAT support][9] explicitly. In Ubuntu-based distributions, you can use these packages for this purpose:
|
||||
|
||||
**sudo apt install exfat-fuse exfat-utils**
|
||||
|
||||
### Method 1: Format disk as exFAT using GNOME Disks tool
|
||||
|
||||
![][10]
|
||||
|
||||
Formatting a drive using [GNOME Disks][11] is a straightforward job. It comes preinstalled in a number of Linux distributions.
|
||||
|
||||
Plug in your external USB disk. Now, look for Disks in menu and open the GNOME Disks application. As a first step choose the drive that you want to format and follow the steps with me.
|
||||
|
||||
_**Warning: Pay attention to the disk you are selecting to format. Don’t format your main disk accidentally.**_
|
||||
|
||||
![][12]
|
||||
|
||||
The commonly used file systems like Ext4, NTFS, FAT will appear first. To use exFAT, choose “**Other**” and then click on “**Next**“.
|
||||
|
||||
![][13]
|
||||
|
||||
Final step: choose exFAT file system on this screen and then click **Create**. Job done!
|
||||
|
||||
![][14]
|
||||
|
||||
See how easy it was to create a exFAT disk in Linux graphically? Now, let me show you the terminal method as well.
|
||||
|
||||
### Method 2: Format disk as exFAT in Linux command line (for advanced users)
|
||||
|
||||
[fdisk][15] is a dialogue-driven command-line utility that creates and manipulates partition tables and partitions on a hard disk. In fact, it is considered one of the [best partitioning tools for Linux][16].
|
||||
|
||||
Plug in your external hard disk then type the following command in the terminal:
|
||||
|
||||
```
|
||||
sudo fdisk -l
|
||||
```
|
||||
|
||||
![][17]
|
||||
|
||||
This will list down all the hard disks and partitions in your computer. Identify the partition that you want to format in your external hard disk. Size of the disks should give you a hint. For me, the USB disk was labelled as /dev/sdb1.
|
||||
|
||||
Once you have identified your USB disk, format it as exfat using the command below. Replace /dev/sdXn with your disk’s device ID. LABEL is basically the name you want to give to your disk like Data, MyUSB etc.
|
||||
|
||||
```
|
||||
sudo mkfs.exfat -n LABEL /dev/sdXn
|
||||
```
|
||||
|
||||
![][18]
|
||||
|
||||
Optionally, run fsck check to make sure the formatting has been done properly.
|
||||
|
||||
```
|
||||
sudo fsck.exfat /dev/sdXn
|
||||
```
|
||||
|
||||
That’s it. Enjoy the exFAT disk.
|
||||
|
||||
### Did you succeed to create exFAT disk?
|
||||
|
||||
I hope you find this tutorial simple enough, and a step forward to build a solid partitioning knowledge foundation.
|
||||
|
||||
Sometimes easy and simple tips and tricks will make you a better Linux in the long term. Our frequent readers know that first hand but if you discovered It’s FOSS recently, you may take the opportunity to explore our handy tutorials.
|
||||
|
||||
Don’t forget to subscribe and let me know your questions and suggestions in the comments below.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/format-exfat-linux/
|
||||
|
||||
作者:[Dimitrios Savvopoulos][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/dimitrios/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://en.wikipedia.org/wiki/File_Allocation_Table
|
||||
[2]: https://itsfoss.com/bootable-windows-usb-linux/
|
||||
[3]: https://en.wikipedia.org/wiki/NTFS
|
||||
[4]: https://en.wikipedia.org/wiki/ExFAT
|
||||
[5]: tmp.YPwoWNgq9W#graphical-method
|
||||
[6]: tmp.YPwoWNgq9W#command-line
|
||||
[7]: https://itsfoss.com/linux-kernel-5-4/
|
||||
[8]: https://itsfoss.com/find-which-kernel-version-is-running-in-ubuntu/
|
||||
[9]: https://itsfoss.com/mount-exfat/
|
||||
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/format-exfat-linux.jpg?ssl=1
|
||||
[11]: https://wiki.gnome.org/Apps/Disks
|
||||
[12]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/05/1.-gnome-disks-2.png?ssl=1
|
||||
[13]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/2.-gnome-disks.jpg?ssl=1
|
||||
[14]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/3.-gnome-disks.jpg?ssl=1
|
||||
[15]: https://www.tldp.org/HOWTO/Partition/fdisk_partitioning.html
|
||||
[16]: https://itsfoss.com/partition-managers-linux/
|
||||
[17]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/05/sudo-fdisk-l-1.jpg?ssl=1
|
||||
[18]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/05/sdXn.jpg?ssl=1
|
@ -0,0 +1,127 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (How to Format a USB Disk as exFAT on Linux [Graphically and Command Line])
|
||||
[#]: via: (https://itsfoss.com/format-exfat-linux/)
|
||||
[#]: author: (Dimitrios Savvopoulos https://itsfoss.com/author/dimitrios/)
|
||||
|
||||
如何在 Linux 上将 USB 盘格式化为 exFAT (图形和命令行)
|
||||
======
|
||||
|
||||
_**简介:本教程教你如何在 Linux 系统上以 exFAT 格式格式化 USB 盘。同时包括 GUI 和命令行方法。**_
|
||||
|
||||
长期以来,[FAT][1]是用于格式化磁盘文件系统的默认选择。它与几乎所有主要操作系统兼容。
|
||||
|
||||
FAT 文件系统的一个主要问题是你不能传输大于 4GB 的文件。这意味着即使你的 USB 盘有 32GB 的可用空间,如果你尝试传输 ISO 镜像或其他大于 4GB 的文件,传输也会失败。
|
||||
|
||||
这会[在 Linux 中创建 Windows 的可启动 USB 盘][2]的情况下造成问题。你不能使用 [NTFS][3],并且 FAT 文件系统有 4GB 的大小限制。
|
||||
|
||||
为了克服 FAT 文件系统的限制,Microsoft 推出了 [exFAT 文件系统][4]。在本教程中,我将向你展示如何使用 exFAT 文件系统中格式化 USB 盘。
|
||||
|
||||
|
||||
* [使用图形工具将磁盘格式化为 exFAT][5]
|
||||
* [使用命令行将磁盘格式化为 exFAT][6]
|
||||
|
||||
|
||||
|
||||
**先决条件**
|
||||
|
||||
从 [Linux kernel 5.4][7] 开始,Linux 内核本身中启用了 exFAT 文件系统支持。[检查正在运行的 Linux 内核版本][8]。如果它是内核 5.4 或更高版本,那么应该没问题。
|
||||
|
||||
不然,你必须[启用 exFAT 支持][9]。在基于 Ubuntu 的发行版中,你可以安装以下软件包:
|
||||
|
||||
**sudo apt install exfat-fuse exfat-utils**
|
||||
|
||||
### 方法 1:使用 GNOME 磁盘工具将磁盘格式化为 exFAT
|
||||
|
||||
![][10]
|
||||
|
||||
使用 [GNOME 磁盘][11]格式化驱动器是一项简单的工作。它预装在许多 Linux 发行版中。
|
||||
|
||||
插入外部 USB 盘。在菜单中查找 “Disk”,然后打开 “GNOME Disks” 应用。第一步,选择要格式化的驱动器,然后按照我的步骤操作。
|
||||
|
||||
_**警告:请注意你要选择格式化的磁盘。请勿意外格式化主磁盘。**_
|
||||
|
||||
![][12]
|
||||
|
||||
诸如 Ext4、NTFS、FAT 之类的常用文件系统将首先出现。要使用 exFAT,请选择 “**Other**”,然后单击 “**Next**”。
|
||||
|
||||
![][13]
|
||||
|
||||
最后一步:在此页面上选择 exFAT 文件系统,然后单击 “Create”。完成了!
|
||||
|
||||
![][14]
|
||||
|
||||
看到在 Linux 中以图形方式创建 exFAT 磁盘有多么容易了吧?现在,让我也向你展示终端方法。
|
||||
|
||||
### 方法 2:在 Linux 命令行中将磁盘格式化为 exFAT(适用于高级用户)
|
||||
|
||||
[fdisk][15] 是一个交互式命令行程序,它可在硬盘上创建和操作分区表和分区。实际上,它被认为是 [Linux 最佳分区工具][16]之一。
|
||||
|
||||
插入外部硬盘,然后在终端中输入以下命令:
|
||||
|
||||
```
|
||||
sudo fdisk -l
|
||||
```
|
||||
|
||||
![][17]
|
||||
|
||||
这将列出计算机中的所有硬盘和分区。识别出要在外部硬盘上格式化的分区。应该会提示磁盘大小。对我而言,USB 盘被标记为 /dev/sdb1。
|
||||
|
||||
识别出 USB 盘后,请使用以下命令将它格式化为 exfat。将 /dev/sdXn 替换为你的磁盘 ID。LABEL 是你要为磁盘命名的名称,例如 Data、MyUSB 等。
|
||||
|
||||
```
|
||||
sudo mkfs.exfat -n LABEL /dev/sdXn
|
||||
```
|
||||
|
||||
![][18]
|
||||
|
||||
可选地,运行 fsck check 以确保格式化正确。
|
||||
|
||||
```
|
||||
sudo fsck.exfat /dev/sdXn
|
||||
```
|
||||
|
||||
就是这样。享受 exFAT 盘吧。
|
||||
|
||||
### 你是否成功创建了exFAT 盘?
|
||||
|
||||
我希望你觉得本教程足够简单,并建立坚实的分区知识基础的第一步。
|
||||
|
||||
从长远来看,有时简单易用的技巧将让你有一个更好的 Linux。我们的常客会第一时间知道这些,但如果你最近才发现 It’s FOSS,你可以借此机会了解我们方便的教程。
|
||||
|
||||
别忘了订阅,并在下面的评论中让我知道你的问题和建议。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/format-exfat-linux/
|
||||
|
||||
作者:[Dimitrios Savvopoulos][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/dimitrios/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://en.wikipedia.org/wiki/File_Allocation_Table
|
||||
[2]: https://itsfoss.com/bootable-windows-usb-linux/
|
||||
[3]: https://en.wikipedia.org/wiki/NTFS
|
||||
[4]: https://en.wikipedia.org/wiki/ExFAT
|
||||
[5]: tmp.YPwoWNgq9W#graphical-method
|
||||
[6]: tmp.YPwoWNgq9W#command-line
|
||||
[7]: https://itsfoss.com/linux-kernel-5-4/
|
||||
[8]: https://itsfoss.com/find-which-kernel-version-is-running-in-ubuntu/
|
||||
[9]: https://itsfoss.com/mount-exfat/
|
||||
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/format-exfat-linux.jpg?ssl=1
|
||||
[11]: https://wiki.gnome.org/Apps/Disks
|
||||
[12]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/05/1.-gnome-disks-2.png?ssl=1
|
||||
[13]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/2.-gnome-disks.jpg?ssl=1
|
||||
[14]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/3.-gnome-disks.jpg?ssl=1
|
||||
[15]: https://www.tldp.org/HOWTO/Partition/fdisk_partitioning.html
|
||||
[16]: https://itsfoss.com/partition-managers-linux/
|
||||
[17]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/05/sudo-fdisk-l-1.jpg?ssl=1
|
||||
[18]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/05/sdXn.jpg?ssl=1
|
Loading…
Reference in New Issue
Block a user