Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://itsfoss.com/format-exfat-linux/
- https://linuxhandbook.com/fsck-command/?ref=itsfoss.com
- ==================================
- Prerequisites
- Starting Linux kernel 5.4, exFAT filesystem support is enabled in the Linux kernel itself. Check which Linux kernel version you are running. If it is kernel 5.4 or higher, you should be fine (mostly).
- Otherwise, you can enable exFAT support explicitly.
- In Ubuntu 20.04 and lower versions, you can use the following command:
- sudo apt install exfat-fuse exfat-utils
- For Ubuntu 22.04 and higher, you should use this command instead:
- sudo apt install exfat-fuse exfatprogs
- Format disk as exFAT in Linux command line (for advanced users)
- fdisk 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.
- Plug in your external hard disk then type the following command in the terminal:
- sudo fdisk -l
- 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
- Optionally, run fsck check to make sure the formatting has been done properly.
- sudo fsck.exfat /dev/sdXn
Advertisement
Add Comment
Please, Sign In to add comment