Fedora Installation and Booting Proccess.prasentation

Embed Size (px)

Citation preview

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    1/18

     

    What is the linux? 

    Linux (often pronounced LIH-nuhks with a short "i") is a Unix-like operating system that wasdesigned to provide personal computer users a free or very low-cost operating system comparable to

    traditional and usually more expensive Unix systems. Linux has a reputation as a very efficient andfast-performing system. Linux's kernel (the central part of the operating system) was developed byLinus Torvalds at the University of Helsinki in Finland. To complete the operating system, Torvaldsand other team members made use of system components developed by members of the FreeSoftware Foundation for the GNU Project.

    Linux is :-

    Multiusers MultitskingClient/Srver PlatformOpen source NatureFree SoftwareProgram Facility .

    Types off linux:-RedHat Linux

    CentOSFedora

    Ubuntu

    Linux fedora 10 Installation :-

    Hardware Requirements :-Processor:-

    Intel Atom 230, Atom 330, Core 2 Duo, Centrino Core 2 Duo, andXeon; AMD Athlon64/x2, Sempron64/x2, Duron64

    Ram:- At least 500 mb ram

    hard disk :- 50 gb

    Installing Fedora 10 Step

    http://searchenterpriselinux.techtarget.com/definition/Unixhttp://searchcio-midmarket.techtarget.com/sDefinition/0,,sid183_gci212714,00.htmlhttp://searchenterpriselinux.techtarget.com/definition/kernelhttp://searchenterpriselinux.techtarget.com/definition/Linus-Torvaldshttp://searchenterpriselinux.techtarget.com/definition/Free-Software-Foundationhttp://searchenterpriselinux.techtarget.com/definition/Free-Software-Foundationhttp://searchenterpriselinux.techtarget.com/definition/Free-Software-Foundationhttp://searchenterpriselinux.techtarget.com/definition/Free-Software-Foundationhttp://searchenterpriselinux.techtarget.com/definition/Linus-Torvaldshttp://searchenterpriselinux.techtarget.com/definition/kernelhttp://searchcio-midmarket.techtarget.com/sDefinition/0,,sid183_gci212714,00.htmlhttp://searchenterpriselinux.techtarget.com/definition/Unix

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    2/18

      Linux fedora Installation minium Requirent

    Minimum partion two:-/root/swap

    Maximum Partion four:-/root (35000 mb at list)/home (512 mb )/boot (100 mb)/swap (double size gor ram) (exam:- Your ram is 521 mb, so swap size is

    1024 mb ){swap is logical file system}

     Note:- Linux use the ext2. Ext3. Ext4 file system

    Fedora 10, also known as Cambridge, was released on November 25th, 2008, and it bringsGNOME 2.24 and KDE 4.1, faster boot experience with Plymouth, better printing, better webcam

    support, improved wireless network connection sharing, better software maintenance and update(powered by PackageKit and RPM 4.6), and virtualization storage. Plus, it adds a new security toolfor IDS (Intrusion Detection System) called SecTool.

    The following tutorial will teach you how to install the DVD edition of the Fedora 10 operatingsystem on your PC. Why the DVD edition? Because we believe it offers most of theapplications you'll need. For those of you that don't have a fast Internet connection, werecommend using one of the Live GNOME or KDE4 editions. However, this guide will makethings very simple for you, but if you get stuck somewhere in the middle of the installation andyou need help, do not hesitate to use our commenting system at the end of the article.

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    3/18

     At this stage, we simply suggest you press Enter, and wait for the system to load...

    Select the "Skip" option when you're asked if you want to check the media before installation, and press "Enter"...

    Anaconda (the Fedora installer) will load and you'll see the welcome screen. Click "Next"...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    4/18

     

    Choose your language...

    Choose your keyboard layout...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    5/18

     

    Type a name for the computer. It can be anything you want...

    Select your location (country/city)...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    6/18

     

    Enter the root (System Administrator) password. The longer, the better (WRITE ITSOMEWHERE)...

    Here comes the partitioning part! If you have an empty hard drive, all you have to do is click"Next," but make sure the "Remove all partitions on selected drives and create default layout"  option is selected. If you don't have an empty hard drive and you still want to install Fedora 10 on

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    7/18

    your machine, then make sure you select the "Use free space on the selected drives and createdefault layout"  option (10 GB minimum of free space is required). Click "Next"...

    We also recommend to select the "Encrypt system" option. Enter a password (the longer, the better)for the encrypted partition...

    Click the "Write changes to disk" button when asked...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    8/18

     

    The hard drive will be formatted and the partitions will be created...

     Now, you can select the desired packages...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    9/18

     

    Hit the "Next" button and everything will be done automatically from now on, just sit back andwatch how the packages are copied to your hard drive, or you can read the latest news whileenjoying a cup of coffee. The installation process will take about 8-10 minutes (depending on yourcomputer specs and the selected packages).

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    10/18

     

    When the installation is over, you will get a "Congratulations, the installation is complete" screen.Click the "Reboot" button and your computer will automatically restart...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    11/18

     

    Remove the DVD from your optical drive. Your brand new Fedora 10 operating system will bootfor the first time...

    If you've chosen to encrypt your partition, then you'll be prompted for the passphrase...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    12/18

     

    The system will continue to boot and in a few seconds you will see the First Boot ConfigurationWizard. Click "Forward" on the Welcome screen...

    Click "Forward" on the License screen...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    13/18

     

    Create a regular user for the system...

    Set the date and time...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    14/18

     

    Send your hardware profile to the Fedora Project (optional)...

    Click "Finish" and you will see the login screen. Enter the password for the regular user you've just

    created...

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    15/18

     

    That's it! Enjoy the ultimate and breathtaking Fedora 10 Linux distribution!

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    16/18

      The Linux Boot Sequence (Process)You might remember when you installed Linux that the installation process prompted you for a listof partitions and the sizes of each in which your filesystems would be placed.

    When allocating disk space for the partitions, the first sector, or data unit, for each partition is

    always reserved for programmable code used in booting. The very first sector of the hard disk isreserved for the same purpose and is called the master boot record (MBR).

    When booting from a hard disk, the PC system BIOS loads and executes the boot loader code in theMBR. The MBR then needs to know which partitions on the disk have boot loader code specific totheir operating systems in their boot sectors and then attempts to boot one of them.

    Fedora Linux is supplied with the GRUB boot loader which is fairly sophisticated and thereforecannot entirely fit in the 512 bytes of the MBR. The GRUB MBR boot loader merely searches for aspecial boot partition and loads a second stage boot loader. This then reads the data in the/boot/grub/grub.conf

     

    configuration file, which lists all the available operating systems and their booting parameters. When this is complete, the second stage boot loader then displays the familiar

    Fedora branded splash screen that lists all the configured operating system kernels for your choice.

    Boot sequencesummary

    •  BIOS• 

    Master Boot Record (MBR)•  GRUB• 

    Kernel•  init•  Run Levels

    • 

    http://oldfield.wattle.id.au/luv/boot.html#bioshttp://oldfield.wattle.id.au/luv/boot.html#mbrhttp://oldfield.wattle.id.au/luv/boot.html#grubhttp://oldfield.wattle.id.au/luv/boot.html#kernelhttp://oldfield.wattle.id.au/luv/boot.html#inithttp://oldfield.wattle.id.au/luv/boot.html#runlevelshttp://oldfield.wattle.id.au/luv/boot.html#runlevelshttp://oldfield.wattle.id.au/luv/boot.html#inithttp://oldfield.wattle.id.au/luv/boot.html#kernelhttp://oldfield.wattle.id.au/luv/boot.html#grubhttp://oldfield.wattle.id.au/luv/boot.html#mbrhttp://oldfield.wattle.id.au/luv/boot.html#bios

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    17/18

    1. BIOS

    • 

    BIOS stands for Basic Input/Output System•  Performs some system integrity checks• 

    Searches, loads, and executes the boot loader program.•  It looks for boot loader in floppy, cd-rom, or hard drive. You can press a key (typically F12

    of F2, but it depends on your system) during the BIOS startup to change the boot sequence.• 

    Once the boot loader program is detected and loaded into the memory, BIOS gives thecontrol to it.

    •  So, in simple terms BIOS loads and executes the MBR boot loader.

    2. MBR

    •  MBR stands for Master Boot Record.• 

    It is located in the 1st sector of the bootable disk. Typically /dev/hda, or /dev/sda•  MBR is less than 512 bytes in size. This has three components 1) primary boot loader info in

    1st 446 bytes 2) partition table info in next 64 bytes 3) mbr validation check in last 2 bytes.•  It contains information about GRUB (or LILO in old systems).

    • 

    So, in simple terms MBR loads and executes the GRUB boot loader.

    3. GRUB

    • 

    GRUB stands for Grand Unified Bootloader.•  If you have multiple kernel images installed on your system, you can choose which one to

     be executed.•  GRUB displays a splash screen, waits for few seconds, if you don’t enter anything, it loads

    the default kernel image as specified in the grub configuration file.•  GRUB has the knowledge of the filesystem (the older Linux loader LILO didn’t understand

    filesystem).

    • 

    Grub configuration file is /boot/grub/grub.conf (/etc/grub.conf is a link to this). Thefollowing is sample grub.conf of CentOS.

    #boot=/dev/sda

    default=0

    timeout=5

    splashimage=(hd0,0)/boot/grub/splash.xpm.gz

    hiddenmenu

    title CentOS (2.6.18-194.el5PAE)

    root (hd0,0)

    kernel /boot/vmlinuz-2.6.18-194.el5PAE ro root=LABEL=/

    initrd /boot/initrd-2.6.18-194.el5PAE.img

    •  As you notice from the above info, it contains kernel and initrd image.• 

    So, in simple terms GRUB just loads and executes Kernel and initrd images.

    4. Kernel

    •  Mounts the root file system as specified in the “root=” in grub.conf•  Kernel executes the /sbin/init program•  Since init was the 1st program to be executed by Linux Kernel, it has the process id (PID) of

    1. Do a ‘ps -ef | grep init’ and check the pid.•  initrd stands for Initial RAM Disk.

    • 

    initrd is used by kernel as temporary root file system until kernel is booted and the real rootfile system is mounted. It also contains necessary drivers compiled inside, which helps it toaccess the hard drive partitions, and other hardware.

  • 8/9/2019 Fedora Installation and Booting Proccess.prasentation

    18/18

    5. Init

    • 

    Looks at the /etc/inittab file to decide the Linux run level.•  Following are the available run levels

    • 

    0 – halt•  1 – Single user mode•  2 – Multiuser, without NFS• 

    3 – Full multiuser mode•  4 – unused•  5 – X11•  6 – reboot

    • 

    Init identifies the default initlevel from /etc/inittab and uses that to load all appropriate program.

    • 

    Execute ‘grep initdefault /etc/inittab’ on your system to identify the default run level•  If you want to get into trouble, you can set the default run level to 0 or 6. Since you know

    what 0 and 6 means, probably you might not do that.•  Typically you would set the default run level to either 3 or 5.

    6. Runlevel programs

    •  When the Linux system is booting up, you might see various services getting started. Forexample, it might say “starting sendmail …. OK”. Those are the runlevel programs,executed from the run level directory as defined by your run level.

    • 

    Depending on your default init level setting, the system will execute the programs from oneof the following directories.

    •  Run level 0 – /etc/rc.d/rc0.d/•  Run level 1 – /etc/rc.d/rc1.d/•  Run level 2 – /etc/rc.d/rc2.d/•  Run level 3 – /etc/rc.d/rc3.d/• 

    Run level 4 – /etc/rc.d/rc4.d/• 

    Run level 5 – /etc/rc.d/rc5.d/•  Run level 6 – /etc/rc.d/rc6.d/

    • 

    Please note that there are also symbolic links available for these directory under /etc directly.So, /etc/rc0.d is linked to /etc/rc.d/rc0.d.

    • 

    Under the /etc/rc.d/rc*.d/ directories, you would see programs that start with S and K.•  Programs starts with S are used during startup. S for startup.•  Programs starts with K are used during shutdown. K for kill.•  There are numbers right next to S and K in the program names. Those are the sequence

    number in which the programs should be started or killed.

    • 

    For example, S12syslog is to start the syslog deamon, which has the sequence number of 12.S80sendmail is to start the sendmail daemon, which has the sequence number of 80. So,syslog program will be started before sendmail.

    There you have it. That is what happens during the Linux boot process.