Skip to main content

Explain the Boot loader GRUB used in Linux.

14.Explain the Boot loader GRUB used in Linux.
Ans.
1. The GRUB program used by fedora core and Enterprise Linux uses a two-step process to begin loading of the operating system. These steps are typically called as stage-1 and stage-2.

2. Stage one, a program on the MBR is used to find the second stage program that will begin the process of loading the Operating system in the system memory.

3. GRUB uses a configuration file called “grub.conf” file stored in “/boot/grub/grub.conf” path to provide information to the second stage loader. “grub.conf” file can be configured according to use.

4. First thing second stage loader does is present you with a nice graphical menu screen from which we can decide which kernel to load.

5. If you don’t choose a kernel to load, GRUB will load whichever kernel is specified in the grub.conf file as the kernel.

6. If we want to select the kernel to load, we can use cursor keys to highlight the kernel we want loaded.

7. Next step is to load the kernel which resides in the /boot directory.

8. GRUB has one last task to do and that is to load a “ramdisk” image, called “initrd” that has some version number as kernel we are going to load in system memory.

9. “Initrd” loads any special drivers that might be needed by the kernel to load the operating system and that’s it for GRUB.

10. Further boot process is done by kernel.

Comments

Popular posts from this blog

Explain the backing up and restoring files in Linux.

9.Explain the backing up and restoring files in Linux. Ans. 1. Backing-up and restoring files is done only by system administrator. 2. Because of built-in features, Linux doesn’t allow users to back-up their own files to removable disks. 3. It’s not enough to know that performing backup is your job, you need to formulate a strategy to making sure your system is not vulnerable to sudden disastrous disruptions. 4. If you have a high capacity tape drive and several good set of restore disks you can take backup every few days. 5. If you are managing a system with scores of users, you might find it more sensible to back up accounts and system configurations. 6. Only you can decide ‘what’ to backup, you need to decide ‘how frequently’ to perform backups, whether to maintain series of incremental backup. 7. You should maintain perfect backups without ever needing to restore to them, this means encouraging users to keep multiple copies of their important files in their ho...

Explain the file systems supported by Linux.

21.Explain the file systems supported by Linux. Ans. 1. Linux can read/write to several file system that originated with other operating system much different from Linux. 2. One reason that Linux supports so many file systems is the design of its virtual file system (VFS) layer, its provides a fairly universal forms of file support, file systems supported by Linux are as follows: 3. ext3: • Ext3 stands for third extended file system. • Starting from Linux Kernel 2.4.15 ext3 was available. • The main benefit of ext3 is that it allows journaling. • Journaling has a dedicated area in the file system, where all the changes are tracked. • When the system crashes, the possibility of file system corruption is less because of journaling. (If no journaling, then fsck command (file system consistency check) is used to check for the corrupted file and to repair that file). • ext3 keeps a record of uncommitted file transactions and applies only those transactions when the sy...

Explain the rc script and how they can be managed by manually.

18.Explain the rc script and how they can be managed by manually. Ans. 1. ‘rc’ scripts are stored in ‘/etc/rc.d’ directory, rc scripts are used to stop and start services for runlevels. 2. In ‘/etc/rc.d’ directory we have some additional directories rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d and rc6.d, the numbers in directory name corresponds to the runlevel and contains the scripts for runlevels. 3. For example let’s take runlevel 5, init program looks in the ‘/etc/rc.d/rc5.d/’ directory for the processes to start and stop. 4. All the scripts in the rc5.d directory are symbolic like to the actual scripts that are located in the ‘/etc/rc.d/init.d/’ directory. The use of symbolic link means that the runlevel can be modified by adding or removing symlinks or changing the order the script run. 5. rc scripts contains symbolic links which can be modified to change the runlevels. 6. Symbolic links begins with a ‘k’ and a number or an ‘s’ and a number. Example: S25netfs -...