|
如何编辑BOOT.INI文件,这个论坛回复不能全英文
9 D( z4 |2 ^! z/ `1 o3 a+ \$ d7 M: R) E k4 z; p/ I+ K5 ?0 b2 `
This article describes how to view and manually configure the Boot.ini file in Windows XP from within the Startup and Recovery dialog.
7 G! x+ r% t( n
1 T& Q4 J9 ?/ I) _+ X4 jIn Windows XP, you can quickly and easily locate the Boot.ini to verify and/or edit the file.: G& Q0 a$ g+ w; e i! i
3 `! j# [* f7 ]; _- x# o
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.1 J$ e7 Z- V( W# F! L X
) [; }" T+ p+ Q$ A
2 P, j/ N. J3 d+ |
% W5 z5 Q, @& N: f. Z1 u1 r, aBack to the top5 L7 P+ O1 v3 R7 Q; i' H, s
Save a Backup Copy of Boot.ini- Right-click My Computer, and then click Properties. -or-
8 V" h. I9 g4 u8 Z6 u. k3 S( 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. 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.
) p9 C& q5 B+ T4 c- t4 i
( q& B/ s+ o& J" G+ @) hBack to the top* o4 X0 v& _( `7 A, x
Edit the Boot.ini FileTo view and edit the Boot.ini file: - Right-click My Computer, and then click Properties. -or- ! ]0 P4 J7 z: j7 \( l
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.
+ W! Q) ~" \9 x
# L2 O3 n2 z6 G5 ?# gBack to the top
6 H/ s( r N$ w+ ^( @Sample Boot.ini FileThis is a sample of a default Boot.ini file from a Windows XP Professional computer. [boot loader]8 D2 ^2 W* O& |$ j
timeout=30
2 G9 V- B+ f+ N" S5 Tdefault=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
$ w* ^% Q4 B* v2 Q: B9 @0 z[operating systems]
0 T, g0 [8 E3 j8 d7 b! l- cmulti(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
& v$ `& O' a% q1 KThis is a sample of the above Boot.ini file with a previous installation of Windows 2000 on a separate partition. [boot loader]6 V* B0 x; c, b; G. j" r: g
timeout=30
+ G' H: h0 x4 I6 u5 z `& T4 ldefault=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS/ I+ V9 ] S y7 l2 z0 S
[operating systems]0 B! g* F) d; i/ g
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Professional" /fastdetect
0 D" c* [$ J* S4 n% bmulti(0)disk(0)rdisk(0)partition(2)\WINNT="Windows 2000 Professional" /fastdetect
& f% j2 f) t+ n5 R0 k- j* P# `. j6 a: t5 t, y$ F
: z+ E0 a4 w2 e* Z7 KBack to the top; s4 ]( S! }+ |# W: [8 D; V) B5 D
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.
8 h8 N/ a0 e9 x7 R# K9 n& P2 p+ V/ O/ y$ G1 G2 h1 u
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.
+ Y+ ^- `/ G9 b" z8 d
) z" ~6 X; D) _! c. X. u1 rAdding an Operating SystemAt the command prompt, type: bootcfg /copy /d Operating System Description /ID#
* o0 B: Y, ]% f( M8 YWhere 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.1 o9 s6 t0 w3 b# S" X
2 x' j! n) i O3 f
3 g7 M! e/ w* S: J: g x
v L( O8 j6 E# z f% u
Removing an Operating SystemAt the command prompt, type: bootcfg /delete /ID#
, ?: i* Q9 `4 @- w7 q( \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.( F! _( T" t+ }- P* M: V, l3 w
3 H- N5 N; d. b6 S `) H! N2 Q* w9 Z7 ^4 V. S
& c+ b7 D; x1 @5 { b
Setting the Default Operating SystemAt the command prompt, type: bootcfg /default /ID#' K! O. E2 X# k1 \3 ~$ B( Q
Where # specifies the boot entry id in the operating systems section of the BOOT.INI file to be made the default operating system.# h* R7 b7 b3 d' ^8 ]6 @
4 t% u) R5 b/ J0 Y
3 M/ \5 [, k* Y) D
% S$ s8 u- Q* c( T1 g
Setting the Time OutAt the command prompt, type: bootcfg /timeout# Where # specifies the time in seconds after which default operating system will be loaded.
6 x; J9 g. I$ @) v' Y7 q
- j4 t3 X) G: Z% k+ n) d, I1 k1 ^2 r& j7 j
, F& [4 \$ I* i6 ?7 H# aBack to the top
g- q' _2 L! d0 G* b$ JOpen the Boot.ini File to Verify Changes- Right-click My Computer, and then click Properties. -or- / o% d5 S3 Y% E1 J
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.
) K6 \, p/ E, o. Z
+ Y8 H T' A# t4 W
: B% a; D& a7 {; ~
. w; ]" `; P: X- w
Back to the top |
|