|
如何编辑BOOT.INI文件,这个论坛回复不能全英文
+ [2 ?# W& u, b( h' q- Z
7 [6 v: B+ c+ t) c: F- j& H! t# IThis article describes how to view and manually configure the Boot.ini file in Windows XP from within the Startup and Recovery dialog. \1 u, j2 T4 a. y7 t" ?" R6 X
+ n. d6 A3 X( n; l0 G: _
In Windows XP, you can quickly and easily locate the Boot.ini to verify and/or edit the file.3 o2 _8 ~6 }; V* D7 B
- Z: m; C' z9 }: X. C NIt 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.
5 H# j) D8 ] S: h+ c# y r& T7 t* }% D9 Y) C% F
1 N e) A' }7 M' V; z( f' G( M7 o! t( |, D# d( \/ A, o8 `' T
Back to the top2 V m5 U! t; E. u' d. H9 V4 Z
Save a Backup Copy of Boot.ini- Right-click My Computer, and then click Properties. -or- 2 _, _8 Z; S: C2 f
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.
$ I; {" s$ p0 q% H3 X3 F( v
6 U T& w, B, p' D6 W
Back to the top
9 J' n$ u6 Z5 B1 |Edit the Boot.ini FileTo view and edit the Boot.ini file: - Right-click My Computer, and then click Properties. -or- ! U: F+ A1 r& B3 r
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.
7 U6 R4 M z+ B- s2 J( |$ [4 B1 V) m$ y7 }
Back to the top4 {5 H( @) U, t
Sample Boot.ini FileThis is a sample of a default Boot.ini file from a Windows XP Professional computer. [boot loader]" k# C6 a# Y6 B/ H/ k9 Y" ?5 m/ y1 n
timeout=30
" h4 D. g9 Z/ `% b2 }! i8 d$ Bdefault=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
' ? ~7 s% M, M: V[operating systems]$ _/ X0 L' X( n$ s6 \& L
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
1 Q) l: |+ K0 K; _$ FThis is a sample of the above Boot.ini file with a previous installation of Windows 2000 on a separate partition. [boot loader]7 m. _& h7 c/ x7 j* Q1 s
timeout=30
, N3 E' Z0 _* v6 Wdefault=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
# V2 Z4 `. I; k. V1 c" i1 T6 |[operating systems]
# n. C6 ]% ~& ? Cmulti(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Professional" /fastdetect6 I' i+ f7 _/ V* |- I
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows 2000 Professional" /fastdetect $ Y, ~) Q/ @' _& x0 G
7 A, [4 a& l0 B5 q6 L4 m( b& }& z
; r, O* q$ x6 ~1 O6 S7 d1 g
Back to the top+ d, j7 Q) {7 m1 B0 ]2 U
Modifying 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.
! h8 m, g$ O1 b5 t% l4 T
9 |; s5 d @; p' p! ONote 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.
1 V1 h. l2 i- k' o. l! V; F; B/ {4 d( Y% F
Adding an Operating SystemAt the command prompt, type: bootcfg /copy /d Operating System Description /ID#
3 }1 }6 t6 \5 U8 bWhere 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.& v- G4 z1 B, W% U8 Z# }
# ?3 {) F# l0 K# h
$ P: `" U+ u' w! i
9 |/ D- J2 U9 d5 e: PRemoving an Operating SystemAt the command prompt, type: bootcfg /delete /ID#6 ` Y. m1 Z" [% A* m* B6 Z, B
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.
' H) j: }. J& F V" |: x5 B( U4 n9 e) \: g+ O
8 [, Y" f- \6 E% o% Q6 e! V: w, {) G, b+ O: ^* N5 j ^
Setting the Default Operating SystemAt the command prompt, type: bootcfg /default /ID#
4 n$ R) ^3 t& A/ b7 X cWhere # specifies the boot entry id in the operating systems section of the BOOT.INI file to be made the default operating system.3 F, ~$ b& v$ B7 a" B! [7 T5 ~5 J( C* j
H" \" [0 g6 k2 b) Z' D3 K8 m; g6 }8 c# Q" X
" e; E2 Q! Q" F( _' Z" v2 S* |
Setting the Time OutAt the command prompt, type: bootcfg /timeout# Where # specifies the time in seconds after which default operating system will be loaded.* X% R3 H% ~7 T& E
; Z$ j2 K3 |/ Q) d0 Q6 T: r
& o( T9 f! k. Z; d1 m, P
2 E6 x2 {" Y& n- I9 w0 O7 UBack to the top* W7 @0 ?0 d1 a; A' e. A) J' h
Open the Boot.ini File to Verify Changes- Right-click My Computer, and then click Properties. -or- : |. n! a0 Q/ R/ t" d; X# D4 Y
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.
+ H# e- P( T/ d7 D4 @, ?
+ P; Y( O' j! B- \* N2 L* }
: Q- A0 \# I# X( V2 h- u5 ~( ? _3 z- \, S+ ?' R& C0 \; a
Back to the top |
|