How to install fedora13 with a USB flash drive unattended

Source: Internet
Author: User
Method 1 of unattended installation of fedora13 for USB flash drives project requirements: the company receives a project requirement to quickly install 50 fedora13 systems. The first thing that comes to mind is implementing unattended security through the network... information & nbsp; | & nbsp; security
Method 1 for unattended installation of fedora 13 on a USB flash drive: The company receives a project requirement to quickly install 50 fedora13 systems. First of all, I thought of implementing the installation of fedora13 without human guard through the network, because the network is already very familiar with unattended installation of linux systems, and soon the network installation environment has been set up, however, the installation speed is very slow due to network bottlenecks during the installation process. The time was urgent, and I was too busy to find a way to replace other installation solutions. Finally, I chose to use a USB flash drive to install the fedora13 system unattended; it is found that the installation speed of the USB flash disk is faster based on the previous experience of using the USB flash disk. II. production tools: 16G Kingston udisk 1;udisk boot production tools ultraiso_v9.5.2.zip; iso image file Fedora-13-i386-DVD.iso
Three, the production of U disk boot Method: 1. first use the Ultraiso software to open the fedora-13-i386-DVD.iso, because it is made in Win7 system, run the Ultraiso software right-click and choose "run as administrator ". Www.2cto.com 2. in the open iso file management window, delete the entire Packages folder, because the Packages package cannot be used during the installation process, it will occupy a large disk space, in addition, you can increase the creation time of the entire boot USB flash drive. if the size of the USB flash drive is large enough, you can tolerate a longer production time without deleting it. 3. insert a USB flash drive and choose start> write to hard disk image on the main menu of Ultraiso. the pop-up dialog box displays the inserted USB flash drive, the image file is just open iso path, write Mode Select "USB-HDD +"; click "write" until the production is complete, prompt production successful; at this time, you can first test the U disk can guide, boot boot USB flash drive boot settings everyone knows, not to mention. 4. copy the fedora-13-i386-DVD.iso to the Just Made U disk, the default format after the U disk is made is Fat32, can be copied in the Windows system, but to ensure the integrity of iso. Copying iso to a USB flash drive is important. otherwise, during the installation of fedora13, you will be prompted to find the required package or installation image file. 5. test the USB flash drive to start and install the fedora13 system. on the installation media page, choose hard disk installation>/dev/sdb4 (the default USB flash drive is the last device, depending on your situation, I am sdb4). other installation options are the same as those installed using the optical drive. people on Earth know how to choose one.
4. create an unattended USB Flash Drive: 1. the USB flash drive is also used with kickstart, but the installation media is different. you only need to modify it to implement it. You can use the system-config-kickstart software to customize the method obtained by kickstart file, or directly modify the/root/anaconda. cfg file. 2. start kickstart and modify syslinux in the isolinux folder of the USB flash drive. cfg file to start the kickstart method to install fedora13. modify syslinux. content of the cfg File (except for the description): default vesamenu. c32 # prompt 1 timeout 60 # adjust the menu selection time to a little smaller display boot. msg menu background splash.jpg menu title Welcome to Fedora 13! Menu color border 0 # ffffffff #00000000 menu color sel 7 # ffffffff # ff000000 menu color title 0 # ffffffff #00000000 menu color tabmsg 0 # ffffffff #00000000 menu color unsel 0 # ffffffff #00000000 menu color hotsel 0 # ff000000 # ffffffff menu color hotkey 7 # ffffffff # ff000000 menu color scrollbar 0 # ffffffff #00000000 label linux www.2cto.com menu label ^ Install a new system or upgrade an existing s Ystem menu default kernel vmlinuz append initrd = initrd. img stage2 = hd: sdb4 ks = hd: sdb4/fedora13.cfg # ks = hd: sdb4/fedora13.cfg is added. specify the kickstart file as fedora13.cfg under the USB flash drive root, sdb4 is a USB flash drive. # Other menu options that are not used are deleted.
3. modify kickstart file, select the software package to be installed, and execute some things to be done after installation. my application needs to create a user and install a serial driver. The modified fedora13.cfg content is as follows: # Kickstart file automatically generated by anaconda. # version = DEVELinstallharddrive -- partition =/dev/sdb4 -- dir =/# select the installation mode from the hard disk, the installation media location is USB flash drive (sdb4), and the iso image file is under the root. Lang zh_CN.UTF-8keyboard ustimezone Asia/Shanghairootpw -- iscrypted $6 $ bAW3ZgmpSFdw4s7E $ assets/fv3z4yftnln57ilaks. disable www.2cto.com selinux -- disabledauthconfig -- enableshadow -- passalgo = sha512 -- enablefingerprintfirewall -- service = sshfirstboot -- disabled # Disable firstboot to avoid setting users after installation, by default, fedora does not allow login in the root graphic mode, followed by adding users.
# The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to workclearpart -- all -- drives = sda # select clear all partitions, otherwise you will be prompted to manually select ignoredisk -- only-use = sda, sdbpart/boot -- fstype = ext4 -- asprimary -- size = 500 part/-- fstype = ext4 -- grow -- asprimary -- size = 500 part swap -- size = 4000 part None -- Fstype = vfat -- label = "Fedora_13_ I" -- onpart = sdb4 -- noformat # Do not give the USB flash disk format. bootloader -- location = mbr -- driveorder = sda, sdb -- append = "rhgb quiet" % packages # select the installation package, depending on your situation, @ Base @ Core @ admin-tools @ base-x @ chinese-support @ core @ development-tools # development kit is strongly recommended. @ Editors @ fonts @ games @ gnome-desktop @ graphical-internet @ graphics @ hardware-support @ input-methods @ java @ online-docs @ printing @ sound-and-video @ text -internetImageMagickcjkuni-ukai-fontscjkuni-uming-fontstpd www.2cto.com gokgpgmegvfs-obexftphdparmiokjack-audio-connection-kitluam17n-contrib-sinhalam17n-db-assamesem17n-db-bengalim17n-db-gujaratim17n-db-hindim17n-db-kannadam17n-db-malayalamm17n-db-oriyam17n-db -Punjabim17n-db-tamilm17n-db-telugumtoolsncftpsystem-config-networkvorbis-toolsxfsprogs % postuseradd user # Add user echo "123456" | passwd -- stdin user # set a simple password mount/dev/sdb4/mntcm/mntunzip-d/lib/modules /2.6.33.3-85. fc13.i686. PAE/xr17v35x-lnx2.6.32-pak.zipcd/lib/modules/2.6.33.3-85. fc13.i686. PAE/xr17v35x-lnx2.6.32-pak/cp/mnt/xr17v35x. ko/mnt/xr17v35x. o. # Copy the compiled serial driver to the corresponding directory. if you have used the make command to compile the driver, you cannot find that the driver supports ma. Keumount/mntecho "insmod/lib/modules/2.6.33.3-85. fc13.i686. PAE/xr17v35x-lnx2.6.32-pak/xr17v35x. ko ">/etc/rc. local ## set to load the serial drive module % end www.2cto.com 4. the speed of using a USB flash drive to install fedora13 is very fast. this can be achieved by adding user users and loading the serial driver at startup.
V. Conclusion: the preparation of the unattended installation of fedora13 on the USB flash drive should be successful, and the rapid installation of fedora13 on 50 sets of machines has been completed. I have a few questions to discuss with experts: 1. set the media to harddrive -- partition =/dev/sdb4 -- dir =/. The syntax is correct, but each time you are prompted to manually select the media, is it a bug ora13 bug? 2.% post is executed. if make compilation is supported, I have never succeeded. the kernel version installed on the make.3.U disk is 2.6.33.3-85. fc13.i686. PAE, which cannot be solved. the CD is 2.6.33.3-85. fc13.i686. Finally, we wish you a smooth installation of an unattended USB flash drive. Author: tom59213626

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.