首页 > 系统相关 >Ubuntu: 格式化USB How to format a USB flash drive?

Ubuntu: 格式化USB How to format a USB flash drive?

时间:2023-05-12 22:32:48浏览次数:50  
标签:USB format flash drive dev volume mkfs name


1 - by Disk utility // simplest way

 

you can use Disks it's installed by default and easy to use.

 

  • 1st: Click on the Dash icon
  • 2nd: Search for "Disks"
  • 3rd: Click on Disks

 

The application will shows up:

 

  • 1st: Choose the USB flash drive
  • 2nd: Click on the "gear" icon and choose "Format"

 

This little window will appear, just choose the option you want and click on Format...:

 

2- by Gparted tool 

 

// you can install it from Ubuntu software center or you can install is by typin



sudo apt-get install gparted



 

3- by using Terminal 

 

go to super mode by typing "su" followed by super mode password

 



fdisk -l



that will show all the volume in your pc or you can also use the

 



df



to see the usb flash drive suppose it may be /deb/sdb1

 



umount /dev/sdb1



that un mount the drive

 



mkfs.vfat /dev/sdb1



or



mkdosfs -F 32 -I /dev/sdxx



to format drive into fat32 format

 


参考:http://www.unixmen.com/how-to-format-usb-drive-in-the-terminal/

 

Understanding the above command

 

mkfs

mkfs is used to build a Linux filesystem on a device, usually a hard disk partition. The device argument is either the device name (e.g. /dev/hda1, /dev/sdb2), or a regular file that shall contain the filesystem. The size argument is the number of blocks to be used for the filesystem.

 

vfat

Formats the drive to FAT32, other formats available are mkfs.bfs, mkfs.ext2, mkfs.ext3, mkfs.ext4, mkfs.minix, mkfs.msdos, mkfs.vfat, mkfs.xfs, mkfs.xiafs etc.

 

-n

Volume-name sets the volume name (label) of the file system. The volume name can be up to 11 characters long. The default is no label. In this tutorial my volume-name is Ubuntu.

 

-I

It is typical for fixed disk devices to be partitioned so by default, you are not permitted to create a filesystem across the entire device.

 

Running $ df after formatting displays this.



You are done and your pen drive has successfully been formatted.

标签:USB,format,flash,drive,dev,volume,mkfs,name
From: https://blog.51cto.com/u_8895844/6272273

相关文章

  • 多USB工业相机的使用
    USB相机的使用USB3.0引入了“SuperSpeed”(SS)传输速率。理论传输速度高达625MByte/s,SuperSpeed传输可以在短时间内传输大量数据,适用于许多视觉应用。给出的带宽上限是一个理想化的理论值。对于实际应用,主机控制器(HostController)的实际可实现传输速率应该在主控制器的数据表......
  • google-java-format 插件
    GoogleJavaStyleGuidegoogle-java-formatgoogle-java-format插件可用于重新格式化Java源代码,。启用后,它将替换通常的ReformatCode操作。该操作可以通过Code->ReformatCode触发,也可以使用Ctrl+Alt+L触发。IDEA中使用google-java-format插件在File->Settings->Pl......
  • 【经验分享】最新Edge游览器游览Flash网页的办法
    环境:工具:MicrosoftEdgeDev系统版本:Windows10需求描述:描述:需要正常游览Flash页面的所有内容,不能有缺少的动画提示:*本文章是最简单的且直接的,若你的电脑不适合这个游览器,可以看我另外一篇文章。https://www.cnblogs.com/boluo0423/p/17358646.html提示:若按照教程还......
  • Customising claims transformation in ASP.NET Core Identity
    I’vebeentestingoutthenewversionofASP.NETIdentityandhadtheneedtoincludeadditionalclaimsinthe ClaimIdentity generatedwhenauserisauthenticated.TransformingClaimsIdentityASP.NETCoresupportsClaimsTransformationoutofthebox.J......
  • 如何创建可引导的 ESXi USB 安装介质 (macOS, Linux, Windows)
    如何制作ESXiUSB启动盘请访问原文链接:https://sysin.org/blog/create-bootable-esxi-usb-installer/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org以下USB存储设备可以是U盘/SD卡,当然USBSSD更佳。macOSmacOS使用终端自带命令即可完成操作。查看US......
  • Orcale-利用闪回恢复数据方法 flashback table 误删,表数据恢复到之前的某一时刻
    Orcale-利用闪回恢复数据方法原文链接:https://www.cnblogs.com/caster-xzn/p/8686376.html一.delete误删方法1:如果表结构没有改变,直接闪回整个表,具体步骤:--首先需要表闪回权限,开启行移动功能altertable表名enablerowmovement;--执行闪回恢复表数据到......
  • usb error -71 (2023.5.8)
    //pcie转usb模组的错误打印 //echo -1 > /sys/module/usbcore/parameters/autosuspend(这个应该不行,该报错紧挨init进程后面)在有些情况下,由于低功耗情况下,USB硬件的bug或者提高USBresume的速度,我们需要禁止USB的autosuspend,下面是两种方法。1:在bootloader的bootargs......
  • 【论文解读】(拼音+字形+字三种信息的中文BERT)ChineseBERT: Chinese Pretraining Enhan
    文章目录1.相关信息2.论文内容3.论文模型3.1GlyphEmbedding3.2PinyinEmbedding4.实验与结论5.模型使用方式1.相关信息论文年份:2021论文地址:https://aclanthology.org/2021.acl-long.161.pdf论文代码(官方):https://github.com/ShannonAI/ChineseBertHuggingFace:Shan......
  • USB 控制器 piix3-uhci, piix4-uhci, ehci, ich9-ehci1, vt82c686b-uhci, pci-ohci, n
    在折腾TrueNASSCALE虚拟机的USBPassthrough的时候发现有很多不同种类的USBController,研究了一下发现他们有这些异同点piix3-uhci和piix4-uhci是虚拟的USB1.1控制器,可被用于QEMU和VirtualBox虚拟机中,它们有不同的版本号,但功能上差别不大。ehci是USB2.0......
  • 现代计算机图形学——P4. Transformation 3D
    P4.TransformationCont.(上节课补充)————————————————————————————————————————————————————————————————今天的内容:———————————————————————————————————......