Vfloppy uses CD to install Linux to the hard disk

Source: Internet
Author: User
Article Title: Vfloppy install Linux on a CD disk and run it on a hard disk. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

In an optical disk linux system, you can run the tool without installing it. This prevents installation and installation failures. For example, copying the tool to a hard disk is more convenient, the speed is much faster than running on a CD, and each running system is new. You are not afraid of Trojans, viruses, or getting rid of it. You can delete it like deleting a file, do you want to try these advantages? The following describes how to use vfloppy to install CDLinux to the hard disk.

Direct use of grub to boot from the hard disk

1. Extract bzImage and CDlinux.gz to/CDlinux

2. Extract the extra directory and copy the entire directory to/CDlinux

3. Directly copy the grub directory in iso to the/boot/grub/directory started on the hard disk.

And create menu. lst in this directory. The content is as follows:

Default 0

# Allow 30 seconds before booting the default.
Timeout 30

# Use prettier colors.
Color green/black light-green/black

# The first entry is for CDlinux.
Title CDlinux from HDD
Root (hd0, 0)
Kernel/CDlinux/bzImage root =/dev/ram0 vga = 788 CDL_DEV =/dev/hda1
Initrd/CDlinux/CDlinux.gz

Then install grub on the reverse hard disk mbr. when entering the command, pay attention to the space between the command and the parameter.
> Grub
> Root (hd0, 0)
> Setup (hd0)
> Quit

Download the latest stable: CDlinux-0.4.9 from the official homepage

The downloaded file is an iso file, which can be directly burned to the CD to start from the CD, or loaded from the VM to start from the CD.

Refer to the official howto document to install it on the hard disk.

Installation to the hard disk in windows: (the ntfs partition cannot be mounted in version 0.4.9, so the extra directory under the ntfs partition cannot be loaded, select a fat32 partition to store files in the extra directory)

1. decompress the iso file

2. Create a subdirectory of C: \ CDLinux in the root directory of the C drive. This is the default path for the kernel to search for extra. You can change the path and name by modifying the kernel parameters.

3. copy the entire extra directory After decompressing iso to the C: \ CDLinux directory.

4. copy CDlinux. img to the C: \ CDLinux directory. This is an image file for the boot floppy disk. We need to start the file:

BzImage
CDlinux.gz

I use a virtual machine to open CDLinux. img and copy the two files. Of course, other methods can be used.

Copy the preceding two files to the C: \ CDLinux directory.

5. Download loadlin.exe and copy it to the C: \ CDLinux directory.

6. Start dos and enter the c: \ CDLinux directory. Execute the following command: (CDL_DEV =/dev/hda1 is used to make the kernel to C: \ CDLinux directory to find the extra directory to load the extension module)

Loadlin bzImage initrd1_cdlinux.gz CDL_DEV =/dev/hda1

Then you can start CDLinux.

There is also a simpler method: Use vfloppy to install the CDlinux. img floppy disk image file

Download vflopy and install our CDlinux. img environment file, so that you can directly start CDLinux from the hard disk. If you need to install the extension module under the extra directory, follow the above method to copy the extra directory to C: \ CDLinux directory, and then start CDlinux. Enter the following kernel parameters at the boot: prompt to start the system: (if you press enter to start the system, you can only start the basic system and cannot load the extension module)

Boot: CDlinux CDL_DEV =/dev/hda1

Use root to log on after startup, without a password.

CDlinux supports DHCP and some common commands of USB and CDlinux:

1. Enter cce to start Chinese Input, ctrl + shift + space to switch between Chinese and English input, and ctrl + shift to switch between Chinese Input Methods

2. grub

3. hdparm allows you to view hardware information.

4. ssh \ ftp

Follow these steps to modify the default parameters of the boot menu and add
CDlinux CDL_DEV =/dev/hda1
Mount/mnt/win

Mount-o loop/mnt/win/boot/CDlinux. img/mnt/floppy

Cd/mnt/floppy

Vi SYSlinux. cfg


Edit SYSlinux. cfg and set the default startup parameter lable 2.

Kernel bzImage
Append initrd1_cdlinux.gz root =/dev/ram0 vga = 788

Change to lable 2

Kernel bzImage
Append initrd1_cdlinux.gz root =/dev/ram0 vga = 788 CDL_DEV =/dev/hda1

Reboot after modification

Now, you can directly press enter to find the extension package under extra and install it.

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.