Install CentOS6.5 on a USB flash drive

Source: Internet
Author: User

Install CentOS6.5 on a USB flash drive
I recently started to learn about Linux. There are many CentOS versions on the Internet, but the tutorials I have read are basically about CentOS6. Based on the principle that the latest version is not necessarily the most suitable version, I chose to install CentOS6.5. If you do not pay attention to the installation of the system, errors will occur. Previously installed CentOS6.5 systems can only be started with a USB flash drive. After checking the information, it is found that the boot program is installed on a USB flash drive. ---------------------------------------------- The following describes how to install the system successfully based on my previous experiences. Most of the content is reprinted. I hope you can help you when you encounter the same problems as me. -------------------------------------------- (1) write the iso file to the U disk ----------------- you can directly write the iso file to the U disk from centOS6.5. Windows: 1. use UltraISO to open iso (e.g., CentOS-6.5-x86_64-bin-DVD1.iso) 2. then click "Boot"-> "Write hard disk image", hard disk drive is your U disk, Image File Installation CD iso, write mode is USB-HDD +, click "write" button. After installation, the USB flash drive is ready. Linux: Use the dd command to write the iso file to the USB flash drive. Dd if = iso file of = U disk. (Such as: dd if =/CentOS-6.5-x86_64-bin-DVD1.iso of =/dev/sdb1) Note: The dd command does not display the copy status after running, to view the copy status can open another terminal, enter "while killall-USR1 dd; do sleep 5; done" to check the copy status. This method is 64-bit and 32-bit. I installed 64-bit. Note: This method can be used only from CentOS6.5. The old method is used for versions 6.4 and earlier. -------------------------------------------- (2) Set BIOS ----------------- press F2 to enter BIOS when the Boot screen appears, change hard disk Boot to mobile device Boot in Boot, and press F10 to save the settings. ---------------------------------------------- (3) install CentOS6.5 --------------- 1. Set the first boot for the U disk. The installation interface is displayed after the instance is restarted. The first option is selected by default. Press enter. 2. The language interface used during installation is displayed: Select Chinese (Simplified) and Simplified Chinese, and press Enter. 3. On the language confirmation page, press Enter. 4. The keyboard mode selection interface is displayed below: select the keyboard mode. The default value is 5. It is located on Hard drive. directory holding image is not required. The system will automatically enter it. (In fact, this is to search for install under the image directory. imgfile) Select OK, press enter 6, here/dev/sdb4 represents your U disk partition, We have copied the system image to the U disk root directory, here the system will automatically identify 7. Click OK, and the installation interface will appear: Click Next 8. Select drive: select first item 9. Set the computer name: you can enter 10 according to your preferences, set the time zone: Default 11, set the root password (Note: if your password is too simple, the system will automatically prompt, select "still in use" 12. Select the last item for creating a partition for centos, custom partition 13. Note: The disk information is displayed here, do not partition on the disk you want to partition. Otherwise, other disks will be formatted. 14. Click "CREATE", select "Standard partition", and click "OK" (1) create a swap partition file system type: select the drive allowed by swap: select only your computer disk and cancel the USB flash drive size: generally, it is two times the memory size. Other options: fixed size (2) create a boot partition mount point:/boot file system type: the drive allowed by ext4: select only your computer disk, cancel the USB flash drive size: 200 MB other size options: fixed size (3) create a root partition mount point:/file system type: ext4 allowed drive: select only your computer disk, remove USB flash drive size: Default other size options: use all available space click Next select the second option to write modifications to the disk Note: before partitioning, you must plan how to partition? Note: For servers used for formal production, you must partition the data disk separately to ensure data integrity in case of system problems. For example, you can divide another/data to store data. 15. Change the device (do not pay attention to the place where the boot program is installed, boot to the MBR on the computer disk, not a USB flash disk, do not pay attention to) point the BIOS drive order first BIOS drive: select Local disk drive second BIOS drive: Select U disk drive point OK Description: This step is crucial, if you install according to the default method, the system boot to install in the U disk, this is why after many netizens have installed the system, they just need to unplug the U disk and the system will not be able to start again! 16. The third option is selected by default. Here, the first option is selected for desktop installation. You can select the last option if you want to use it for development. If you want to install some special software, please note that you can add it here. Next, wait until the installation page appears. 17. After the installation is complete, Click Reboot 18, restart, unmount the USB flash disk, automatically boot the computer to centos 19, click forward 20, select the first item, and agree to the license agreement, http://dt.ap-southeast-1.maxcompute.aliyun-inc.com: enter the password of your root account and click "close"

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.