简单编译升级内核激活FC1上的USB硬盘
发表于:2007-07-04来源:作者:点击数:
标签:
到www.kernel.org下载最新内核,我下载的是 linux -2.6.6.tar.bz2文件 1. #cp linux-2.6.6.tar.bz2 /usr/src/ 2. #cd /usr/src 3. #tar xvfj linux-2.6.6.tar.bz2 4. #cd linux-2.6.6 5. #make menuconfig 注意,请选中 M> OHCI HCD support M> UHCI HCD (mo
到www.kernel.org
下载最新内核,我下载的是
linux-2.6.6.tar.bz2文件
1. #cp linux-2.6.6.tar.bz2 /usr/src/
2. #cd /usr/src
3. #tar xvfj linux-2.6.6.tar.bz2
4. #cd linux-2.6.6
5. #make menuconfig
注意,请选中
<M> OHCI HCD support
<M> UHCI HCD (most Intel and VIA) support
别的请勿改变,修改完毕后,退出并保存
6. #make
7. #make modules_install
8. #make install
9. #vi /etc/rc.d/rc.local
加入两行
modprobe usb-storage
modprobe uhci-hcd
10. 重启机器,在grub中选择进入2.6.6内核
11. #fdisk -l /dev/sda
Disk /dev/sda: 30.0 GB, 30005821952 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 2 3647 29286495 f Win95 Ext'd (LBA)
/dev/sda5 2 3647 29286463+ c Win95 FAT32 (LBA)
12. #mount -o codepage=936,iocharset=cp936 /dev/sda5 /mnt/cdrom
13. #ls /mnt/cdrom
原文转自:http://www.ltesting.net