BBS水木清华站∶精华区
发信人: raner (lilo), 信区: Linux
标 题: Re: 请教一下raner
发信站: BBS 水木清华站 (Fri Aug 22 15:50:34 1997)
【 在 jyj (辙外哲) 的大作中提到: 】
∶ 请问你那个rootfs.gz是怎么做的啊?
∶ 谢谢!
大概是这样,有关BOOT的HOWTO文档内有说:
dd if=/dev/zero of=rootfs bs=1k count=3500
^^^^^^^^^^^^^^^^
according to the size you want
mke2fs rootfs -m 0
^^^^^ no room reserved for root
mount rootfs /mnt -o loop
^^^^^^^^
mount a file as device, you may compile a kernel with this feature
现在则可在/mnt下放泥想放的东东了
然后umount, gzip -9 rootfs OK!
--
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.5.110]
BBS水木清华站∶精华区