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

Unix/Linux
linux常用的command 技巧
TurboLinux操作系统的配置命令详细解析
参照学习表 DOS和Linux常用命令的对比
Rar for Linux相关命令用法的详细说明
在Linux下正则表达式和grep命令的使用
Linux操作系统给命令指定别名(alias)
Linux 指令篇:文件管理--chattr
Linux 指令篇:文件管理--chgrp
Linux 指令篇:文件管理--cksum
Linux 指令篇:文件管理--cmp
Linux 指令篇:文件管理--diff
Linux 指令篇:文件管理--diffstat
Linux 指令篇:文件管理--file
Linux 指令篇:文件管理--git
Linux 指令篇:文件管理--gitview
Linux 指令篇:文件管理--indent
Linux 指令篇:文件管理--in
Linux 指令篇:文件管理--isattr
Linux 指令篇:文件管理--mc
Linux 指令篇:文件管理--mktemp

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


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