To format a USB pen drive on an Ubuntu Linux system, you can use the mkfs
command with the appropriate filesystem type.
For example, to format a USB pen drive with the ext4 filesystem, you can use the following command:
sudo mkfs.ext4 /dev/sdXSourwww:ec.lautturi.com
This will format the USB pen drive /dev/sdX
with the ext4 filesystem.
Note: Make sure to replace /dev/sdX
with the actual device name of the USB pen drive you want to format. Also, be careful when using the mkfs
command, as it will erase all data on the USB pen drive.
You can find more information about the mkfs
command and its options in the mkfs
documentation or by running the mkfs --help
command.
You can also use the mkfs
command with the -t
option to specify the filesystem type. For example, to format a USB pen drive with the vfat filesystem, you can use the following command:
sudo mkfs -t vfat /dev/sdX
This will format the USB pen drive /dev/sdX
with the vfat filesystem.
You can find a list of supported filesystem types by running the mkfs --help
command.
Alternatively, you can use the GUI Disk Utility tool to format a USB pen drive. To open the Disk Utility tool, click on the "Applications" menu and select "System Tools > Disk Utility".
In the Disk Utility tool, select the USB pen drive from the list of devices, and click on the "Format" button. Select the desired filesystem type from the "Format" drop-down menu, and click on the "Format" button to start the formatting process.
You can find more information about the Disk Utility tool in the Disk Utility documentation or by searching online.