头歌操作系统课堂练习7.1:文件系统的静态结构(答案)
第一关文件 /usr/root/hello.c 的手动分析复制1.在超级块中i 节点位图所占的块数是多少(1)区块位图所占的块数是多少(2)数据区的第一个区块的编号是多少(0x70)索引节点区的第一个数据块的编号和起始地址是多少(5)(0x1400)2.1 号索引节点的第一个区块的编号和起始地址分别是多少(0x70)(0x1c000)3.目录 /usr 的索引节点的编号和起始地址分别是多少(0x30)(0x19e0)4.目录 /usr 的索引节点的第一个区块的编号和起始地址分别是多少(0x03db)(0xf6c00)5.目录 /usr/root 的索引节点的编号和起始地址分别是多少(0x83)(0x2440)6.目录 /usr/root 的索引节点的第一个区块的编号和起始地址分别是多少(0x1271)(0x49c400)7.文件 /usr/root/hello.c 的索引节点的编号和起始地址分别是多少(0x86)(0x24a0)8.文件 /usr/root/hello.c 的索引节点的第一个区块的编号和起始地址分别是多少(0x1287)(0x4a1c00)9.文件 /usr/root/hello.c 的头两个字节是什么(0x23)(0x69)终端操作cd ~/os/linux-0.11-lab/images hexdump -s 0x1c000 -n 1024 -C rootimage-0.11 hexdump -s 0x1840 -n 32 rootimage-0.11 hexdump -s 0xedc00 -n 1024 -C rootimage-0.11 hexdump -s 0x1920 -n 32 rootimage-0.11 hexdump -s 0xf4000 -n 32 -C rootimage-0.11 hexdump -s 0xf5400 -n 1024 -C rootimage-0.11 history /data/workspace/myshixun/history2.log第二关文件 /etc/magic 的手动分析答案复制1.目录 /etc 的索引节点的编号和起始地址分别是多少(0x23)(0x1840)2.目录 /etc 的索引节点的第一个区块的编号和起始地址分别是多少(0x03b7)(0xedc00)3.文件 /etc/magic 的索引节点的编号和起始地址分别是多少(0x2a)(0x1920)4.文件 /etc/magic 的索引节点的最后一个区块的编号和起始地址分别是多少(0x3d5)(0xf5400)5.文件 /etc/magic 的尾部包含字符串 XENIX 8086 relocatable or 80286 small model 其起始地址是什么(0x000f55ec)终端操作cd ~/os/linux-0.11-lab/images hexdump -s 0x1c000 -n 1024 -C rootimage-0.11 hexdump -s 0x1840 -n 32 rootimage-0.11 hexdump -s 0xedc00 -n 1024 -C rootimage-0.11 hexdump -s 0x1920 -n 32 rootimage-0.11 hexdump -s 0xf4000 -n 32 -C rootimage-0.11 hexdump -s 0xf5400 -n 1024 -C rootimage-0.11 history /data/workspace/myshixun/history2.log感谢阅读有问题请评论区留言