歡迎您光臨本站 註冊首頁

linux使用經驗

←手機掃碼閱讀     火星人 @ 2014-03-23 , reply:0

真沒想到安裝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

[火星人 ] linux使用經驗已經有356次圍觀

http://coctec.com/docs/linux/show-post-117606.html