S3C6410 完全由SD卡启动Linux流程(2)

# mkfs.vfat /dev/sda1 #<----------格式化命令 mkfs.vfat 2.11 (12 Mar 2005) [root@tch u-boot-1.1.6_hxy6410]# mkfs.ext3 /dev/sda2 #<------格式化命令 mke2fs 1.39 (29-May-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 242880 inodes, 484825 blocks 24241 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=499122176 15 block groups 32768 blocks per group, 32768 fragments per group 16192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 33 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.


   2.3 测试文件系统是否可以用

          mount -t ext3 /dev/sda2 /mnt


   2.4 把根文件系统拷入SD卡,r表示递归,a表示把权限,符号链接等信息也拷贝

       cp -ra /home/hxy/rootfs/* /mnt

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyszgy.html