作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
<分区>
我在将新的 SanDisk 128GB microSD 卡从 ExFAT
转换为 FAT32
时遇到问题
$ diskutil info /dev/disk2
Device Identifier: disk2
Device Node: /dev/disk2
Whole: Yes
Part of Whole: disk2
Device / Media Name: Built In SDXC Reader
Volume Name: Not applicable (no file system)
Mounted: Not applicable (no file system)
File System: None
Content (IOContent): FDisk_partition_scheme
OS Can Be Installed: No
Media Type: Generic
Protocol: Secure Digital
SMART Status: Not Supported
Disk Size: 127.9 GB (127865454592 Bytes) (exactly 249737216 512-Byte-Units)
Device Block Size: 512 Bytes
Read-Only Media: Yes
Read-Only Volume: Not applicable (no file system)
Device Location: Internal
Removable Media: Removable
Media Removal: Software-Activated
Virtual: No
这里是挂载的分区
$ diskutil info /dev/disk2s1
Device Identifier: disk2s1
Device Node: /dev/disk2s1
Whole: No
Part of Whole: disk2
Volume Name:
Mounted: Yes
Mount Point: /Volumes/Untitled
Partition Type: Windows_NTFS
File System Personality: ExFAT
Type (Bundle): exfat
Name (User Visible): ExFAT
OS Can Be Installed: No
Media Type: Generic
Protocol: Secure Digital
SMART Status: Not Supported
Volume UUID: 555AF300-2369-3CE8-B4E1-D8F976CE9C86
Partition Offset: 16777216 Bytes (32768 512-Byte-Device-Blocks)
Disk Size: 127.8 GB (127848677376 Bytes) (exactly 249704448 512-Byte-Units)
Device Block Size: 512 Bytes
Volume Total Space: 127.8 GB (127831900160 Bytes) (exactly 249671680 512-Byte-Units)
Volume Used Space: 393.2 KB (393216 Bytes) (exactly 768 512-Byte-Units) (0.0%)
Volume Free Space: 127.8 GB (127831506944 Bytes) (exactly 249670912 512-Byte-Units) (100.0%)
Allocation Block Size: 131072 Bytes
Read-Only Media: Yes
Read-Only Volume: Yes
Device Location: Internal
Removable Media: Removable
Media Removal: Software-Activated
首先我卸载:
$ diskutil unmountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
然后我删除磁盘并将其格式化为 FAT32
$ diskutil eraseDisk FAT32 NEW_NAME /dev/disk2
Started erase on disk2
Unmounting disk
Creating the partition map
Error: -69877: Couldn't open device
如何在不使用第三方应用程序的情况下删除磁盘并将其格式化为 FAT32
?
有没有办法以编程方式获取与 diskutil info/| 相同的信息? grep "Free Space" 给你? (出于显而易见的原因,我宁愿有更好的方法来执行此操作,而不仅仅是解析该命令的结果。
运行 Mac OSX 10.7.5 我想在 USB3 外部硬盘上启用 NTFS 并需要 UUID 来执行此操作( http://ntfsonmac.com ),但 diskutil 拒绝给我 UUID
是否有可能在 OSX(DiskUtil 或类似的东西)上创建一个加密的磁盘镜像,它会在将文件写入镜像时自动调整大小? 我问是因为“创建图像”对话框不显示任何选项,而仅适用于固定大小的图像。 最佳答案
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我是一名优秀的程序员,十分优秀!