嵌入式Linux存储设备与文件系统全解析
1. 磁盘设备操作
在嵌入式Linux设备中,磁盘设备的操作与Linux工作站或服务器有相似之处,但也存在一些差异。
1.1 设备分区
以 /dev/nftla 磁盘为例,其参数如下:
Disk /dev/nftla: 16 heads, 4 sectors, 1018 cylinders
Units = cylinders of 64 * 512 bytes
Device Boot Start End Blocks Id System
/dev/nftla1 1 1018 32574 83 Linux
在创建分区时,可能需要先删除原分区。使用 fdisk 工具进行分区操作,完成后使用 w 命令保存分区表:
Command (m for help): w
The partition table has been altered!
Calling ioctl( ) to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
i
超级会员免费看
订阅专栏 解锁全文
1652

被折叠的 条评论
为什么被折叠?



