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

Unix/Linux
linux查看内存的大小
在linux下写的代码,用的是utf-8,结果拿到XP下运行的时候,所有的中文都成乱码
linux su和sudo命令的区别
linux cron 下的定时执行工具使用技巧
linux 查找进程及终止进程操作的相关命令
redhat linux 安装 gcc编译器
Linux Mplayer播放各种格式的电影
一起回顾一下linux常用命令
Linux 网站项目发布要做哪些配置
linux SSH配合SecureCRT的密匙完美使用方法
GD 编译出错解决方法
Facebook Open Platform编译FAQ
Linux 系统硬盘 优化
linux 挂载详解
linux crontab定时命令
Linux 系统中确保访问三级域名畅通的方法
Linux 特权帐号VS普通帐号
确保Linux系统安全的前提条件 漏洞防护
Linux 监视系统资源使用率
Red Hat Linux上使用BIND建立DNS服务器

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


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