真没想到安装linux后会出现windows2000无法启动,还好修复成功了.通过了几种方法,今天终于解决了.
出错信息:
Booting other
root noverify (hd1,0)
chain loader +
NTLDR is missing
press any key to restart
(失败)解决方法:
1.上网查看解决方法,用i386里的ntLDR拷贝到c:\下
(成功)解决方法
2.修改linux系统/boot/grub/grub.conf文件,
将rootnoverify (hd1,0)更改为rootnoverify (hd0,0) o k
本例中主要是因为我有两块硬盘,安装linux的时候系统的grub.conf文件将windows启动标志写为hd1,0了,而实际上我的windows系统是在hd0,0.之前还以为是ntldr的问题,搞得我做了一次2000的修复.
查看硬盘信息命令为fdisk -l
[root@blue /]# fdisk -l
Disk /dev/hdb: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 2672 21462808+ c W95 FAT32 (LBA)
/dev/hdb3 2673 9733 56717482+ f W95 Ext'd (LBA)
/dev/hdb5 2673 5222 20482843+ b W95 FAT32
/dev/hdb6 5223 9733 36234576 7 HPFS/NTFS
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ c W95 FAT32 (LBA)
/dev/sda2 2551 19457 135805477+ f W95 Ext'd (LBA)
/dev/sda5 2551 15633 105088693+ 7 HPFS/NTFS
/dev/sda6 15634 15894 2096451 83 Linux
/dev/sda7 15895 17199 10482381 83 Linux
/dev/sda8 17200 18243 8385898+ 83 Linux
/dev/sda9 18244 18308 522081 82 Linux swap
/dev/sda10 18309 19457 9229311 83 Linux
解决五笔输入问题
在网上搜了两天才把fcitx的问题给解决了,真的是有点bb,不过总算解决了.
解决的办法如下
安装五笔Fcitx──小企鹅输入法,http://www.fcitx.org
1)下载rpm 包的fcitx3.0
2)查询已经存在的输入法
[root@localhost root]# rpm -q miniChinput
miniChinput-0.0.3-37
[root@localhost root]# rpm -q xcin
xcin-2.5.3.pre3-11
删除这2种输入法后再安装fcitx-3.0.0-1.i386.rpm
[root@localhost root]# rpm -e miniChinput
[root@localhost root]# rpm -e xcin
3)安装fcitx3.0
#rpm -ivh fcitx-3.0.0-1.i386.rpm
4)新建文件
在/etc/X11/xinit/xinput.d下建一个fcitx的文件
XIM=fcitx
XIM_PROGRAM=fcitx
GTK_IM_MODULE=xim
**
#alternatives --install /etc/X11/xinit/xinput.d/zh_CN xinput-zh_CN /etc/X11/xinit/xinput.d/fcitx 100
#alternatives --auto xinput-zh_CN
5) 修改文件.bashrc
[root@blue ~]# vi /root/.bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export LC_ALL=zh_CN.UTF-8
export LANG=zh_CN.UTF-8
export XMODIFIERS=@im=fcitx
export XIM=fcitx
export XIM_PROGRAM=fcitx
6)进入图形界面的""应用程序"--系统设置--输入法转换程序(system-switch-imii)
这里会新增一个fcitx的输入法.如果没有就在高级设置里头手工输入一下fcitx
7)init 6重新启动一下就可以了.
1) find命令的使用例
#find ./ -name amir.dd
注释:在当前目录中查找amir.dd的文件,如果找到会输出该文件的目录及文件名,如果没找到则直接回车到下一行,没有任何输出
2) 查22端口现在运行在什么程序,本例中22运行了ssh程序
[root@blue bin]# lsof -i :22
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sshd 2313 root 3u IPv6 5269 TCP *:ssh (LISTEN)
3) netstat命令查看gateway
[root@blue network-scripts]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.44.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.44.16.36 0.0.0.0 UG 0 0 0 eth0
4)mount 局域网上其他的windows共享目录
mount -t smbfs -o username=guest,password=guest //10.44.16.49/新建文件夹 /d