debian linux安装时解决网络驱动问题
2014-07-28 13:42:34 阿炯

debian为了保证操作系统本身是完全开源的情况下,从默认的安装介质中移除了那些与开源协议有争议甚至不开源的硬件驱动。于是一些硬件在安装时就不能正常驱动了,安装程序会提示具体的驱动程序名称,可以通过u盘或其它介质来安装该驱动了。

比如我的机器上有intel的网卡,但该网卡的驱动属于non-free的,而我又是通过网络来安装系统的,在我的引导介质中却没有,那就麻烦了。当然有下面的一些解决办法,这里以ipw2x00这一系列的intel网卡为例。

将iso光盘写入usb盘
# cat debian.iso > /dev/sdX
# sync && sync

I probably should have said this first but it will wipe your entire USB stick, so make sure there's nothing there you care about. Also the X is /dev/sdX is a substitute for the real letter of of your USB drive ie: /dev/sdb whic can be identified by running dmesg | tail directly after inserting the USB drive.

首先要说明的是,它将会把整个u盘里的东西全部移除,所以请将u盘里的资料备份好。盘符X是/dev/sdX,用它代替u盘的分配点,像我的笔记本上则是:/dev/sdb,可以通过运行‘dmesg |tail’指令来进修插入USB驱动器。

$ dmesg | tail
[21497.162053] sd 7:0:0:0: [sdb] Write Protect is off
[21497.162062] sd 7:0:0:0: [sdb] Mode Sense: 23 00 00 00
[21497.162723] sd 7:0:0:0: [sdb] No Caching mode page present
[21497.162732] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[21497.167587] sd 7:0:0:0: [sdb] No Caching mode page present
[21497.167598] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[21497.170363]  sdb: sdb1
[21497.173837] sd 7:0:0:0: [sdb] No Caching mode page present
[21497.173856] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[21497.173868] sd 7:0:0:0: [sdb] Attached SCSI removable disk

现在再回到驱动问题

一、准备好所要的驱动,在安装需要时导入
在安装进行到硬件探测使用阶段,程序会提示要求具体的驱动程序。显然,这些所要求的驱动程序都属于'non-free'库中的软件包了,在非官方源中,debian将这些闭源二进制包打包为一个文件,下载后将其解压放在安装介质中,安装程序在需要时就会搜索它们的。

下载地址为:http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/版本代号/目录/firmware.tar.gz

二、直接使用加入了驱动的引导介质
在debian的官方源上也提供了网络安装介质,名称大致为:firmware-version-i386-netinst.iso,这个iso中包含了所有的闭源硬件驱动程序,可将它刻录为盘或usb驱动器,即可解决安装过程中的硬件驱动问题。

下载地址为:http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/版本号/架构体系/目录/

具休的操作步骤在debian手册页里有说明:https://www.debian.org/releases/stable/i386/ch04s03.html.zh-cn

将iso写入usb盘的文档:http://muzso.hu/2010/09/03/booting-a-debian-ubuntu-iso-from-an-usb-drive

参考文档:
Intel PRO/Wireless 2x devices

Firmware