创建LINUX文件系统

 

dd if=/dev/zero of=./initrd bs=1024 count=4096

 

/sbin/losetup /dev/loop0 ./initrd

./mkfs.minix /dev/loop0

 

mkdir ./rootfs

mount /dev/loop0 ./rootfs

rm -rf ./rootfs/lost+found

tar -jxf rootfs.tar.bz2

umount ./rootfs

/sbin/losetup -d /dev/loop0

 

gzip -9 ./initrd

mv -f ./initrd.gz ./hicore/rootfs.img

rm -rf ./rootfs

你可能感兴趣的:(linux)