免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1108 | 回复: 7
打印 上一主题 下一主题

还是有点问题(debian mkinitrd的问题) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-09 13:08 |只看该作者 |倒序浏览
我在debian
系统下没有找到但是找到了debianinstall

经过:
cp debianinstall /tmp
cd /tmp
mv debianinstall /initrd.gz
tar -xvf initrd.gz
mount initrd /mnt -o loop
然后看到了普通的redhat下的initrd.img文件
可是我所作的在debianbf24引导内核下看的
但是通过compact and idepci (flaver却不知到如何搞定啦)
因为我实在raid上安装系统,需要先通过这个启动
谢谢~~请回
等待中。。。

论坛徽章:
0
2 [报告]
发表于 2004-04-09 13:39 |只看该作者

还是有点问题(debian mkinitrd的问题)

没有人帮忙一下吗?
俺是新手

论坛徽章:
0
3 [报告]
发表于 2004-04-09 14:44 |只看该作者

还是有点问题(debian mkinitrd的问题)

安装initrd-tools后使用mkinitrd制作

论坛徽章:
0
4 [报告]
发表于 2004-04-09 14:56 |只看该作者

还是有点问题(debian mkinitrd的问题)

谢谢blue_stone
我还没有看有没有安装apt-get install initrd-tools
可以吗?
我试试看
不过原来我mkinitrd后不可以使用这个命令
在研究一下
http://www.rt.com/man/mkinitrd.8.html

论坛徽章:
0
5 [报告]
发表于 2004-04-12 10:46 |只看该作者

还是有点问题(debian mkinitrd的问题)

我安装了linux的mkinitrd可以了

论坛徽章:
0
6 [报告]
发表于 2004-04-14 10:01 |只看该作者

还是有点问题(debian mkinitrd的问题)

嗯,initrd-tools安装已经搞顶了
通过
apt-cdrom add
apt-get install initrd-tools
ok!!
正在测试中

论坛徽章:
0
7 [报告]
发表于 2004-04-15 11:15 |只看该作者

还是有点问题(debian mkinitrd的问题)

initrd-tools虽然已经安装上了
但是它只能够制作cramfs格式的initrd
所以我不停的搜索google终于找到了解决的方法,实际上这是偷懒的
呵呵,感谢Mark W. Alexander 的提示


Then all is well, except in 2.6.0-2.6.N (where N=whenever it was merged)
you need to edit /etc/mkinitrd/mkinitrd.conf and replace the line:

MKIMAGE='mkcramfs %s %s >; /dev/null'

with

MKIMAGE='/usr/local/sbin/mkext2fs %s %s >; /dev/null'

and create /usr/local/sbin/mkext2fs as follows:
==============================================================
#!/bin/bash
# similar to mkcramfs (for use with debian mkinitrd)
# mkext2fs dirname outfile
#
# no options are parsed
#
#       Written by: Fabian Franz <mkext2fs@fabian-franz.de>;

# GPL v.2 - See: `locate gpl.txt`

if [ $# -lt 2 ]
then
  echo "Usage: $(basename $0) dirname outfile"
  exit 1
fi

TMPDIR=/tmp/$(basename $0).$$
mkdir $TMPDIR
function clean_exit
{
  umount $TMPDIR 2>;/dev/null
  rm -rf $TMPDIR
}

trap clean_exit EXIT

COUNT=$[$(du -s $1 | awk '{ print $1 }' )*2+1000]
dd if=/dev/zero of=$TMPDIR/image count=$COUNT
mke2fs -F $TMPDIR/image
mount -o loop $TMPDIR/image $TMPDIR
cp -a $1/* $TMPDIR
umount $TMPDIR
cat $TMPDIR/image | gzip - >; $2

论坛徽章:
0
8 [报告]
发表于 2004-04-15 15:15 |只看该作者

还是有点问题(debian mkinitrd的问题)

经过测试好像有点错误
哎,郁闷
怎么没有人跟呀
帮忙呀!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP