2007年2月27日 星期二

NTLDR missing

前言
NTLDR 是 NT Loader 的縮寫,也就是 NT 系統
(Windows NT/2000/XP) 開機所需的管理程式,
位在根目錄的一個隱藏檔。出現 NTLDR is missing
的原因很多,主要原因有:
  1. 安裝了無法開機(boot)的儲存裝置
  2. 使用 FAT32 檔案系統的 Windows 9x
    作業系統升級到 Windows XP
  3. 您的電腦有兩個開機系統
  4. 使用不良的的硬碟連接線
  5. NTLDR 毀損
而在此示範的問題,應該屬於第5項,而且嚴重到無法
以主控台修復

說明
為了能在現有的windows xp系統中,找出一個空間來安裝
Fedora Core 6

現有系統分割
C:4G(資料槽)
D:20G(安裝XP)
E:26G(資料槽)
F:30G(資料槽)

依照建議,安裝FC6的適當空間為6G,所以利用
Norton Partition Magic在不影響現在
系統、資料的狀況下,從D槽拿2G給C槽,重新分割,並將
C槽刪除,導致開機後遇到「NTLDR missing」以下提供
的「法一」+「法二」,僅能讓此狀況回復到,啟動電腦後,
可看到windows的載入畫面,連安全模式也無法進去。

後來利用先前以norton ghost9做的映像檔,在dos下
(用norton的光碟開機)重新restore D槽依然出現
NTLDR missing」,此時,利用「法一」即可順利解決
問題

-----------------------------------------------------------------------------------
法一
  • 用XP光碟開機,進入主控修復台
  • copy drive:\i386\ntldr c:\
  • copy drive:\i386\ntdetect.com c:\
    提示您是否覆寫檔案時,請輸入 y,然後按下 ENTER。
  • copy drive:\boot.ini c:\
    →此檔為開機必須檔,若鍵入指令 type boot.ini若出現
    「系統找不到指定的檔案或目錄」則需找一台可正常開
    機的電腦,複製此檔,再以光碟或磁片進行copy
    註:在windows的主控台回復模式中,並無可編輯文字
    檔的edit程式
  • fixboot
註:drive為光碟槽,若利用指令map,來找出光碟槽
-----------------------------------------------------------------------------------
法二
  • C:\Copy drive:\i386\ntldr c
  • CHKDSK /P
    →進行磁碟檢查
  • CHKDSK /R
    進行修復啟動磁區
  • 拿出光碟片,重開機
註:drive為光碟槽
-----------------------------------------------------------------------------------
可參考微軟文章
http://support.microsoft.com/default.aspx?scid=kb;zh-tw;318728
http://support.microsoft.com/kb/314058/zh-tw

或論壇文章
http://bb.stormer.com.tw/redirect.php?fid=1&tid=535&goto=nextnewset
-----------------------------------------------------------------------------------
結論
  1. windowsXP修復主控台模式,是一個很強大的修復工具,
    若善用Delete、copy指令,將可解決大部份的軟體問題
  2. Norton Partition Magic軟體,在不影響現在軟體環境情況
    下,提供分割硬碟及合併硬碟的功能,方便性很高,但建
    議在執行分割、合併前,先做好資料備份
-----------------------------------------------------------------------------------
註:Windows XP修復主控台的指令
(亦可在主控台下鍵入”help”,即可觀看所有指令的原文說明)

Attrib 變更檔案或目錄的屬性。
Batch 執行文字檔中指定的指令。
Bootcfg 開機檔案(boot.ini)設定及修復。
Chdir(Cd) 顯示目前目錄的名稱,或變更目前的目錄。
Chkdsk 檢查磁碟並顯示狀態報告。
Cls 清除螢幕。
Copy 將單一檔案複製到其它位置。
Delete(Del) 刪除一個或多個檔案。
Dir 顯示目錄中的檔案清單及子目錄。
Disable 停用系統服務或裝置驅動程式。
Diskpart 管理硬碟上的磁碟分割。
Enable 啟動或啟用系統服務或裝置驅動程式。
Exit結束[修復主控台]並重新啟動電腦。
Expand 從壓縮檔案中解壓縮檔案。
Fixboot 寫入新的磁碟分割開機磁扇區到指定的磁碟分割。
Fixmbr 修復指定磁碟的主要開機記錄。
format 格式化磁碟。
Help 顯示[修復主控台]中您可以使用的指令清單。
Listsvc 列出電腦上可供使用的服務及驅動程式。
Logon登入Windows安裝。
Map 顯示磁碟機代號對應。
Mkdir(Md) 建立目錄。
More 顯示文字檔。
Netuse 為網路共用指定一個磁碟機代號。
Rename(Ren) 重新命名單一檔案。
Rmdir(Rd) 刪除目錄。
Set 顯示及設定環境變數。
Systemroot 將目前的目錄設定為目前登入之系統的systemroot目錄。
Type 顯示文字檔。

