免费注册 查看新帖 |

Chinaunix

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

[桌面系统] debian下的无盘linux系统安装要点 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-09-23 08:42 |只看该作者 |倒序浏览
1.用debootstrap先做一个基本的系统,
mkdir /home/nfs/etch
debootstrap --arch=i386 etch /home/nfs/etch  http://debian.anheng.com.cn/debian
2.chroot进入基本系统,
mount -t proc none /home/nfs/etch/proc
chroot /home/nfs/etch
3.调整initrd,
  initrd是启动时的临时的内存文件系统,用来加载网络驱动,并挂载nfs做根,需要把网卡的驱动模块
  放进initrd.img,还要调整一些设置,让系统通过nfs启动,而不是local硬盘。
  chroot:/#echo 8139cp >>/etc/initramfs-tools/modules
  chroot:/#echo r8169 >>/etc/initramfs-tools/modules
  chroot:/#echo tg3 >>/etc/initramfs-tools/modules
  chroot:/#echo sis900 >>/etc/initramfs-tools/modules
  chroot:/#echo via-rhine >>/etc/initramfs-tools/modules
4.让initrd.img使用网络启动
  文件:/etc/initramfs-tools/initramfs.conf
   MODULES=netboot
   BOOT=nfs
   NFSROOT=auto
5.更新initrd.img
  chroot:/#update-initramfs -u -t -k all
6.将内核和initrd.img复制到tftpd的根目录。
7.安装和设置tftpf-hpa和dhcp3-server
8.修改nfs-kernel-server的设置,
9.无盘启动进命令行。进行后续的安装
10.建立/dev/input目录,否则udev下的鼠标不能工作。
11.在无盘系统的/etc/network/interfaces下的eth0不要设置为自动启用,
      也就是把auto eth0 或者 allow-hotplug eth0要注释掉。
12.debian会记录网卡的mac,然后用udev将新网卡依次命名为eth1,eth2,eth3
      所以在形成initrd.img之前,应该把历史网卡mac记录清掉。
      清空/etc/udev/rules.d/z25_persistent-net.rules即可
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP