Showing posts with label boot loader. Show all posts
Showing posts with label boot loader. Show all posts

Tuesday, September 2, 2014

Linux Ingredients

My today’s blog is for those readers who are newbie to Linux Operating system. This blog will help you to know what all the Linux OS consists of.


 Fig1: TUX

Now say, for an instance you want to cook a dish. In order to cook that dish you need to know the recipe of that dish. In the same way my today’s blog is about the ingredients that make up Linux OS. Linux contain the Grub boot loader, Bash shell, GNU shell utilities, daemons, X.org graphical server, a desktop environment, and more. These programs are developed by different, independent development groups.

So let’s start. Following names mentioned before the colon is the name which I have given and which is mapped into our daily life.

The Supporters: Daemons

These are the background processes. They start at booting process, so they’re one of the next things that loads after the kernel and before you see your graphical login screen. For example, CRON-D manages the scheduled tasks, which is a daemon; d at the end stands for “daemon.” syslogd is another daemon that traditionally manages system log. 
Fig 2: Linux Daemon

The Heart: Boot loader

When our PC is turned “ON”, our computer’s BIOS or UEFI firmware loads the software from our boot device. It is the first program that loads with any operating system. For Linux, it is called as Grub boot loader. For multiple OS, we are provided the choices to select our desire OS. 
Fig 3: Grub Boot Loader

The Slate: Shell

Linux provides various shells. Most Linux systems use the Bash shell by default. Various other shells are C-shell, Korne shell, Borne shell. Shell provides a command processor interface, and allows controlling computer by typing commands at a text interface. Shells are used to run shell scripts.
 Fig 4: Linux-terminal-bash-shell

The Central Core: Linux Kernel

The precise piece of software Grub boots is the Linux kernel. The kernel is the core of the system. It is responsible for managing CPU, memory, and input/output devices like keyboard, mice, and displays.

The Value addition: Shell utilities

The shell provides some basic built-in commands; For example, commands as critical as the cp command for copying a file, ls command for listing files in a directory, and rm command for deleting files are part of the GNU Core Utilities package.

The Most User Friendly Thing: Graphical Desktop

Desktop of Linux is very user friendly and is same as the desktop of window. They include their own utilities built to fit in with the desktop environment as a whole, like GNOME and Unity include the Nautilus file manager developed as a part of GNOME, whereas KDE includes the Dolphin file manager developed as a part of the KDE project.
Fig5: Desktop Environment
Thus this all are the key ingredients of the Linux OS. Now I am very sure that if asked, that what all Linux OS consist of then, all my readers will be able to answer it. 

Sunday, February 3, 2013

Logical Volume Management In Ubuntu



Logical Volume Management (LVM) is a disk management option that every major Linux distribution includes. Whether you need to set up storage pools or just need to dynamically create partitions, LVM is probably what you are looking for.

                      
                                         Fig1: Logical Volume Management
 What is LVM?

Logical Volume Manager allows for a layer of abstraction between your operating system and the disks/partitions it uses. In traditional disk management your operating system looks for what disks are available (/dev/sda, /dev/sdb, etc.) and then looks at what partitions are available on those disks (/dev/sda1, /dev/sda2, etc.).



Fig2: LV  Manager

With LVM, disks and partitions can be abstracted to contain multiple disks and partitions into one device. Your operating systems will never know the difference because LVM will only show the OS the volume groups (disks) and logical volumes (partitions) that you have set up.
Because volume groups and logical volumes aren’t physically tied to a hard drive, it makes it easy to dynamically resize and create new disks and partitions. In addition, LVM can give you features that your file system is not capable of doing. For example, Ext3 does not have support for live snapshots, but if you’re using LVM you have the ability to take a snapshot of your logical volumes without unmounting the disk.

When To Use LVM?

The first thing your should consider before setting up LVM is what you want to accomplish with your disks and partitions. Some distributions, like Fedora, install with LVM by default.
If you are using Ubuntu on a laptop with only one internal hard drive and you don’t need extended features like live snapshots, then you may not need LVM. If you need easy expansion or want to combine multiple hard drives into a single pool of storage then LVM may be what you have been looking for.

Setting up LVM in Ubuntu

First thing to know about using LVM is there is no easy way to convert your existing traditional partitions to logical volumes. It is possible to move to a new partition that uses LVM, but that won’t be something that we will cover in this article; instead we are going to take the approach of setting up LVM on a fresh installation of Ubuntu 11.10.To install Ubuntu using LVM you need to use the alternate install CD. Download it from the link below and burn a CD or use unetbootin to create a USB drive.

 Fig3: Ubuntu Edition Screen

Boot your computer from the alternate install disk and select your options up until the partition disks screen and select guided – use entire disk and set up LVM.

 Fig4: Partition Disks 

Select the main disk you want to use, typically your largest drive, and then go to the next step.

 Fig5: Disk to Partition

You will immediately need to write the changes to disk so make sure you selected the right disk and then write the changes.

 Fig6: Changes Screen

Select the size you want the first logical volume to be and then continue.

 Fig7: Partitioning Disks

Confirm your disk partitions and continue with the installation.
 Fig8: Changes Screen

The final step will write the GRUB boot loader to the hard drive. It is important to note that GRUB cannot be on an LVM partition because computer BIOS’s cannot directly read from a logical volume. Ubuntu will automatically create a 255 MB ext2 partition for your boot loader.

  Fig9: GBL Installation Permission Screen

After the installation is complete, reboot the machine and boot into Ubuntu as normal. There should be no perceivable difference between using LVM or traditional disk management with this type of installation.


Fig10: Final Completion Screen

This is how the LVM is installed on UBUNTU Linux.