当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 晚上新增一块scsi硬盘...

Unix/Linux
Linux 网管 123 --- 第6章. 一般系统管理问题 -3.变更使用者密码
Linux 网管 123 --- 第6章. 一般系统管理问题 -4.关闭删除使用者帐号
Linux 网管 123 --- 第6章. 一般系统管理问题 -5.Linux 密码及 S
Linux 网管 123 --- 第6章. 一般系统管理问题 -6.关闭系统及重新启动
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -1.HTTP
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -2.DNS
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -3.使用 TACACS
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -4.使用 Samba
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -5.使用 Netata
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -6.NFS
Linux 网管 123 --- 第13章. 其他的问题 2.哪里可以找到帮助
Linux 网管 123 --- 第13章. 其他的问题 3.附带文件的指示
RedHat 6.2 中文显示与输入的设置
RedHat 6.2 中文 TrueType 字体的使用
Linux 网管 123 --- 第13章. 其他的问题 1.系统损毁
Linux系统中网络配置详解
如何配置linux与win2000/NT 双重引导
kernel hacking简单入门
Linux下如何刻录任何文件系统格式的光盘?
编译内核make dep 是啥意思 ?

Unix/Linux 中的 晚上新增一块scsi硬盘...


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 122 ::
收藏到网摘: n/a

Submitted by 涛涛 on 2005, March 31, 6:14 PM. Linux因为没装过scsi硬盘...所以比较紧张... 装上以后...用dmesg看看机器有没认出来...发现没有... 看看卡有没问题.... [root@Jintao root]# lspci 00:00.0 Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corp. 82815 CGC [Chipset Graphics Controller] (rev 02) 00:1e.0 PCI bridge: Intel Corp. 82801AA PCI Bridge (rev 02) 00:1f.0 ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC) (rev 02) 00:1f.1 IDE interface: Intel Corp. 82801AA IDE (rev 02) 00:1f.2 USB Controller: Intel Corp. 82801AA USB (rev 02) 00:1f.3 SMBus: Intel Corp. 82801AA SMBus (rev 02) 00:1f.5 Multimedia audio controller: Intel Corp. 82801AA AC'97 Audio (rev 02) 01:01.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U 01:02.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78) 看见Adaptec AHA-2940U了...看来卡是没有问题的... 在bios里也看到了卡和硬盘都没问题... 怎么系统就不认呢...手动加载成功...可惜驱动可能不太对... #modprobe aic7xxx 就可以了...但是由于这个需要在系统启动之后..也就是在kernel释放之后,那么这种情况导致不能直接修改/etc/fstab,因为会出错.所以我还是放在S99local里让它手动mount [root@Jintao root]# tail -5 /etc/rc.d/rc.local /www/apache2/bin/apachectl start iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE modprobe scsi_mod modprobe aic7xxx mount -t ext3 /dev/sda1 /*** fdisk对该硬盘整个只分了一个区...嘿嘿...然后mkfs -t ext3 /dev/sda~嘿嘿...就搞定... 然后添加一个用户 #useradd *** -d /*** #passwd *** 嘿嘿...搞定... 访客评论问题不在于这里...今天手动修改initrd.img里的linuxrc再试试...等中午吧...Post by 涛涛 on 2005, April 1, 10:25 AM# 1问题解决. /etc/modules.conf需要加一行 alias scsi_hostadapter aic7xxx 注意第二列需要用scsi_hostadapter这个名称 为什么呢...mkinitrd这个脚本里有描述: scsimodules=`grep "alias[[:space:]]scsi_hostadapter" $modulefile` 空格后面就是scsi_hostadapter,然后这里如果grep不到就会出错. 我这里便是aic7xxx,然后mkinitrd,其实就是找模块,然后添加到initrd.img里的linuxrc里面,这样系统启动时会释放scsi驱动,这样/etc/fstab才可以挂上来. 我昨天这样没成功,因为/etc/modules.conf第二列写错了.所以我自己只有手动加在S99local,也是一种解决的办法...:) 只是现在这样更好些.Post by 涛涛 on 2005, April 1, 1:35 PM# 2不是我的,,只是分享一下,因為我快要裝一個scsi的ibm服務器了