2007年2月21日 星期三

刪除Linux後如何進入win

刪除linux後如何進入windows

若安裝linux時,選擇使用GRUP開機管理程式,並將其安裝在MBR裡,
刪除Linux分割區後,由於其/boot的相關檔案已被刪除,所以只會出現
一行提示字元:
grup>

此時,可用下列方式開機進入windows

grup>rootnoverify (hd0,0) →指定win分割區為第1台硬碟的第1個分割區
grup>chainloader +1→讀取第1個磁區中的開機程式
grup>makeactive→設定可開機
grup>boot →以此指令開機

2007年2月19日 星期一

將登入的使用者踢出系統

-------------------------------------------------------------------------
將登入的使用者踢出系統
  1. who //查看目前在系統中的使用者
    並查出「終端機代號」
  2. ps aux | grep pts/0
    查詢pts/0終端機正在執行中的所有程序,
    pts/0,可自已修改為相對應的「終端機代號」
  3. 找到最小的PID編號
  4. 執行kill -9 PID編號→強制刪除
如下:

2007年2月9日 星期五

安裝與啟動FTP Server on FC6

前言
由於之前Linux發行的版本,大都採用Wu-FTPD,但安全漏洞卻層出不窮
FC6內附的套件為VSFTPD,主要標榜安全與效能以下提供文字畫面安裝
方法。

1.檢查是否安裝VSFTPD
[root@localhost ~]# rpm -qa | grep vsftpd

2.從光碟安裝
[root@localhost ~]# mount /dev/cdrom /media →掛載光碟
[root@localhost ~]# cd /media/RPMS/ →切換到放置RPM檔案的目錄
[root@localhost RPMS]# rpm -ivh vsftpd-2.0.5-8.i386.rpm →安裝VSFTPD套件

3.啟動VSFTPD
[root@localhost ~]#/etc/rc.d/init.d/vsftpd start

4.登入FTP
[root@localhost ~]# ftp 192.168.0.73

註:此範例的IP位址
Server端:192.168.0.73
Client端:192.168.0.170


以下為完整過程(按圖可放大)

2007年2月8日 星期四

以圖示(捷徑)啟動軟體on FC6

前言:
在Windows上安裝程式後,都會在桌面或程式集
等處產生圖示(捷徑),當使用者按下去,即可執
行程式。

而在FC6上,安裝完套件後,並不會產生任何捷徑圖示
,需經由主控台下達指令,但我們可透過「新增啟動圖示」
來達到相同目的

以下示範新增wireshark程式捷徑(圖示)的方法:
在桌面按右鍵→新增啟動圖示→
欄位依下填入:
  1. 名稱:wireshark(可依喜好自行設定)
  2. 指令:wireshark(在文字模式下或主控台下輸入執行的指令)
  3. 沒有圖示:可搜尋自行喜歡的圖示
最後,按下確定即可

參考圖如下:

2007年2月6日 星期二

Butterfly keyboard 名詞解釋

原文網址:
http://en.wikipedia.org/wiki/IBM_ThinkPad_Butterfly_keyboard

IBM ThinkPad Butterfly keyboard
IBM ThinkPad 蝶型鍵盤

The TrackWrite™, also known as the butterfly keyboard, is a foldout laptop computer keyboard designed by IBM for the ThinkPad 701 series, released in 1995. It allowed the 701 series to be both compact (when closed) and comfortable to use (when open), despite being just 24.6 cm (9.7 in) wide with a 26.4 cm (10.4 in) VGA LCD. However, as later laptop models featured progressively larger screens, the need for a folding keyboard was eliminated; consequently, no model but the 701 utilized the butterfly keyboard.

IBM註冊的商標TrackWrite,也就是大家所知道的「蝶型鍵盤」(原文:butterfly keyboard)
在1995發表的IBM折疊式膝上型電腦,ThinkPad 701系列,它具備兩項特點,即收起來的時候外型更輕巧而且在打開使用時更舒適,儘管配備寬度為24.6 公分 (9.7 英吋)的機身和寬26.4公分(10.4 英吋)的液晶瑩幕.然而後來的膝上型電腦,逐漸具備大螢幕,不再需要折疊型的鍵盤,因此,只有701系列採用這項名為「蝶型鍵盤」的技術。


