On 11/2/06, thomas <[EMAIL PROTECTED]> wrote:
> In one of interview of RHEL I have been asked following question.
> Please help me in getting answers
In short, you want help with interview questions? ;-)
> 1) Without using dmesg command and messages and dmesg log file, how
> one will find that hot pluggable drive just inserted has been detected
> by kernel or not.
I would look somewhere under /proc. Maybe /proc/partitions or /proc/diskstats
> 2) Are device file corresponding to this drive will be created
> automatically? If no which command will create corresponding block
> device file in /dev.
If you are using udev, they will be created automagically. If you are
using one of the older systems, MAKEDEV will help create the block
device. Also, mknod.
> 3) If these is no way for automatic generation of block device, how
> major and minor number of a disk can be figured out so that one can
> use mknod device_name b maj_no Minor_no?
No idea.
> 4) If this disk is configured and partitioned successfully. One has
> copied /boo, / , /var and /usr of running system to this disk on
> corresponding directory. What has to be done to write bookable super
> block /MBR on this disk so that one can boot from this disk on next
> reboot.
Use dd? Also, grub-install.
> 5) without using dmesg and message file, how one can get prior
> information that a particular disk is malfunctioning and going to
> crash / fail.
Maybe something under /proc?
Thaths
--
Homer: He has all the money in the world, but there's one thing he can't buy.
Marge: What's that?
Homer: (pause) A dinosaur.
-- Homer J. Simpson
Sudhakar Chandra Slacker Without Borders
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help