What is the best way to format a USB stick such that it can be used with both Linux and Windows 10?
Also what is the best practice for formatting a USB stick? Is it best to format the USB stick only for Linux use rather than for both Linux and Windows use?
I am new to Linux and I am using Ubuntu 20.04.
Would appreciate exact steps to follow.
Currently, the best filesystem to share content between Windows and Linux is exFAT, specially on USB pendrives and SD cards. exFAT is, roughly speaking, a revision of FAT32 without the 4GB max file size limitation. Since kernel version 5.4, exFAT is a native filesystem for Linux and does not rely on FUSE anymore.
If not installed, you will have to install exFAT support.
Note: On systems with older kernels, use
exfat-utils
instead ofexfatprogs
.From here, you have two options. Use a graphical tool like gparted or the command line (which is more fun). Find below steps for the latter.
/dev/sd?
. In a terminal, run the below command which will show connected devices and partition mount points. In this example,/dev/sdb
is the device, with two partitions, the first of which is mounted.o
andenter
.n
,enter
and accept default options.t
,enter
,7
,enter
.w
andenter
.q
andenter
.I am also a kind of newbie into the Linux world, even though I have used Ubuntu for years now, so I think that I can give you a kind of straightforward answer.
There are some file systems such as ext4 that will perform better in a Linux environment, but because of how it is built, the Linux Virtual File System (also known as VFS) can virtualize almost any filesystem, such as NTFS. So if you want to share the usage of that USB stick I wouldn't worry anymore and I would format it into NTFS, since a Linux machine can deal with it with no problem, and you will be using a native file system when using windows.
Btw, if you are looking for the best way to do it, I would recommend you the Gnome Disk Utility (you can find it searching for Disk at the ubuntu program launcher), it's very newbie-friendly and easy to use.