The butterfly keyboard is split into two roughly triangular pieces that slide as the laptop's lid is opened or closed. As the lid is opened both pieces slide out to the sides, followed by one piece sliding downward. The two halves mesh like jigsaw puzzle pieces to form a keyboard 29.2 cm (11.5 in) wide which overhangs the sides of the laptop body. Conversely, as the lid is closed one piece slides back, then both slide inward until the keyboard can be covered by the lid. The movement of the keyboard is driven by a cam on the lid's hinge, so the motions of the keyboard parts are always synchronized with the movement of the lid.

The unusual design is being displayed in the design collection of the Museum of Modern Art in Manhattan, New York.

所謂的「蝶型鍵盤」即是將較大的鍵盤分割成兩個很像三角型的小鍵盤,並且在電腦蓋子打開、關上時,籍由滑動來重新組合。
當蓋子打開時,兩個小鍵盤會向兩邊滑動,接著,一個小鍵盤再向下滑動,兩個小鍵盤就像「拼圖」一樣的重新組合成一個寬29.2公分(11.5英吋)的鍵盤並且超出電腦的機身。相反的,當蓋子合上時,一個小鍵盤會向(上)後滑動,接著兩個小鍵盤再滑向內側,直到電腦可以蓋上。整個動作是籍由安裝在電腦蓋子上的齒輪樞紐來驅動,所以,當電腦打開時,這整個動作(蝶型鍵盤的開合)永遠會同時執行。

這個相當特別的設計已經被展示在紐約曼哈頓的現代藝術博物館裡。

2007年2月4日 星期日

在天堂遇見的五個人

維修先生
艾迪是一個遊藥廠的工人
曾參與2次世界大戰
跛了一隻腳
80幾歲

印深蠻深的句子:
。如果世界是公平的,那好人就不會死了
。犧牲沒有什麼了不起,媽媽為了孩子工作是正常的
 犧牲是把東西傳承給另一個人

1.藍膚人
 他的死是因為艾迪小時候玩棒球丟到路中,安迪撿回去了,
 藍膚人卻為閃躲艾迪,驚嚇過度,心臟血管疾病復發而死
2.小隊長
 在二次大戰前線,安迪的小隊,準備逃走時,遇到一條陌生的路
 小隊長,跳下去探路,在前方誤採地雷而亡
3.露比
 遊樂場,露比碼頭,很久前,先生為露比蓋的遊藥場,用她的名子來命名
 
4.瑪格麗特(老婆)

5.塔拉
 艾迪在和小隊在,逃亡時,放火燒小屋,誤燒死的小女孩,當時艾迪想跑進去救她
 可是跑進去也會死,小隊長於是開槍打傷他的蹆,硬把艾迪帶走,這也是艾迪跛腳的原因
 也是小隊長承諾不會放棄任何一個兄弟的實現

艾迪死於遊樂場裡,他為了救一個小女生,只是,他死了後,也不知道是否有救到
好像是有。

2007年2月2日 星期五

文章:Classic Laptops (英翻中)

原文網址:
http://www.pcmag.com/article2/0,1759,1627769,00.asp


Top Ten List: Classic Laptops [最新的十篇文章:典型的膝上輕便電腦]

Once in a while it's good to remember the computer classics, in order to see how far we've come in making these devices more fun and more useful. I'm going to illustrate the utility of this by citing what I believe are some of the great products of yesterday. Readers are invited to toss in other suggestions or weigh in with their own top 10 lists.

有時候,去記得舊規格的電腦是好的,為了能去看見這些設備在市場上
有更多的娛樂、功能,我將引用以前我覺得很棒的產品來說明這些設備的實用性.被邀請的讀者將提出自已的意見或自已認為是前十名的電腦。

I'll begin with a list of what I believe to be the top 10 laptop or notebook computers. I am specifically referring to portable, battery-operated laptop/notebook computers. These criteria call for leaving out the famous GriD Computer of the early 1980s and various plug-in Toshiba machines, although those did influence future designs:

我將開始描述我認為能成為前十名膝上型電腦的名單,我將特別重視膝上型電腦的可攜性和電池運轉狀況,這些標準是要省去1980年代稍早注名的GriD computer和提供各式外接電源的Toshiba機型,儘管之前做的事情足以影響未來的設計


The Top 10 Classic Laptops (排名前十名的膝上型電腦)

10. TRS-80 Model 100 (1983). This machine would be higher on the list if future computers had emulated its shape, but its influence on the market was unmistakable. It was probably the first machine to be used widely by professional writers. This was a small single-piece unit with an eight-line monochrome LCD. It was derived from the NEC-8201, which was not seriously marketed in the USA.

