1 double boot
First, modify the default startup Item, that is, whether it is windows or Linux by default. Second, modify the position of the startup Item. In fact, these two are not a problem. You need to modify a configuration file in Linux:/boot/GRUB/grub. conf, opened as a text file, my grub. the conf configuration file is:
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# Notice: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 4)
# Kernel/vmlinuz-version Ro root =/dev/hda7
# Initrd-version.img/initrd
# Boot =/dev/hda
Default = 1
Timeout = 5
Gfxmenu (hd0, 4)/message
Title redflag (2.6.22.6-1)
Root (hd0, 4)
Kernel/vmlinuz-2.6.22.6-1 Ro root = label =/VGA = 788 splash = silent
Initrd/initrd-2.6.22.6-1.img
Title Windows Vista (SP1)
Rootnoverify (hd0, 0)
Chainloader + 1
Note that from the line # boot =/dev/hda, default = 1 indicates that the default start item is the second, 0 indicates the first, 1 indicates the second, and so on.
Timeout = 5 indicates the default wait time (in seconds ). Next, there are two startup items:
Title redflag (2.6.22.6-1)
Root (hd0, 4)
Kernel/vmlinuz-2.6.22.6-1 Ro root = label =/VGA = 788 splash = silent
Initrd/initrd-2.6.22.6-1.img
This is a Linux Startup item, as well:
Title Windows Vista (SP1)
Rootnoverify (hd0, 0)
Chainloader + 1
This is the Vista startup Item.
2. Modify the startup level Linux
Log on to Linux as an administrator and modify the file:/etc/inittab.
Find "ID: 5: initdefault:", where 5 is X-window, which is the default running level. Generally, we can change 5 to 3.
There are 7 startup levels:
#0-halt (do not set initdefault to this)
#1-Single User Mode
#2-multiuser, without NFS (the same as 3, if you do not have networking)
#3-full multiuser Mode
#4-unused
#5-X11
#6-Reboot (do not set initdefault to this)
Detailed explanation of each running level:
0 indicates that the machine is shut down.
1 is the single-user mode, just like the security mode in Win9x.
2: multi-user mode, but not supported by NFS.
3 is a complete multi-user mode, which is a standard operation level.
4. Generally, you can use it to do things in some special cases. For example, you can switch to this mode to make some settings when the battery of your laptop is exhausted.
5 is X11, And it enters the X Window System.
6. Restart the init 6 server.
0 and 6 are generally not used;
Run startx to start to level 5.