怎样在linux下对U盘进行mac格式化u盘 分区图和分区

如何用LINUX命令格式化U盘_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
如何用LINUX命令格式化U盘
上传于|0|0|文档简介
&&如何用LINUX命令格式化U盘
你可能喜欢zisehuainian 的BLOG
用户名:zisehuainian
文章数:132
评论数:29
访问量:162598
注册日期:
阅读量:5863
阅读量:12276
阅读量:389452
阅读量:1080466
51CTO推荐博文
&&&&前段时间用SD卡刻了用一个Linux系统(存储系统),插在windows下显示只有32MB(原卡16GB的)。好了,问题来了,其他的空间去哪里了呢?&&&&1、如何释放其他未使用的空间?&&&&2、如何重新找回所有空间作为他用呢?&&&&第一个问题的解决办法:&&&&参考我的另一篇文章:《树莓派Raspberry Pi 16G SD卡刷系统时默认空间扩容》&&&&使用gparted图形化工具进行分区扩容。&&&&地址:http://thinkpig007./4196&&&&第二个问题的解决办法:&&&&当你将此sd插入windows系统下打算格式化,用做他用。可是很悲剧,你右键SD属性,只看到可用空间为32MB,天呐?16GB的空间怎么就剩这么点了呢?你试着想使用windows下的格式化来解决问题,但是当你右键格式化后,可用空间依旧只有32MB,怎么办呢?&&&&这是因为在写入存储系统的时候,硬件将SD重新分区了,你在windows下格式化和看到只是存储系统的一个分区。要把其他空间找回来就需要重新分区(一般SD就分一个分区)。&&&&有两种解决办法:&&&&(1)使用windows PE里面的磁盘分区工具或者单独使用磁盘分区工具&&&&找到SD,将所有分区删除(注意是SD,不要搞错了哦)&&&&(2)使用linux下的fdisk工具来进行重新分区&&&&&&&&我的操作过程: & &查看当前系统的挂载的分区情况,看到最后的SD分区root@bt:~# mount/dev/sda1 on / type ext4 (rw,errors=remount-ro)proc on /proc type proc (rw,noexec,nosuid,nodev)none on /sys type sysfs (rw,noexec,nosuid,nodev)none on /sys/fs/fuse/connections type fusectl (rw)none on /sys/kernel/debug type debugfs (rw)none on /sys/kernel/security type securityfs (rw)none on /dev type devtmpfs (rw,mode=0755)none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)none on /dev/shm type tmpfs (rw,nosuid,nodev)none on /var/run type tmpfs (rw,nosuid,mode=0755)none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)vmware-vmblock on /var/run/vmblock-fuse type fuse.vmware-vmblock&(rw,nosuid,nodev,default_permissions,allow_other)/dev/sdb1 on /media/NB_5024_X64 type fuseblk&(rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)将SD挂载卸载root@bt:~# umount /dev/sdb1对SD的分区进行删除root@bt:~# fdisk /dev/sdb1WARNING: DOS-compatible mode is deprecated. It's strongly&recommended to& & & & &switch off the mode (command 'c') and change display&units to& & & & &sectors (command 'u').Command (m for help): mCommand action& &a & toggle a bootable flag& &b & edit bsd disklabel& &c & toggle the dos compatibility flag& &d & delete a partition& &l & list known partition types& &m & print this menu& &n & add a new partition& &o & create a new empty DOS partition table& &p & print the partition table& &q & quit without saving changes& &s & create a new empty Sun disklabel& &t & change a partition's system id& &u & change display/entry units& &v & verify the partition table& &w & write table to disk and exit& &x & extra functionality (experts only)Command (m for help): pDisk /dev/sdb1: 32 MB,
bytes255 heads, 63 sectors/track, 3 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0xThis doesn't look like a partition tableProbably you selected the wrong device.& & &Device Boot & & &Start & & & & End & & &Blocks & Id &System/dev/sdb1p1 & & & & &119529 & & &232583 &
& 72 &UnknownPartition 1 has different physical/logical beginnings (non-Linux?):& & &phys=(80, 13, 10) logical=(, 3)Partition 1 has different physical/logical endings:& & &phys=(371, 101, 51) logical=(, 44)Partition 1 does not end on cylinder boundary./dev/sdb1p2 & ? & & &120513 & & &242122 &
& 6c &UnknownPartition 2 has different physical/logical beginnings (non-Linux?):& & &phys=(357, 43, 4) logical=(, 15)Partition 2 has different physical/logical endings:& & &phys=(367, 32, 52) logical=(8, 1)Partition 2 does not end on cylinder boundary./dev/sdb1p3 & ? & & & & & 1 & & & & & 1 & & & & & 0 & &0 &EmptyPartition 3 has different physical/logical beginnings (non-Linux?):& & &phys=(0, 10, 0) logical=(0, 0, 1)Partition 3 has different physical/logical endings:& & &phys=(0, 0, 0) logical=(, 4)Partition 3 does not end on cylinder boundary./dev/sdb1p4 & & & & & &1726 & & & &1726 & & & & 223+ & 0 &EmptyPartition 4 has different physical/logical beginnings (non-Linux?):& & &phys=(0, 0, 0) logical=(, 44)Partition 4 has different physical/logical endings:& & &phys=(0, 0, 0) logical=(, 49)Partition 4 does not end on cylinder boundary.Command (m for help): dCommand (m for help): pDisk /dev/sdb1: 32 MB,
bytes255 heads, 63 sectors/track, 3 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x& & &Device Boot & & &Start & & & & End & & &Blocks & Id &SystemCommand (m for help): w删除完sdb1后,w保存同样再来对sdb真个设备进行分区删除root@bt:~# fdisk /dev/sdb――》d――》w,d删除分区,w保存操作退出fdisk再来看,sdb设备大小,且没有其他分区。root@bt:~# fdisk -lDisk /dev/sda: 107.4 GB,
bytes255 heads, 63 sectors/track, 13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x000025ee& &Device Boot & & &Start & & & & End & & &Blocks & Id &System/dev/sda1 & * & & & & & 1 & & & 12518 &
& 83 &Linux/dev/sda2 & & & & & 12518 & & & 13055 & & 4305921 & &5 &Extended/dev/sda5 & & & & & 12518 & & & 13055 & & 4305920 & 82 &Linux&swap / SolarisDisk /dev/sdb: 15.9 GB,
bytes64 heads, 32 sectors/track, 15193 cylindersUnits = cylinders of 2048 * 512 = 1048576 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x4f9ae4a3& &Device Boot & & &Start & & & & End & & &Blocks & Id &Systemroot@bt:~#OK搞定,将SD从Linux系统退出,放到windows下格式化为NTFS,可以看到有14.8GB的空间可用。本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)Ubuntu下分区格式化U盘(fdisk&&mkfs)_Linux教程_Linux公社-Linux系统门户网站
你好,游客
Ubuntu下分区格式化U盘(fdisk&&mkfs)
来源:Linux社区&
作者:zinss26914
在下一般使用fdisk这个工具来格式化u盘,至于格式化u盘的原因必然是因为u盘本身的系统在需要使用人的机器上不能识别,例如window无法识别GPT文件系统的u盘,这也是我一个同事今天遇到的问题,所以我需要将u盘的文件系统格式化为ntfs,这里介绍一下操作步骤
查看硬盘分区信息
sudo fdisk -l
通过截图,可以看到u盘设备号为/dev/sdb,大小为16.1GB,文件系统类型是GPT,很明显是我们格式化的目标
sudo fdisk& /dev/sdb
很简单,按住m就会有命令提示:
没什么可说的,不做翻译了,这里我删除之前的分区,再创建一个分区即可(也是为了学习fdisk命令)
这里的sector分两个,类似操作系统分区时有个引导分区的概念,或者说隐藏分区的作用
mkfs格式化文件系统
很简单的使用,不清楚的记住man一下即可
ok,分区结束,格式化文件系统结束后,我们的工作也就结束了,have a nice day!
更多Ubuntu相关信息见 专题页面
相关资讯 & & &
& (06月15日)
& (04/22/:17)
& (07/26/:57)
& (04/25/:29)
& (06/14/:41)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款中国领先的IT技术网站
51CTO旗下网站
在 Linux 系统如何正确的对U盘进行格式化?
在Linux操作系统中,对U盘的格式化则相对要负责些。如何正确的对U盘进行格式化呢?看看本文分享的技巧和方法吧。
作者:赵为民来源:| 17:41
U盘是目前应用最广的移动存储设备。但由于一些原因,我们需要对U盘进行格式化操作。对于习惯了Windows&操作系统的用户来说,格式化非常方便简单,只需要我们点击右键选择&进行格式化&就可以完成对U盘的格式化过程。但是在Linux操作系统中,对U盘的格式化则相对要负责些。
下面我们来看一下在Linux操作系统中如何对U盘进行格式化:
在Linux操作系统中对U盘进行格式化,我们需要借助一个软件:GParted。GParted软件是一款Linux操作系统下功能强大的分区工具,与我们Windows中常用的&分区魔术师&类似。GParted可以方便的创建、删除分区,也可以调整分区的大小和移动分区的位置。
用GParted的格式化U盘之前,我们需要安装它。因此,打开一个新的终端,键入命令,如图1所示。
按&Y&,并等待,直到它完成下载和安装。
已经安装了程序后,现在是时候启动它。键入完全一样的命令,如图3所示。
在下拉菜单中,选择要格式化的U盘,并点击它,如图4所示。
选择格式化U盘
现在,右键单U盘,用鼠标选择&&Unmount&。然后右键单击再次格式化。
这里你需要根据你为格式化的U盘选择文件格式。我会选择FAT32格式。选择FAT32后,点击操作,它会在挂起模式。
确认格式化
然后,我们需要选择最上层的对勾,这样我们就可以开始格式化了。
格式化完成
点击Apply,将应用于所有待处理操作。现在,U盘的格式化整个过程就完成了。
【编辑推荐】【责任编辑: TEL:(010)】
大家都在看猜你喜欢
头条头条外电头条外电
24H热文一周话题本月最赞
讲师:0人学习过
讲师:0人学习过
讲师:11人学习过
精选博文论坛热帖下载排行
本书主要介绍了SQL的数据库应用和开发技术,内容涉及关系数据库和SQL概述,SQL环境,SQL对于数据表的操作,数据库查询知识,SQL数据的修改...
订阅51CTO邮刊

我要回帖

更多关于 u盘分区格式化 的文章

 

随机推荐