第10名。1983年代的TRS-80 Model 100,
如果未來的機型努力趕上它的外型,則此機型的排名可能更後面
在市場上,它的影響是明顯的,它可能是第1台擁有手寫辨識功能的機
而且擁有8行黑白顯示的LCD,卻有相當輕巧的外型
它的設計理念源自於在美國銷售狀況不佳的NEC-820機型


9. Toshiba T-1000 (1987). Listed for its popularity and price. A well-made monochrome unit that pushed in the lightweight ( 3.5kg) direction.

第9名。1987年代的Toshiba T-1000,
上榜的主要原因是因為他的價格及市場反應相當熱烈、普及
此機型,具備一個相當高品質的黑白顯示器,及主流的輕巧的機身(3.5kg)


8. Zenith laptops. By today's standards, these laptops were heavy clunkers, but in their day they were stylish and trendy. They set the stage for today's clamshell designs. These machines dominated the scene in the late 1980s.

第8名。最好的膝上型電腦,過去的膝上型電腦在今日而言,可能是破爛的重機械,不值一文,但是在過去,它們代表流型、時尚,然而在1980年代的主流膝上型電腦,卻成為今天設計膝上型電腦的借鏡、規範。


7. The first HP laptop (1984). This $3,000 unit was one of the most ambitious offerings ever produced by HP. Ahead of its time in every way, it also had Lotus 1-2-3 bundled into the ROM on the machine, making it very fast to work with. Curiously, this laptop/portable unit is no longer listed on HP's corporate-history timeline. One also has to note the HP-75 series (1982), which others consider as the first HP laptops.

第7名。1984年代,HP生產第一台膝上型電腦,這台價值3000美元的機型,是HP最高階的產品,在當時,也居於領導地位。為了能讓Lotus 1-2-3這套試算表文書處理軟體運作速度更快,就將它內建在ROM。很奇怪的一點是,這機型,竟然沒有記載在HP公司的歷史進化表上,反而是1982年代的HP-75機型有記載,所以有些人懷疑是否HP-75才是HP所發展的第1台膝上型電腦。


6. IBM 5140 Convertible (1986). Selling for a reasonable $1,975, this machine triggered more interest in lightweight machines only because it was from IBM. In fact, it was not a true laptop. It was something of a clunker, especially when docked with its printer.

第6名。1986年代的IBM 5140 Convertible,美金$1,975,的合理價位,這機型能在這輕便型的膝上型電腦的市場中引起注意,唯一的原因就是因為它是IBM製造的,事實上,
它並非一台真正的膝上型電腦,特別是它接上印表機的時候,倒是有點像台破爛的重機械。


5. Poquet (1991-1992). The first real example of a super-small full-featured computer, an amazing unit ahead of its time. Atari followed with its Portfolio. This shape never got much further than those two models, which have evolved into the Palm and other more modern machines.

第5名。1991-1992年代的Poquet。
第一台真正超小、功能齊備的電腦,這個迷人的小東西在當時,是由Atari公司投資生產的,它的輕巧外型經過改進後,成為今日的Palm或是其它更時尚、輕巧的機型。


4. Toshiba Porteges. For a number of years Toshiba dominated the laptop arena with a line of ambitious lightweight units called Porteges. This line became so important that Toshiba continues the brand to this day.

第5名。Toshiba Porteges。多年來Toshiba籍著Porteges產品線,在膝上型電腦的市場中競爭,今天Toshiba能在膝上型電腦代表著品牌,也是因為Porteges。

3. IBM ThinkPads (1992-present). I'm grouping these together as one, since nearly every one since the original was a classic. Only the odd units with a "butterfly" keyboard were dubious. Nearly all the rest were huge successes that catapulted IBM to the top in laptop design and popularity.


第3名。1992年發表的IBM ThinkPads,
我本身也是此機型的愛用者之一,直到今天,每個人都還使用IBM的典型機型,除了有一個小小的改變,就是稱為"butterfly" 的鍵,比較受到質疑外,
IBM ThinkPads依然成功的帶領IBM在膝上型電腦市場的建構、大眾化


2. Texas Instruments LT286/CompuAdd Companion (circa 1990). The first modern superlightweight machines. I consider them to be among the most important computers ever built, as they initiated the true ultra-lightweight movement in an era where people were demanding that floppy-disk drives be in the machine. These were hard-disk notebook-style machines before anyone had imagined that this would be the permanent direction of the future. Fabulous for their era.

第2名,大約在1990年代的美國德州儀器發表的LT286/CompuAdd覆合機型
這個先進的超輕巧機型,它內建現在使用的極輕巧磁碟機和硬碟機,我認為它是過去電腦的發展中,最重要的一點,出人意料的,具備硬碟的機型在未來還會繼續存在,

