
Managing partitions using GDisk
Modifying the Windows NT/2000/XP boot menu
141
GDisk32 does the following by default:
■Builds the file name from the entry descriptions, omitting any invalid characters under DOS rules for 8.3 file name format.
■Creates the boot sector file in the root directory of the C drive and gives it a
.dat file extension. For example:
gdisk32 /add /d:1 /p:2 /desc:“*** Boot OS/2 ***”
This produces a boot sector file C:\bootos2.dat.
Removing an entry from Boot.ini
The syntax to remove an entry from Boot.ini is as follows:
gdisk32 /bootini /remove /entry:nunber [/inifile:filename] [/r]
Table | /remove switches |
|
|
Switch | Explanation |
|
|
/remove | Removes the entry from Boot.ini. |
|
|
/entry:nunber | Removes the ID of the entry from Boot.ini. |
|
|
If the entry to be removed is the default boot option, then GDisk removes the entry and sets the first entry in the remaining list as the default boot entry.
GDisk does not remove the entry if it is the only entry in Boot.ini.
Setting the default boot option and timeout
Use the /default switch to set the default boot option and timeout.
The syntax for this command is as follows:
gdisk32 /bootini /default [/entry:nunber] [/timeout:sec] [/inifile:filename] [/r]
Table | Default boot option and timeout switches |
|
|
Switch | Explanation |
|
|
/default | Sets the default boot option and timeout. |
|
|
/entry:number | Sets the ID of entry as the default boot option. |
|
|
/timeout:sec | Sets the number of seconds before the default boot option is selected. |
|
|