|
如何编辑BOOT.INI文件,这个论坛回复不能全英文) }0 Q& K, O& p
9 F# ?; ?$ B, v# @6 V, XThis article describes how to view and manually configure the Boot.ini file in Windows XP from within the Startup and Recovery dialog.
& M1 w4 H' v* x# [$ p w `, H6 F! S' e& m4 D6 ]% s V! |
In Windows XP, you can quickly and easily locate the Boot.ini to verify and/or edit the file.7 h2 s/ A8 O( \, B" G
' J# {; S8 }# I7 s
It is suggested to backup the Boot.ini file before editing. The first tasks will involve modifying folder option so as to view hidden files and then backing up the Boot.ini file.8 ?3 w9 m2 k/ t$ ^5 U
3 |1 i- t/ M. R; _& k) E; D
! E$ j. o) b e# {- Q! Y. t5 H( v
+ m6 C) a+ o; X8 {5 zBack to the top a8 r: l9 S8 K- p4 g
Save a Backup Copy of Boot.ini- Right-click My Computer, and then click Properties. -or- / y) n! e9 K/ @( }$ J1 A* C
Click Start, click Run, type sysdm.cpl, and then click OK. - On the Advanced tab, click Settings under Startup and Recovery.
- Under System Startup, click Edit. This opens the file in Notepad ready for editing.
- In Notepad, click File on the Menu bar, and then click Save As.
- Right click in an empty area of the Save As dialog box, point to New in the context menu, and then click Folder.
- Type a name for the new folder, for example temp, and then press the ENTER key to create the folder named temp.
- Double-click the new folder named temp, and then click the Save button to save a backup copy of the Boot.ini file.
; R. O* E8 w4 j8 [& V
3 J' D) @6 k& c5 [
Back to the top8 _3 D K/ e; b& Z0 ^* ^
Edit the Boot.ini FileTo view and edit the Boot.ini file: - Right-click My Computer, and then click Properties. -or-
& r9 q) g" c4 D) K4 kClick Start, click Run, type sysdm.cpl, and then click OK. - On the Advanced tab, click Settings under Startup and Recovery.
- Under System Startup, click Edit.
) G8 U% J7 V' `( b9 p1 u
: o3 G0 j- K" H2 H4 J0 u& x
Back to the top) e: F! E" O$ l% z) @
Sample Boot.ini FileThis is a sample of a default Boot.ini file from a Windows XP Professional computer. [boot loader]
& i- h. @4 q! g+ X8 rtimeout=30
; X/ E' v- u. L4 adefault=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS& X, ]9 K% t( n0 m
[operating systems]
8 A& i' c% ^$ Qmulti(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect 7 w2 ~) i& D- q% _% r% s- G W
This is a sample of the above Boot.ini file with a previous installation of Windows 2000 on a separate partition. [boot loader]
9 i" {9 r/ w& Y$ i( _timeout=30) O7 S7 L& Y$ G* Z! T
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
/ U& P0 u! J0 T5 _& G4 |[operating systems]- m# i) x. z& y2 D: q
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Professional" /fastdetect C4 p" e$ E6 v* u1 d5 G0 p
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows 2000 Professional" /fastdetect - u! G V4 m$ m1 C U/ |
) k8 s( p' \: ^/ c
9 E2 k6 q/ V6 u& B6 `$ O& JBack to the top
( o1 H# b9 X8 R9 a* I) J2 \7 B) ?" YModifying the Boot.iniWhile you can modify the Boot.ini file using the Startup and Recovery dialog, where you can select the default operating system, change the timeout value, or manually edit the file, the following method uses the command line utility, Bootcfg.exe.
7 g" o1 H+ j8 B2 C X" ?% S, g: C5 V" T' K% g$ }$ d
Note The Bootcfg.exe utility is only available in Windows XP Professional. This utility is not available in Microsoft Windows XP Home Edition. Therefore, this section does not apply to Windows XP Home Edition. - Click Start, and then click Run.
- In the Open text box, type cmd.
- At the command prompt, type bootcfg /?.
- The help and parameters for BOOTCFG.exe will display.
0 W5 U5 I" ^% f9 q2 b
1 }% h6 r6 t( c3 j' y- b1 zAdding an Operating SystemAt the command prompt, type: bootcfg /copy /d Operating System Description /ID#
+ _. h, [) C4 J& mWhere Operating System Description is a text description (e.g. Windows XP Home Edition), and where # specifies the boot entry ID in the operating systems section of the BOOT.INI file from which the copy has to be made.
3 p- r9 P; P: @% d
7 @. o" q r- m7 w# |: q
& @ D9 x7 A% R q& p: r# y7 T5 S4 V! Y5 s
Removing an Operating SystemAt the command prompt, type: bootcfg /delete /ID#% s/ z$ H% ~+ Z3 @7 t( e5 f9 s/ G
Where # specifies the boot entry ID that you want to be deleted from the operating systems section of the BOOT.INI file (e.g. 2 for the second Operating system that is listed.8 x$ K/ a7 J2 P. I6 X
* f5 W6 Z2 g7 p2 l$ F
! J$ Y0 ?% C7 `2 Y @
+ h/ W0 ~: E" A6 U3 v2 {; g1 r4 o% F1 e0 P
Setting the Default Operating SystemAt the command prompt, type: bootcfg /default /ID#0 @8 ~5 y4 R: q& T
Where # specifies the boot entry id in the operating systems section of the BOOT.INI file to be made the default operating system.
6 R+ K6 a2 O9 E0 w9 n b6 c$ s: ~: Y2 |
) I* L3 w$ ]! t5 D4 e( n8 H& f$ t3 P8 ~
Setting the Time OutAt the command prompt, type: bootcfg /timeout# Where # specifies the time in seconds after which default operating system will be loaded.2 u8 p( |8 U: ?
' z# l- @4 b- b$ n2 }2 x! p' ]' {
* q1 t2 e, P: E
' ?5 g; Y# ^+ i1 Q8 jBack to the top
: M/ e% ^, f: R, OOpen the Boot.ini File to Verify Changes- Right-click My Computer, and then click Properties. -or-
" T* A3 ?0 l" \3 e1 S' b0 CClick Start, click Run, type sysdm.cpl, and then click OK. - On the Advanced tab, click Settings under Startup and Recovery.
- Under System Startup, click Edit.
1 W0 }* ^: a& M, [9 L+ Z
9 z3 @, h3 r% H7 {% g8 J4 r5 h2 ?) a
4 W U' y/ F+ J0 A R
Back to the top |
|