1. The NEC Ultralite (1989). This is the classic that set the stage for everything that came after. The original Ultralite still has features that we'll probably see again someday, such as silicon-based mass storage rather than a hard disk. This was probably the classiest machine you could use in its day. It remains, at least in my thinking, the machine that forever changed portable computing.

第1名。1989年代的NEC Ultralite。
這款機型,成為後來任何產品的典型,這款 Ultralite 有些特點,在未來我們仍然可以看見,像是以大量矽基儲存體取代硬碟,你可能在未來的日子裡使用到,最後,
我認為這款機型,將會永久改變可攜式計算機


What has consistently interested me until this day was the length of time that it took to finally get these machines right. All of today's laptops owe a debt to these classics.

一直以來,讓我感興趣的就是時間,因為時間會讓機器不斷的演化,直到符合所有需求我認為,所有今天的膝上型電腦,都改良、借鏡於以上十款機種。

Windows與Fedora的檔案共享

Samba簡介
為了使Windows主機間的資源能共享,IBM於1980年代發展
SMB(Server Message Block)通訊協定。而微軟籍由SMB通訊
協定使得網路芳鄰間的檔案、印表機能夠彼此分享。
後來熱心人士開始在Linux主機上實現SMB通訊協定,實做出來,
即為Samba。


安裝Samba
Samba共有四個套件,可執行以下指令確定是否有安裝
[root@localhost ~]# rpm -qa | grep samba
system-config-samba-1.2.35-1.1
→Samba的圖形介面管理程式
samba-client-3.0.23c-2 →Samba用戶端程式
samba-3.0.23c-2 →Samba必備程式
samba-common-3.0.23c-2 →Samba伺服端程式

若未安裝可用Fedora Core 6 DVD光碟依照以下步驟安裝
[root@localhost tmp]#mount /dev/cdrom /media →掛載光碟
[root@localhost tmp]#cd /media/Fedora/RPMS/
→切換到放置rpm檔的目錄
[root@localhost RPMS]#rpm -ivh samba*.rpm
→安裝samba相關程式套件
[root@localhost RPMS]#cd →切換家目錄
[root@localhost ~]#eject →退片

或是在視窗模式下
應用程式→新增/移除軟體→伺服器→選取Windows檔案伺服器
→套用(需確定系統有連上網路,因為系統會自行下載套件)

安裝好就可以啟動,但Samba預設無法讓所有使用者登入
所以啟動之前要先修改Samba的設定檔
以下示範分享 /tmp,讓所有使用者皆可存取,如下:
[root@localhost ~]vi /etc/samba/smb.conf
...
workgroup = workgroup
→指定Samba所在的工作群組,預設為MYGROUP,可自行修改
...
security = share
→Samba安全等級,預設為User,改成share,如此將不用密碼驗證即可登入samba
...
;local master = no
→若上述workgroup設定的群組,並非已存在的群組
需刪除此行前的註解符號「;」,並將設定值由no更改為yes
如此,新的工作群組,才能在windows下正常顯示
...
→以下這幾行都有加註解符號「;」,需移除,即可分享 /tmp目錄
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
...


設定完成後,可用testparm檢查smb.conf的正確性,如下
[root@localhost ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
→按Enter會列出smb.conf的所有設定值


若出現以下錯誤
params.c:Parameter() - Ignoring badly formed line in configuration file:M
→表示在修改/etc/samba/smb.conf 此檔時,誤鍵入1個M字母


設定完成後,即可啟動samba伺服器,以下提供兩種啟動的方法
[root@localhost tmp]# /etc/rc.d/init.d/smb start
正在啟動 SMB 服務: [ 確定 ]
正在啟動 NMB 服務: [ 確定 ]

[root@localhost tmp]# service smb start
正在啟動 SMB 服務: [ 確定 ]
正在啟動 NMB 服務: [ 確定 ]



如何確定我們的 Samba 設定與服務有順利的在運作, 可在本機上透過
smbclient 這支程式來處理,他的基本語法是這樣:
smbclient -L //127.0.0.1 ,以下為實際畫面(按圖可放大)

現在,可在Windows的網路芳鄰看到 tmp資料夾了,如下:(按圖可放大)











附註:/etc/rc.d/init.d/smb 的其它參數
/etc/rc.d/init.d/smb restart →重新啟動Samba
/etc/rc.d/init.d/smb reload →重新載入Samba設定檔
/etc/rc.d/init.d/smb stop →停止執行Samba
/etc/rc.d/init.d/smb →檢視Samba目前執行狀態