This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
您也许可以使用
sfdisk
,只需省略分区大小和启动。You may be able to use
sfdisk
, just omit the partition size and start.我之前编写过 fdisk 脚本,如下所示:
在 USB 密钥上创建分区时注意按 1MB 对齐。否则性能可能会受到影响。
I've previously scripted fdisk like:
Note when creating partitions on usb keys align on 1MB. Other wise performance can be affected.
parted 程序有一个选项:
这应该会让编写脚本变得更容易。
The parted program has an option:
That ought to make it easier to script.