在系统自身上进行格式化和内容写入
需要停掉所有占用存储卡的进程,目前只有nginx和vsftpd,然后umount卸载掉,然后进行文件系统创建格式化
重新挂载后启用vsftpd将文件传入
/etc/init.d/nginx stop
/etc/init.d/vsftpd stop
block umount
mkfs.ext4 /dev/mmcblk0p1
mke2fs 1.42.4 (12-June-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
485760 inodes, 1939456 blocks
96972 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1988100096
60 block groups
32768 blocks per group, 32768 fragments per group
8096 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
block mount
/etc/init.d/vsftpd restart