|
如何编辑BOOT.INI文件,这个论坛回复不能全英文
( h" H5 B3 `2 E5 w
$ u" A, \/ W( SThis article describes how to view and manually configure the Boot.ini file in Windows XP from within the Startup and Recovery dialog.+ ?: i9 s2 c) f; i
; v+ r( _4 R8 U+ H% c
In Windows XP, you can quickly and easily locate the Boot.ini to verify and/or edit the file.
* ]; B2 n% X& L, L5 n' c. h( ?" m3 ^2 V0 I$ e2 v
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.# T$ o- Z: S0 ]: V- A' y
# y% Z7 N3 U6 }
U! g c! {9 l5 Z8 w0 z. A% m( L, w4 s( W; P1 z/ l0 J
Back to the top. R: L8 j" A/ G6 E' ~
Save a Backup Copy of Boot.ini- Right-click My Computer, and then click Properties. -or- + G: K% W: o3 o% 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. 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.
9 y$ M/ Z6 `! a; H' ]4 a. l u' ~
% t$ \" x( j" f5 b7 I6 lBack to the top
. A% v& @" D+ U! z6 QEdit the Boot.ini FileTo view and edit the Boot.ini file: - Right-click My Computer, and then click Properties. -or- % ]9 n. c/ J, w6 p& ~9 m8 n* 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.
( m7 I1 R9 l2 @! y8 \
. }2 F( [& f) ?Back to the top
! o8 G4 @; ~+ K& i" eSample Boot.ini FileThis is a sample of a default Boot.ini file from a Windows XP Professional computer. [boot loader]; [2 S2 m, z1 _/ g1 x1 K& Q
timeout=306 M, |: P6 ]5 S+ r
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS( V9 K8 E- @" E/ X
[operating systems]
S; Q: D# x! }0 n {9 U- }6 g# smulti(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect ' c& p* }. B9 u7 ^' |+ F
This is a sample of the above Boot.ini file with a previous installation of Windows 2000 on a separate partition. [boot loader]
' G4 ]8 E: ^# Dtimeout=30
- W8 t& h1 w' e( ~9 B) |& cdefault=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
- ?: R6 u( Z" c9 L. H+ \8 e$ V/ P7 t" H[operating systems]
3 ?' C' I; D- a, T6 V1 mmulti(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Professional" /fastdetect
0 J$ M8 B+ l$ dmulti(0)disk(0)rdisk(0)partition(2)\WINNT="Windows 2000 Professional" /fastdetect
. j$ F7 e# k: L" f) h2 g) v; v6 Z
* R3 ]6 d& s w/ R8 l- S8 Z
/ T2 X, f* o4 {! @* FBack to the top
" y9 F6 A; f- @, r5 g5 r/ X" D% _$ xModifying 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. : g' u* \( h/ X: i( y$ |3 X' c" C
9 ~( n) r8 z0 sNote 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.
) t" P: ^( Y1 L1 J) S' {, z* w0 e! g) A" S0 z
Adding an Operating SystemAt the command prompt, type: bootcfg /copy /d Operating System Description /ID#
C2 }* L/ y N% u CWhere 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.* j2 X8 t% z1 q. g" x7 X% C
, {, k$ C [& o/ E/ o# L
6 R$ O: z9 Y. U( @1 i0 Q! S
0 m" u2 y6 p" g' t6 l
Removing an Operating SystemAt the command prompt, type: bootcfg /delete /ID#0 Y- G4 ?: B! X5 T
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." u: b5 d7 {( U4 h( V! v" P
& h k) V' ^' K w4 _( U
$ [3 N# X. c! |3 p$ {6 d& u$ O- E8 s# [7 y8 _" ~. ~* v! @
Setting the Default Operating SystemAt the command prompt, type: bootcfg /default /ID#
" U& Q1 b, I0 |5 C4 ?- EWhere # specifies the boot entry id in the operating systems section of the BOOT.INI file to be made the default operating system.( g6 Q- t# v5 U( P6 N- J
) y6 Z- X0 Z5 P! r U/ c% M4 F1 z
5 g' w$ ~& N, S4 |/ O6 H+ U
8 m$ c% d$ \ p/ U9 w8 T0 J( LSetting the Time OutAt the command prompt, type: bootcfg /timeout# Where # specifies the time in seconds after which default operating system will be loaded.' }* u8 i5 G" s! h( X$ f( m
6 F1 i$ X$ {; i9 w$ L
7 Q6 C3 X0 Q. q
- T/ e0 v5 E. w) U6 ~ ~Back to the top
# V- R8 x$ N- |+ U& _) b1 DOpen the Boot.ini File to Verify Changes- Right-click My Computer, and then click Properties. -or- 4 r: P( P/ }$ ~) A8 e; u, I
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.
) t( o& N8 o3 g+ p, X0 G# O+ H, B/ Y
1 p0 x _9 `. h2 f) x h
" x | n! ?# K5 t% M9 \% u: p6 T5 T9 u+ t Q: l& N+ e
Back to the top |
|