Re: [ilugd] answer seeking by an admin
Sharad Birmiwal wrote: 4) If this disk is configured and partitioned successfully. One has copied /boo, / , /var and /usr of running system to this disk on If you copy / you don't need to copy anything else. -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com Necessity is the mother of invention. Stealing logic from one person is plagiarism, stealing from many is research. The great are those who achieve the impossible, the petty are those who cannot - rrs ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] answer seeking by an admin
inline replies On 11/3/06, thomas [EMAIL PROTECTED] wrote: In one of interview of RHEL I have been asked following question. Please help me in getting answers 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. 2) Are device file corresponding to this drive will be created automatically? If no which command will create corresponding block device file in /dev. Depends on if you use udev[ http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html]. On systems without udev, you have a static /dev directory with most commonly? used devices made. 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? I had to look this up once and found it in /usr/src/linux/Documentation/devices.txt 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? 5) without using dmesg and message file, how one can get prior information that a particular disk is malfunctioning and going to crash / fail. Thank in Advance sharad birmiwal ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] answer seeking by an admin
1. Use lsmod to see whether a new module has been loaded or not. 4. Configure a bootloader like LILO or grub 5. Use smartctl I am not sure about question 2 and 3. From what I understand every device driver available for a OS has a alloted major number. The number used by the current driver can be found from /proc/devices The minor number can be variable depending upon what sequence the device was loaded. If I am correct then question 2 and 3 doesnt make sense. Maybe I dont understand how this works or else these questions are not from RHEL exam ? Mithun - Original Message From: thomas [EMAIL PROTECTED] To: LinuxDelhiUserGroup ilugd@lists.linux-delhi.org Sent: Friday, November 3, 2006 1:40:45 AM Subject: [ilugd] answer seeking by an admin In one of interview of RHEL I have been asked following question. Please help me in getting answers 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. 2) Are device file corresponding to this drive will be created automatically? If no which command will create corresponding block device file in /dev. 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? 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. 5) without using dmesg and message file, how one can get prior information that a particular disk is malfunctioning and going to crash / fail. Thank in Advance ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/ ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] answer seeking by an admin
In one of interview of RHEL I have been asked following question. Please help me in getting answers 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. 2) Are device file corresponding to this drive will be created automatically? If no which command will create corresponding block device file in /dev. 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? 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. 5) without using dmesg and message file, how one can get prior information that a particular disk is malfunctioning and going to crash / fail. Thank in Advance ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/