- 论坛徽章:
- 0
|
原帖由 pineapple1175 于 2007-3-10 16:00 发表于 1楼
最近我在试着把linux内核做到u盘上,在做到以下步骤:
....
#mkinitrd /tmp/initrd.gz 2.6.20
#cd /tmp
# gunzip initrd.gz
# mount -o loop initrd /mnt/initrd
mount命令老是出现错误提示:需要指明具体的 ...
应该你是解压不开initrd.gz的吧?
我测试了一下2.6.8的内核,按照你的步骤mkinitrd之后
#gunzip initrd.gz
gunzip: initrd.gz: not in gzip format
# file initrd.gz
initrd.gz: Linux Compressed ROM File System data, little endian size 4677632 version #2 sorted_dirs CRC 0x6f9f9eea, edition 0, 2701 blocks, 351 files
这个格式是Compressed ROM file system support (cramfs)
既然没解开,你这样mount就会报错,需要你指明具体的文件格式。
mount -o loop /tmp/initrd.gz /mnt
ioctl: LOOP_CLR_FD: 设备或资源忙
mount: you must specify the filesystem type
既然知道是cramfs格式,那么正确的方法是
mount -t cramfs -o loop initrd.gz /mnt/initrd
[ 本帖最后由 tanyear 于 2007-3-12 01:41 编辑 ] |
|