|
如何编辑BOOT.INI文件,这个论坛回复不能全英文
/ p0 f# j6 x8 ^- Z
1 \- d$ q# w- E* D% g" L" ? _This article describes how to view and manually configure the Boot.ini file in Windows XP from within the Startup and Recovery dialog.5 R8 I/ `# X% O2 J
- O0 Q+ Q5 t" t) w
In Windows XP, you can quickly and easily locate the Boot.ini to verify and/or edit the file.9 ~# v* x, d! E8 J
/ H& F, k& C2 R( vIt 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.6 r6 r1 D7 K" @& U0 ?7 O
, K' K* ^& Q. o5 d) C5 K* \% E$ {5 T
! i S. m; p. X2 p# Q
$ ~1 [6 y5 m; b- K& h( W
Back to the top2 x( ^7 k7 S: O' Z8 f
Save a Backup Copy of Boot.ini- Right-click My Computer, and then click Properties. -or- , g& z3 X7 C$ I" }) J8 ]$ g/ N
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.
& Y$ U% [+ E# J# s& a7 }; j1 P5 [2 a/ d
Back to the top, T, _; a+ q' ^# J; Q
Edit the Boot.ini FileTo view and edit the Boot.ini file: - Right-click My Computer, and then click Properties. -or-
V: {" N4 @( _+ \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& h4 {! Q0 L* J9 i: n* s: r- U: B& u7 j6 J$ ]- W3 y( O
Back to the top( i/ ^' Z7 F1 X5 u, J& @ ~: Q7 |
Sample Boot.ini FileThis is a sample of a default Boot.ini file from a Windows XP Professional computer. [boot loader]* ^1 ~, a# c3 V8 |
timeout=300 X/ |8 ~6 S- U; ^
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS" S' \( t; ~8 `0 ^3 c
[operating systems]) M' h3 n0 s4 X' G
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
8 w8 o( o& W: GThis is a sample of the above Boot.ini file with a previous installation of Windows 2000 on a separate partition. [boot loader]& s! V+ g7 U6 X& F& C$ x
timeout=30
7 i" {0 ?1 |- J( i8 R3 T7 Ldefault=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS) C" `( s6 [6 N; w; C1 ]5 {
[operating systems] X5 X) X7 A( k {
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Professional" /fastdetect- k/ c# z% O$ k- p4 _7 X: b$ D0 j
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows 2000 Professional" /fastdetect * _4 m7 z- O) b' e6 _
, _& t" {- U4 v3 u/ F
0 k& R7 B2 m9 m7 U, `
Back to the top
5 e! u7 ]+ W+ L5 Y: p" P6 F C( uModifying 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.
4 B1 [) s( k6 E) ]1 ]$ C- ]4 f" C; f G! O! 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.
" Q p0 x: z/ D' ^ i1 O5 s2 }! ~0 l$ n3 L0 ]: [4 }
Adding an Operating SystemAt the command prompt, type: bootcfg /copy /d Operating System Description /ID#5 o# r% f5 d( x/ p, w* f4 x L
Where 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.0 E6 G% b% o3 l$ U( D- E5 W
7 C. j+ N3 X0 X( x1 {) T# H* R6 [& @/ V9 c O- p
+ J; Z* o+ r0 m1 x8 H8 aRemoving an Operating SystemAt the command prompt, type: bootcfg /delete /ID#0 G6 S8 H$ Y) m- @. @
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.) M7 E& j) D$ l0 W5 n# D. T
0 h. ^! \, H: O/ H
. c- t& Z0 e; t! U6 v
) \) A/ _+ I& Q, J" t1 g
Setting the Default Operating SystemAt the command prompt, type: bootcfg /default /ID#
- R8 s# h$ G1 _Where # specifies the boot entry id in the operating systems section of the BOOT.INI file to be made the default operating system.
" i3 `: n5 a; n3 b
T0 r0 l9 R7 ^0 F5 ^
6 A: d% G; ?& z& |; \& w& ]0 B: k2 C5 P& f& A% r" X
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: |& a4 T* @ F; H
( E( _: b5 R2 Q I: i- U4 H* {
; C9 P4 t0 \/ P% i/ f7 m+ L% q
* }5 B9 x5 ?/ J6 Z) T/ I
Back to the top- o$ e& ~; n: \" R6 ~* A
Open the Boot.ini File to Verify Changes- Right-click My Computer, and then click Properties. -or- 2 |2 L. z: x9 s. I2 @
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.
. ?; v6 F$ ?6 Q! ]& k
' H7 r: ~- R$ K( P- J
5 O6 h" d2 @! ~' y+ e+ S/ K$ V
1 v* |+ r( a& U4 p7 PBack to the top |
|