打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
ext4文件系统分配空间 格式化
userphoto

2018.10.09

关注

tarena@ubuntu:~/porting/busybox-1.21.1$ dd if=/dev/zero of=rootfs.ext4 bs=1k count=8192
记录了8192+0 的读入
记录了8192+0 的写出
8388608字节(8.4 MB)已复制,0.0348157 秒,241 MB/秒
tarena@ubuntu:~/porting/busybox-1.21.1$ sudo mkfs
[sudo] password for tarena:
Usage: mkfs [options] [-t type fs-options] device [size]

Options:
 -t, --type=TYPE  file system type, when undefined ext2 is used
     fs-options   parameters to real file system builder
     device       path to a device
     size         number of blocks on the device
 -V, --verbose    explain what is done
                  defining -V more than once will cause a dry-run
 -V, --version    output version information and exit
                  -V as version must be only option
 -h, --help       display this help and exit

For more information see mkfs(8).
tarena@ubuntu:~/porting/busybox-1.21.1$ hexdump -C rootfs.ext4
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00800000
tarena@ubuntu:~/porting/busybox-1.21.1$ sudo  mkfs.ext4 rootfs.ext4  //格式化
mke2fs 1.42 (29-Nov-2011)
rootfs.ext4 is not a block special device.
无论如何也要继续? (y,n) y
Discarding device blocks: 完成                           
文件系统标签=
OS type: Linux
块大小=1024 (log=0)
分块大小=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
2048 inodes, 8192 blocks
409 blocks (4.99%) reserved for the super user
第一个数据块=1
Maximum filesystem blocks=8388608
1 block group
8192 blocks per group, 8192 fragments per group
2048 inodes per group

Allocating group tables: 完成                           
正在写入inode表: 完成                           
Creating journal (1024 blocks): 完成
Writing superblocks and filesystem accounting information: 完成

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
linux不需要磁盘碎片整理
只有1个字节的文件实际占用多少磁盘空间
Wubi安装ubuntu增加磁盘空间
linux查看目录大小及硬盘大小
Bochs调试linux内核环境搭建笔记(1) – JeanLeo 博客
u-boot for tiny4412
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服