Debian installation from hard disk on Win7

Source: Internet
Author: User

Debian installation from hard disk on Win7
Recently, I have been trying to build my laptop into a Win7 + Debian dual system. No matter how optimized, it is really hard to open a Linux virtual machine on a 2G memory Win7 notebook. After a period of searching, and reading the official Debian installation documentation, we finally achieved this. Reading many articles on the Internet is very troublesome. You need to download grub4dos and change the boot. ini (there is no boot on Win7. ini, instead of bcdedit. lst. In fact, if you only want to install Debian from Win7 to achieve dual-system coexistence without other requirements, the steps are not so complex. In addition, many articles on the Internet (especially in Chinese) refer to the method for installing Debian from a hard disk, including the method I used below. In fact, the method for installing a USB flash drive is similar to that in the official document. According to my understanding, the hard disk partition used to store iso and boot the installer is actually a large USB disk. In the end, my installation steps are the same as what I wrote in this CSDN blog post: Download the iso file that matches your CPU architecture from the Debian website (Installing 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, the easiest way to determine whether your CPU is 64-bit: Right-click my computer and choose Properties> Windows experience index, click to view and print the performance and system details. One of them indicates whether the CPU supports 64-bit. It is estimated that all the CPUs on the market should support 64-bit. Partition the disk to free up space for Debian. Go to Computer Management> disk management from management tools. Using the disk management tool, I compressed my 120 GB D disk to GB, and created a 1 GB FAT32 partition from the empty 80 GB, stores the downloaded iso file and the file used to guide the Debian installer later. According to the CSDN blog above, the partition must be in the FAT32 format. However, you can also use FAT according to the official documentation. Copy the iso file to the created 1 GB FAT32 partition. Execute the corresponding setup.exe program with the virtual Optical Drive. This creates a win32-loader folder in the C root directory. On the Installing Debian via the Internet page of the Debian website mentioned above, from Tiny CD, USB sticks, etc. download the hd-media/initrd.gz and hd-media/vmlinuz files that match your CPU architecture. To be safe, copy these two files to the same directory as the iso file-the root directory of the 1 GB FAT32 partition (based on many online articles ), at the same time, they are also copied to the C: \ win32-loaderfolder, because this folder also has an initrd.gz, and it seems to be used to guide the installation of the disc. During the installation process, the installation file will be searched from the optical drive, the installation fails due to the inability to find the installation disc. Restart the system and select the new deployment debianinstaller wizard (Added by setup.exe at the previous runtime) in the startup Item to enter the installation program. During installation, you must set up a network to download the installation package. I used wifi provided by wireless routing at home, and everything went smoothly afterwards. During installation, Debian is installed in a previously empty 79GB free partition. The grub boot program is written into mbr. Grub automatically identified my Win7 and identified my one-click Restore boot program. The steps mentioned here are similar to the USB flash drive installation method in the official documentation. For details, see section 5.1.2 Booting from Windows. However, this method is described in Hard disk installer booting from Linux using LILO or GRUB in section 4.4.1, which mentions LILO can not boot from files on an NTFS file system. Another hard disk installation plug-in is installed on the DOS, and the install.batrun loadlin.exe is decompressed through isoli to guide the Linux installation program. However, this requires that the operating system is currently working in real mode, while Win7 is working in V86 mode. Therefore, this method cannot be used in cmd of Win7. Is the latest Debian 7.7 interface. Now the Debian interface is taking this fresh path. I like this interface very much-simple and fresh design + quiet and calm colors, making people feel at ease.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.