mtk-openwrt-formatting-disk-commands
安装工具包
安装两个工具包
1 | opkg install libext2fs_1.42.4-1_ramips_1004kc.ipk |
该工具可通过SDK
的make menuconfig
选上并编译生成
1 | Utilities ---> |
分区
fdisk /dev/sda
进入交互模式
n add a new partition
: 基本上一路默认即可,选择primary
,选择容量等。t change a partition type
: 修改新分区的类型,选择83 Linux
,可通过L
查看支持的类型。w write table to disk and exit
: 保存退出
格式化
1 | mkfs.ext4 /dev/sda1 |
注意这里是 sda1