Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

cfgmgr is a command under AIX/ksh that checks for new hardware; e.g. new HDD's that have been added without a shutdown.

Question: Are there any similar commands under Linux? If "fdisk -l" doesn't recognize the new HDD (only after reboot). Or is Linux different from AIX, and this command is not needed?

share|improve this question
add comment

4 Answers 4

up vote 1 down vote accepted

In general, with modern hardware, a modern kernel, and a modern distribution, hardware recognition should happen automatically.

There is, however, a program called "kudzu" which will do what you want — attempt to detect new hardware, and add the appropriate configuration. I think, because of the changes in modern systems, it's not really maintained anymore (and for several years, I think it has been more trouble than it's worth). But if you are on an older system, or building something yourself and for whatever reason don't want to do it the modern way, you might find that useful.

share|improve this answer
add comment

Assuming your hardware allows for hotplugging hard drives, I'm fairly sure any modern linux distro should instantly spot the added drive and create device numbers to access it, generally via udev.

share|improve this answer
    
are you sure there is not "cfgmgr" like command under linux? –  LanceBaynes Jun 20 '11 at 13:05
    
i think yast can do this, no? –  LanceBaynes Jun 20 '11 at 13:19
add comment

For hard disk partitions (e.g. after modifying partition tables), have a look at the partprobe command.

share|improve this answer
add comment

For Ubuntu-Debian you can use Partprobe (http://www.cyberciti.biz/tips/re-read-the-partition-table-without-rebooting-linux-system.html) but if you want to detected all LUN's (also RAID Software) I prefer scsitools package (command: sudo rescan-scsi-bus).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.