(No optical drive/CD) Key Points of Ubuntu and XP dual-system hard drive installation (also suitable for Vista/win7)
I.
Start from ISO file
The key to hard disk installation is to start from the ISO file. download the Ubuntu ISO file from the Internet and put it in the root directory of a disk (any disk). This disk can be NTFS or FAT32. Of course, it can also be a Linux File System. just don't put this file on the partition where you want to install the system (this is just nonsense !)
Use WinRAR or virtual optical drive to extract vmlinuz and initrd. LZ files from the ISO file in the Casper folder.
To the root directory of the same disk.
Create a text file in the root directory of the disk and rename it as menu. lst.
Write the following command into this file:
Title install Ubuntu <br/> Find -- Set-root/ubuntu-9.10-desktop-i386.iso <br/> kernel/vmlinuz boot = Casper iso-Scan/filename =/ubuntu-9.10-desktop-i386.iso Ro quiet splash locale = zh_CN.UTF-8 <br /> Label check live-install <br/> initrd/initrd. LZ
Note that the ubuntu-9.10-desktop-i386.iso in this command is the name of the downloaded ISO file. If your file is not the name, change it to your own file name.
In addition to the menu. LST file we created, if files with such names exist in the root directory of other disks, they must be all deleted or renamed.
Download the latest grub4dos from the Internet
To extract files named grldr and grldr. MBR.
, As long as the two are enough, we don't need anything else. Put it in the root directory of the XP system disk. Then modify boot. ini
, Add the following sentence at the end:
C:/grldr. MBR = "ubuntu"
It should be noted that here I assume that your XP is installed on the C drive. If it is attached to another disk, change the drive C here to another drive letter.
In short, you just need to add the grldr startup Item to XP.
From the information found on the internet, Vista and win7 can also use boot. ini, but there is a note in writing.
In XP, the line we add can be written:
C:/grldr. MBR = Ubuntu
In Vista, the line we add must be written:
C:/grldr. MBR = "ubuntu"
That is to say, this pair of quotation marks must be added under Vista, while under XP, this pair of quotation marks is dispensable.
I have never tried this.
Note: Write this boot. ini file in Vista in full format. It won't be the only line I have provided here. For more information, see boot. ini in XP. I will not go into details.
Then restart the computer and choose Ubuntu to start it. There will be a logon page here, but after I go in, I find that it is not the livecd screen, but let me enter the user name and password as I did after the formal dress, however, the user name and password have not been set. Therefore, you need to use the pure interface to add a password for the root user and then log on to the graphic interface. The specific method is as follows:
After logging on to the graphic interface, press CTRL + ALT + F1 to enter the text interface, and then enter the command
Sudo passwd root enter
Then you will be prompted to enter the password for the root user (note that the password entered on the text interface in the Linux system is invisible, so you will not seem to have entered the password, but this is actually the case)
In this way, you create a password for the root user, and then press CTRL + ALT + F7 to return to the graphic interface.
Enter the user name as root and the password you entered. OK, go to the system desktop,
After entering the desktop, click system. Then you will see the option to install Ubuntu, and you will be able to start Ubuntu installation.
II.
During installation, the system prompts that the partition cannot be detached.
During installation, you may encounter a prompt:
The installation package must change the partition table, but it cannot be implemented because the partitions on the following mount points cannot be detached:/isodevice
Hard Disk installation in Versions later than ubuntu8.10 is different from that in previous versions.
The problem is that once the partition is designed to be modified, the installer will try to unmount the entire hard disk by default, but the ISO on the hard disk is still mounted, so an error will occur.
The solution is:
Run the following command on the terminal (terminal) (included in application-> attachment) to uninstall the mounted partitions before starting the installation program (before clicking install UBUNTU:
Sudo umount-L/isodevice
(Must add-l)
Start the installer and start installation.
3.
Install the boot guide device in the logical partition.
Install XP and Ubuntu on both systems. I prefer not to write it into MBR. This is because it is a lot of trouble to write data into MBR. For example, the one-click Restore wizard installed in XP is unavailable. If Ubuntu is faulty, XP cannot be started.
The solution is: Install the partition of ubuntu, preferably the logical partition.
In the installation process, you need to answer nine questions. In the last question, do not be busy with installation. Please click advanced in the lower right corner to enter.
Install the boot guide device. The active primary partition (hd0) is selected by default ). Here we select a logical partition. Here we should select/partition. This/partition selects a logical partition when generating and selecting a mount point.
In short, as long as the device we select to install boot is a logical partition, the installer will not write into MBR. As for whether or not we choose non-active primary partitions to write data to MBR, it is unknown. Because no tests have been conducted.
4. Start Ubuntu after installation
Since we did not write the MBR, after the system is installed, we restart the computer and cannot directly enter ubuntu. here we need to first Delete the previously created menu. LST file. Create a menu. LST file on drive C (other disks are also supported) and write
Find -- Set-root/boot/memtest86 +. Bin
Kernel/boot/GRUB/CORE. img
Then restart the system and select ubuntu. You will find that you have entered a grub boot menu with n lines of Names below. The first few names contain the kernel of the Ubuntu system (that is, the system, in Linux, there can be n kernels at the same time. You can log on to the system by selecting one kernel. I usually choose the first kernel. The kernel versions are the same.
5. The menu is half-English and half-Chinese.
I have heard that Ubuntu is the most popular Linux Desktop System. However, I entered the desktop just after the installation, but it was quite cool. The reason is that the menu is half in English and half in Chinese. This is certainly not a problem for good e-wen friends, but it is a problem for most of our friends. In this case, you need to install the Chinese Language Pack. I will not go into details about how to install it here.