Install XP, FreeBSD, and Linux on a USB flash drive.

Source: Internet
Author: User
Tags arch linux

I have been using a virtual machine for a long time. Recently I want to experience Linux and FreeBSD operating systems on a real machine. Therefore, I decided to install these operating systems on the hard disk, so I had to use a USB flash drive for installation. Record the installation process.

1. Quasi-Work

A. XP, the computer has been there. Just change the partition.

B. FreeBSD. Because it is installed on a USB flash drive, download memstick. IMG of FreeBSD. The latest version is 8.2.

C. in Linux, the selected release version is arch, and its configuration is flexible. Grub can be configured during installation, and grub 1 is used. grub2 is not used to the new version, the three systems are guided by grub.

D. One USB flash drive. My USB flash drive is 4 GB enough.

Finally, you can practice in the virtual machine before installation. The following is the virtual machine installation process, which is similar to my real machine.

2. Installation Process

1. Hard Disk Partition example

This is the partition scheme used in the experiment in the virtual machine, which is basically the same as the hard disk of my computer. Winpm for partitioning software is available in any windows PE system installed. FreeBSD needs to be installed in the primary partition on the Internet. Therefore, a region is allocated to the C drive of XP to install FreeBSD, which is the primary partition. Linux can be installed on logical partitions. Therefore, a partition is allocated to Linux. Pay attention to back up data on the hard disk before partitioning. If the operation is correct, the win partition on the logical partition should be okay. data can also be backed up in these partitions, in this way, you don't have to worry about how to reinstall the system. The installation sequence of the three operating systems is XP, FreeBSD, and Linux. If you accidentally break the boot during the installation process, the partition is incorrect and you can reinstall it in order.

2. Install FreeBSD

Make sure that the XP of the computer can be started after division, and then FreeBSD can be installed. First, create the FreeBSD U disk installation disk.

The production method is very simple. I can use dd to write IMG to a USB flash disk. It can be made in Linux and FreeBSD. There is a DD for windows in windows. I can't use it anymore. Maybe the method is incorrect, I had to use Linux in the virtual machine. Connect the USB flash drive to the VM.

Reference FreeBSD Handbook: http://www.freebsd.org/doc/zh_CN/books/handbook/install-pre.html

In Linux:

# Dd If =/path/to/freebsd-memstick.img of =/dev/sdb bs = 64 K // My USB flash drive is SDB. Note that SDB is not the partition sdb1.

FreeBSD:

# Dd If =/path/to/freebsd-memstick.img of =/dev/da0 BS = 64 K // My USB flash drive is da0

After the write is complete. Restart the computer and set the computer to start from the USB flash drive in the BIOS. You should be able to enter the FreeBSD installation interface.

For FreeBSD's installation method, refer to handbook. Similar to the CD installation.

Partition Method:

For example, on the partition page, you can see that ad0s1 is the primary partition where XP is installed, that is, the C disk. The following is the primary partition just drawn out and is ready to install FreeBSD.

Select the second partition and press d to delete the partition. Then, Run "Security C" to create the master partition of FreeBSD. the pop-up prompt box shows the size and type. Type 165 indicates FreeBSD.

After the above steps are completed, the second item becomes a partition that FreeBSD can use. Log out and go to the following page.

Next, we will give the FreeBSD partition detail partition in the Partition Table, which is also based on C. input the size and select the type. The general practice here is to separate the appropriate size partitions for the boot and usr folders. Here I will use a root directory to install everything. Divide swap partitions. Press Q to exit.

The next step is to select the required installation package. After the installation is complete, what guidance will be prompted?

Bootmgr is selected for the moment, so that the XP and FreeBSD systems can be guided.

3. install linux

The USB flash drive Installation Tool for Linux is similar to that for FreeBSD. After downloading ISO, follow the instructions in the Wiki of arch Linux:

# Dd If =/path/to/archlinux. ISO of =/dev/SDB // SDB is my USB flash drive

Then, restart the computer and you will be able to see that the arch Linux installation system is started from the USB flash disk.

After the disk is started, the preceding settings are very simple. You need to use two or three items to partition the disk.

Enter the second item first:

After selecting the hard disk, we can see that the last sda8 is the shard of the original shard, which is a logical partition.

Use the arrow to select Delete, new, and re-split.

This is my partition method sda8 to install the entire Linux, sda9 is swap, and then select write to save the partition content.

Finally, select the third item on the page, and set the type and mount point of the two partitions. It is also simple to install the entire root file in a zone.

Next, select the software package, install it, and configure the system. You can modify the software package as needed.

Finally, configure grub according to the configuration method. Selecting arch Linux is because the system is simple and the configuration is more flexible. Here, you only need to remove the Windows configuration annotation (#) and add FreeBSD, and copy the Windows configuration, change title to FreeBSD and rootnoverify (hd0, 0) to (hd0, 1 ).

After saving and exiting, the Linux installation is complete. restart the computer and try to start the three systems.

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.