Debian from Win7 on Win7

  
        Recently I have been trying to make a notebook into a Win7+Debian dual system, because no matter how optimized, it is really difficult to open a Linux virtual machine on a Win7 notebook with 2G memory. After a period of data search and reading the official Debian installation documentation, it was finally implemented today. Looking at the many articles on the Internet, I feel very troublesome. I have to download grub4dos, and I have to change boot.ini (there is no boot.ini on Win7, instead of bcdedit), and I want to change menu.lst. In fact, if you just want to install Debian from Win7 and realize the coexistence of dual systems, there is no other requirement, the steps are not so complicated. In addition, many articles on the Internet (especially Chinese articles) said that the method of installing Debian from the hard disk —— including the method I used below, in fact, is similar to the U disk installation method in the official documentation. According to my understanding, the hard disk partition used to store iso and boot the installer is actually a large U disk. In the end, my installation steps are the same as those written in this CSDN blog post: Download the iso file that matches your CPU architecture from the Debian via the Internet. Although my laptop is installed with 32-bit Win7, my CPU is actually 64-bit, so I downloaded the amd64 architecture: http://cdimage.debian.org/debian-cd/7.7.0/amd64/Iso-cd/debian-7.7.0-amd64-netinst.iso. By the way, on Win7 to determine whether your CPU is 64-bit architecture: the easiest way is to right-click on my computer -> click on Properties -> Click on Windows Experience Index, then click View and Print Performance and System Details Information, one of which is to indicate whether the CPU supports 64-bit. It is estimated that the CPUs on the market should support 64-bit. Partition the disk to make room for Debian. Go to Computer Management -> Disk Management from the Administrative Tools. Through the disk management tool, I compressed my 200GB D drive to 120GB, and created a 1GB FAT32 partition from the empty 80GB, which is used to store the iso file just downloaded and the file used to boot the Debian installer. According to the CSDN blog post mentioned above, this partition must be in FAT32 format. However, according to the official documentation, it is also possible to use FAT. Copy the iso file to the 1GB FAT32 partition you just created. Load the iso with a virtual drive and execute its setup.exe program. This will create a win32-loader folder in the root directory of the C drive. In the Debian official website Installing Debian via the Internet page mentioned above, download the hd-media/initrd.gz and hd-media/vmlinuz that match your CPU architecture from the links provided in the Tiny CD, USB sticks, etc. section. file. To be on the safe side, copy the two files to the same directory as the iso file —— the root directory of the 1GB FAT32 partition (according to the experience of many online articles), and also copy them into C:\\win32-loader In the folder, because there is also an initrd.gz in this folder, it seems to be used to boot the CD-ROM installation. During the installation process, the installation file will be searched from the CD-ROM drive, and eventually the installation CD cannot be installed. . Restart the system, select the newly-created "Debian installation bootloader" in the startup item (which was added by the previously run setup.exe), and enter the installer. You need to set up your network to download the installation package during the installation process. I used the wifi provided by the home wireless router, and everything went smoothly. Install Debian installed in the previously free 79GB free partition. The grub bootloader is written to mbr. Grub automatically recognizes my Win7 and also recognizes my one-click restore bootloader. The steps mentioned above are very similar to the U disk installation method in the official documentation, see Section 5.1.2 Booting from Windows. However, the method described in Section 4.8.1 Hard disk installer booting from Linux using LILO or GRUB refers to LILO can not boot from files on an NTFS file system. Another way to install the hard disk is to run the loadlin.exe on the DOS by using the install.bat extracted from the iso to boot the Linux installer. But this requires the operating system to work in real mode, and Win7 is working in V86 mode, so this method can not be used on Win7 cmd. The picture below is the interface of the latest Debian 7.7 just installed. Now the Debian interface is starting to take this fresh route. I really like the —— this simple and fresh design + quiet and calm color, it is reassuring.



Copyright © Windows knowledge All Rights Reserved