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

Unix/Linux
Linux教程:后台执行程序如何操作?
Linux教程:记录会话过程的命令
Linux和Windows区别分析之线程问题
Linux教程:22端口如何修改?
Linux教程:配置DHCP服务器方法介绍
css3教程:把系统日志记录到远程服务器
教你在Linux系统下破解SAM密码
Linux操作系统启动界面揭秘DHCP协议实现过程
如何检测U盘是否插入或拔出
Linux消除用户使用习惯的阻隔
编写应用程序要注重其安全性
Telnet在Linux系统下如何设置
Linux系统下误删除文件怎么办
删除Linux系统下的历史记录
修改Linux系统下22端口的两种方法
资深Linux程序员的开发经验谈
Ext2和Ext3文件系统
Linux策略性路由应用
如何在Linux中设置透明代理
Linux下的软件开发

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 32 ::
收藏到网摘: 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服務器了