mount iso文件的时候提示Could not find any loop device
问题现象:[root@tonykorn97 user]# mount -o loop RedHat.Enterprise.Linux.5.Update.1-XiSO.iso /home/user/disc1/mount: Could not find any loop device. Maybe this kernel does not know about the loop device? (If so, recompile or `modprobe loop'.)[root@tonykorn97 user]# modprobe loopFATAL: Module loop not found.[root@tonykorn97 user]#[@more@]操作系统:[root@tonykorn97 /]# cat /etc/issueRed Hat Enterprise Linux Server release 5.1 (Tikanga)Kernel r on an m[root@tonykorn97 /]# uname -aLinux tonykor
rh131笔记--unit6-filesystem managemen
一,managing partitions 分区工具 fdisk sfdisk parted 更新一下分区表,避免重启 partprobe[@more@]二,making filesystemsmkfs.ext3mke2fs三,filesystem labels[root@server1 ~]# e2label /dev/sda5 backup[root@server1 ~]# e2label /dev/sda5backup[root@server1 ~]# mount LABEL=backup /mntblkid can be used to see labels and filesystem type of all devices例如:[root@server1 ~]# blkid /dev/mapper/VolGroup00-LogVol01: UUID="f10e321b-6fd2-47e6-8dee-4f58e63b1780" SEC_TYPE="ext2" TYPE=
rh131笔记---unit5-user administration.txt
一,用户管理 useradd usermod userdel 二,组管理 groupadd groupmod groupdel[@more@]三,密码策略管理chage -l root密码策略保存在/etc/shadow文件中四, sudousers listed in /etc/sudoers execure comands with:an effective user id of 0group id of root's groupan administrator will be contacted if a user not listed in /etc/sudoers attempts to use sudo五,network users配置:system-config-authenticationNIS configurationmust install ypbind and portmap RPMSLDAP Configurationmust install nss-ldap and
rh131笔记---unit4-system services
一,network time protocl配置文件:/etc/ntp.conf配置工具:system-config-date[@more@]二,日志服务配置远程日志服务1,服务器端配置first,on the log server set up syslogd to accept remote messages,a, Edit /etc/sysconfig/syslog; SYSLOGD_OPTIONS="-r -m 0"b, 重启syslog服务2,客户端配置a, append in /etc/syslog.conf the following line user.* @192.168.0.254b, 重启syslog服务3, 测试logger -i -t yourname "This is a test"三,XOrg: The X11 Server1,配置在3运行级别下运行system-config-dis
rh131笔记---unit3-kernel services
需要了解的内容也就是一个udev[@more@]Optional sequence 2 : creating a file persistently under /dev/Scenario: you want to make sure the /dev/myusbdisk filename is available after a reboot and can be used to mount a usb device Deliverable : A system that provides /dev/myusbdisk automatically after a reboot.System setup system running in runlevel 5Instructions 1, modify the udev subsystem in such a way that /dev/myusbdisk gets automatically create at boot time.2, reboot the system Plug a sub key to
rh131笔记---unit2-package management
一,rpm package manager1,安装删除rpm -ivh kernel-version.arch.rpm 安装rpm -e kernel-oldversion 删除rpm -U 升级或安装rpm -F 只升级,如果软件包不存在,不安装。[@more@]2,查询rpm的查询命令rpm -qa list installed packagesrpm -qf filename shows owning packagerpm -qi nmap-3.70-1 显示包的信息rpm -ql nmap-3.70-1 显示这个包包含哪些文件如果系统中没有安装这个软件包,查询用如下命令:rpm -q
rh131笔记---unit1-system initialization
1,如果/dev/hda硬盘上的MBR损坏,重新安装grub/sbin/grub-install /dev/hda[@more@]2,grub.conf文件中可以创建MD5密码,创建方法:[root@ttonykorn97 ~]# grub-md5-crypt Password: Retype password: $1$3KBGX$MmawvUW6MdGW7EgW5isTK.[root@ttonykorn97 ~]# 3,显示运行级别与切换运行级别[root@ttonykorn97 ~]# runlevel N 5[root@ttonykorn97 ~]# init 3[root@ttonykorn97 ~]# runlevel 5 3[root@ttonykorn97 ~]# runlevel显示的第一个数字为上一次的运行级别,N表示没有。第二个数字表示当前的运行级别。init 后面跟数字切换到需要的
自动挂载u盘到根目录
想让u盘自动挂载到/目录下面的backup文件夹中,具体的操作步骤为:[@more@]1,修改/etc/auto.master 文件:增加下面一行:/- /etc/auto.direct具体例子为:[root@tonykorn97 /]# cat /etc/auto.master ## $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $## Sample auto.master file# This is an automounter map and it has the following format# key [ -mount-options-separated-by-comma ] location# For details of the format look at autofs(5).#/misc /etc/auto.misc/net -hosts/- /etc/auto.direct## Inc
redhat5 raw 的管理
在以前的redhat版本中,系统通过/etc/sysconfig/rawdevices配置raw的控制文件,通过/etc/init.d/rawdevices来管理raw设备的启动和关闭。[@more@]在redhat5中,raw文件的位置已经改变成/bin/raw,系统里面已经不存在/etc/sysconfig/rawdevices和/etc/init.d/rawdevices文件了,可以通过如下方法来管理raw文件。1,建立/etc/sysconfig/rawdevices文件,然后从其他操作系统上拷贝/etc/init.d/rawdevices到本地机,修改/etc/init.d/rawdevices文件中raw命令的具体位置,然后就可以通过/etc/init.d/rawdevices来启动和关闭raw文件了。2,上面的方
从CRT到LCD
跟了我5年多的BENQ 77g显示器终于不能承受长时间的负荷,几天以前已经不能使用了。今天购买了一台飞利浦 190SW8的液晶显示器。从此也进入LCD时代。 [@more@]对于跟了我5年多的benq 77g,我还是很感谢的!总体感觉这个牌子的质量中等吧,购买后过来3年多的时间只修了一次,虽然大家都说比较好的显示器应该用的时间更长一些,不过我也基本上还算满足吧,因为用他的时间确实比较长,另外就是显示器的外观还可以吧。 不过这个新的显示器就让我稍微有一些郁闷了,因为显示器的建议分辨率是1440×900,而我的老电脑
安装Foxmarks Bookmark Synchronizer
If you use Firefox on more than one computer, you'll want Foxmarks. Install Foxmarks on each computer, and it will work silently in the background to keep your bookmarks synchronized. You can also log in to my.foxmarks.com to manage your bookmarks from any computer.firefox通过书签-获取书签附加软件快速安装[@more@]
tar 命令一个比较有用的参数
在其他分区有一个tar的备份文件需要恢复到/目录,如果不用这个参数的话需要把tar文件拷贝到/目录下面然后解压,如果/目录的大小不够两个tar文件的大小(需要拷贝一次,解压一次),这个时候就比较麻烦了,用-c参数可以直接把文件解压到指定的目录:tar -xvf back.tar -C /把tar文件解压到/目录-C, --directory DIRchange to directory DIR[@more@]
linux find 命令!
一,basic find example1,find -name snow.pngsearch for files named snow.png in the current directory2,find -iname snow.pngcase-insensitive search for files named snow.png,Snow.png,SNOW.PNG, in the current directory[@more@]3,find / -name *.txtsearch for files anywhere on the system that end in .txt4,find /etc -name *pass*search ofr files in /etc/ that contaion pass in their name5,find /home -user joe -group joesearch ofr files owned by the user joe and the group joe in /home二,find and logical op
配置RAID/修复RAID详细文档,全程图文(附lsi raid 卡模拟器)
好东西呀!下载[@more@]
卡巴安全套件引起的SecureCRT的问题
SecureCRT 登录后过一段时间如果不操作界面就没有反应了,需要重新登录,很是麻烦,最后想了一下是把我的卡巴更新到7.0,安装的是kaspersky internet security。然后发现把卡巴的防火墙关闭掉就可以了。[@more@]
Informix 10 表的页大小超过限制
版本:IBM Informix Dynamic Server Version 10.00.UC4 一个表插入数据的时候显示:Could not insert new row into the table.[@more@]最后查得的结果是超过限制页:-bash-3.1$ oncheck -pt shop:saleTBLspace Report for shop:informix.sale Physical Address 9:21579911 Creation date 01/15/2007 14:05:55 TBLspace Flags 800801 Page Locking TBLspace use 4 bit bit-maps Maximum row size 103
安装oracle11g报错
[oracle@test database]$ ./runInstaller 正在启动 Oracle Universal Installer...检查临时空间: 必须大于 120 MB。 实际为 117329 MB 通过检查交换空间: 必须大于 150 MB。 实际为 1983 MB 通过检查监视器: 监视器配置至少必须显示 256 种颜色 >>> 无法使用命令 /usr/bin/xdpyinfo 自动检查显示器颜色。请检查是否设置了 DISPLAY 变量。 未通过 <<<<未通过某些要求检查。必须先满足这些要求, 然后才能继续安装,那时将重新检查这些要求。是否继续? (y/n) [n] y原因:当时是通过vnc登录的root,然后通
su: /bin/bash: Too many open files in system错误
切换到oracle的时候出错:[root@test ~]# su - oraclesu: /bin/bash: Too many open files in system[root@test ~]# [@more@]下面只说解决成功的过程[root@test ~]# cat /proc/sys/fs/file-max 512[root@test ~]#发现文件限制数太少查看/etc/sysctl.conf发现:fs.file-max = 512 * PROCESSES这个直接按照oracle的安装说明复制粘贴上去了,没有改动,修改为:kernel.sem=1055 32000 100 128kernel.shmmax=2147483648kernel.shmall = 2097152net.ipv4.tcp_sack = 0net.ipv4.tcp_timestamps = 0net.ipv4.conf.default.rp_filter = 0net.core.
dell 2900 远程管理卡的一个改动
公司新到一台dell 2900服务器,上面配置的有远程管理卡,不想在机房安装操作系统了,决定通过远程管理卡来安装,按照平时配置远程管理卡的Ip地址,然后打开虚拟介质界面,此时看到的连接状态是灰色的,如下图所示:[@more@]然后查看前端时间买的服务器,通过远程管理卡操作正常,这就说明也不可能是插件的原因引起的!后面找dell协助,最后查明原因是dell更新了远程管理卡的版本,里面有一些小的变动。原来的情况:在介质--配置--附件虚拟介质后面只是一个值,通过勾选来选择。现在的情况:在介质--配置--附件虚拟介质后面是3个选项,如下
地震等级强度
地球上的地震有强有弱。用来衡量地震强度大小的尺子有两把,一把叫地震震级;另一把叫地震烈度。举个例子来说,地震震级好象不同瓦数的日光灯,瓦数越高能量越大,震级越高。烈度好象屋子里受光亮的程度,对同一盏日光灯来说,距离日光灯的远近不同,各处受光的照射也不同,所以各地的烈度也不一样。[@more@]地震震级是衡量地震大小的一种度量。每一次地震只有一个震级。它是根据地震时释放能量的多少来划分的,震级可以通过地震仪器的记录计算出来,震级越高,释放的能量也越多。我国使用的的震级标准是国际通用震级标准,叫“里氏震级”