How to install Debian Linux on a hard disk

Source: Internet
Author: User
Among my friends, I am also a leader in free software-although I do not know much about open-source software. Young people advocate freedom. Like most people, when talking about free software, my friends first thought of Linux (in fact, there are a lot of open-source software besides Linux, and I hope you will pay more attention to the development of open-source software ). Currently, among my friends, Li is also a top user of free software-although he does not know much about open-source software. Young people advocate freedom. Like most people, when talking about free software, my friends first thought of Linux (in fact, there are a lot of open-source software besides Linux, and I hope you will pay more attention to the development of open-source software ). Currently, Linux is not as popular as Windows, and most PCs contain Windows systems.
If you have used a CD to install the Linux system, you cannot find the CD to install the system, and you do not want to burn the CD (it is too extravagant to create a disk for each new version ). Or, you are already a master of Linux applications, but suffer from no optical drive on that machine. Then, you are the target reader of this article. We hope you can find the information you need here. Now, let's get started.

? , Basic conditions
You have spare disk space to install Linux. The Debian minimum system only needs MB of space (note: This number is not accurate, and the "minimum system" requires dozens of megabytes of space. the "basic system" requires a larger space ), however, the basic system only supports the Linux kernel and the "standard configuration" command line tool. If you want to experience Linux, we recommend that you use 4 GB or above.
You already have a Windows system with at least one FAT partition. If you are already a master, this restriction is not required for you.
If you have good network conditions, or obtain the files described in step 2; if you can copy these files in other ways, the single-host environment can also be used.

I. prepare disk space
Although you can allocate disk space by yourself during Linux installation, we strongly recommend that you free up partition space on the disk in advance considering data security. For example, if your machine has C, D, E, F, and G disks, you can consider moving the data (files) of the G disk to another disk to free up the G disk. (Advanced User: If you already know the concept of disk partitioning, you can re-partition the disk at this stage to adjust the space quota for the Linux system ). Choose Control Panel> Administrative Tools> Computer Management> Disk Management to delete the G disk.

II. download the Linux installation file
The ISO optical disk image is the main method for transferring the operating system over the network. At http://www.debian.org/cd/, you can find the relevant link of the debian's isoimage. Here, we recommend that you select a mirror site (mirrorsite) that is closer to you to download images for better transmission speed. In addition, BT download is recommended for ISO files. Linux releases have several CD files. Generally, you only need to download disc1. if you need to install other software packages, you may need to download more CD image files.
Because Debian 3.1 disc1 does not have the kernel installed on the hard disk, you need

Download the vmlinuzkernel file and initrd.gz memory image file (you can also select the 2.6 kernel installation version under the 2.6 subdirectory ).
In addition, you also need the Linux boot tool. GRUB or LILO can be used. GRUB has powerful functions but is not suitable for beginners. So here I will take the DOS version LILO as an example. Release (the version number may vary. Undo this package and you will see the dos lilo program and source code. if you have time, read the instructions in this package first. Copy LOADLIN. EXE to the vmlinuz directory.
OK. All preparations are ready. next we will use DOS to start the machine. We recommend that you use a vfloppy boot disk instead of a Win98 boot disk. Vfloppy allows your Windows boot loader to boot the Win98 boot disk image file, so you can use it without any floppy disk or CD.
Now, assume that your E: \ debian (note: the disk must be in the FAT format. NTFS is not recognized by the Win98 boot disk or supported by the Debian Installer) the following files already exist in the directory:
ISO Image: debian-31r0a-i386-binary-1.iso (your version may be different );
Kernel and memory image used for hard disk installation: vmlinuzw.initrd.gz;
LILO: LOADLIN.exe

3. start installation
Start the machine with a Windows 98 boot disk (floppy disk/CD/virtual floppy disk. If you use a virtual floppy disk, select virtual software to start when selecting a Windows boot system. Enter the DOS prompt:
A:> e: [CR]
E:> cd debian [CR]
E: \ debian> loadlin vmlinuz root =/dev/ram0 initrdw.initrd.gz ramdisk_size = 12000 [CR]
(Note: [CR] indicates the carriage return)
Then, you will see that the Linux kernel is guided.
Next, select the language, region, and keyboard settings ...... Follow the prompts to start the installation. The English language is not too bad, a little bit of computer application knowledge, you can complete the installation. So next I will only describe some key steps.

Partitioning is a key step. If the operation fails, data may be lost.
In the above example, the G disk has been removed in the first step, so the Linux installer can automatically use all the empty closed space. In this way, data in Windows partitions will not be affected. This method is recommended for beginners.
If you insist on setting partitions manually, I am very happy, but remind you to understand the meaning of Linux partitions in advance. Otherwise, the disk data may be erased by you!
In addition, partitions are usually set during Linux installation. as long as you are not sure to write partition changes to the disk, the partition layout is not changed.

Installing the boot tool is also critical. To coexist with your original Windows system, it is best to select GRUB as the boot tool. The installation location is MBR or the first sector of the Linux partition. It is more convenient to install MBR, but the MBR boot information will be overwritten when you reinstall Windows later. Therefore, we recommend that you back up the MBR by yourself (I use the DOS mini-tool mbrtool to back up the MBR ). If you select to install the Linux partition, it is inconvenient to select a multi-system. you must change the current active partition to switch to the started operating system, this method is only applicable to systems installed in the primary partition (note the difference between the primary partition and the logical partition ).
Therefore, we recommend that you use GRUB as the boot device and install it in MBR.

This step is also important to install other software. Otherwise, what is the fun of a basic system.
Debianapt installation is a major feature of Debianapt. It is more convenient under good network conditions. If the network is connected, you can select HTTP or FTP when configuring apt. if there are no network sheets, you can choose cancel, return to the Debian installer main menu, and choose run shell.
Root @ localhost # cd/mnt [CR]
Root @ localhost # mkdir wine [CR]
Root @ localhost # mount? T vfat/dev/hda6/mnt/winE [CR]
Root @ localhost # mount? T iso9660? O loop/mnt/winE/debian/debian-31r0a-i386-binary-1.iso/mnt/iso [CR]
Root @ localhost # exit [CR]
Return to the installer. Then configure apt. Select filesystem as the source. The directory is/mnt/iso.
Next, select the program you want to install. For more information about common software, see the basic software list of the Linux application edition in Shuimu community. Believe that, after decades of efforts by open-source pioneers, the vast majority of Windows commercial software can find open-source software to implement its functions, and some of them are better than those of Windows software.

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.