Sunday, August 8, 2010

How to see linux

1.basic linux infrastructure contains
grub,initrd,kernel,rootfs

we need grub preinstalled on the boot medium
initrd binary
kernel binary
and expanded rfs or ramdisk rfs

each of the 4 can be setup independent of each other(compare with windows .. do we have this flex)

Interestingly initrd is almost similar to rfs, so what really happening is that at one stage of
booting kernel chooses initrd as its rfs and later switches to another rfs and this can be continued further if required

so rfs and kernel highly flexible design

now another interesting thing, all the devices are also files, it gives yet another level of
powerful feature

at the time of boot up kernel loads all the drivers and is initialized ... but if the device
nodes are not present as files on the rfs devices are unusable

so simply we can create device files in the filesystem on the fly to add devices to the system


as different rfs can be mounted on any rfs recursively its possible to switch between them at will

No comments:

Post a Comment