Re: my kernel won't recognize ide drives
There is a problem I meet from time to time while trying to minimize the size of my kernel; using only the mainboard drivers fail without success. You also have to compile the generic ide drivers into the kernel. On Fri, Mar 19, 2010 at 5:01 AM, Jan-Christoph Bornschlegel trollf...@googlemail.com wrote: William Immendorf schrieb: On Thu, Mar 18, 2010 at 2:24 PM, Scott Kopel sko...@fsu.edu wrote: So the question is what kernel configuration changes do I have to make to get the kernel to recognize my ide drives? I realize that new kernels name ide drives sdx and that's fine. I don't need them to be labeled hdx. I simply want them to be recognized by the kernel. Look in Device Drivers- Sereal ATA and Parallel ATA drivers, and you should see PATA and SATA drivers. Enable one that matches your hard disk controller, or just enable Generic ATA Support. What I usually do in those cases is matching the output of hwinfo against the help texts in the menuconfig. I had a special case here because I use a PCI PATA controller card with additional drives which needs a different driver than the onboard controllers, and these two drivers use different naming schemes, so I ended up having hda and sda/sdb, which spoiled grub's menu.lst entries a little. So just in case, when booting and unsure which drive has what number, use the tab expansion in the grub interactive shell. Cheers, Jan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my kernel won't recognize ide drives
William Immendorf schrieb: On Thu, Mar 18, 2010 at 2:24 PM, Scott Kopel sko...@fsu.edu wrote: So the question is what kernel configuration changes do I have to make to get the kernel to recognize my ide drives? I realize that new kernels name ide drives sdx and that's fine. I don't need them to be labeled hdx. I simply want them to be recognized by the kernel. Look in Device Drivers- Sereal ATA and Parallel ATA drivers, and you should see PATA and SATA drivers. Enable one that matches your hard disk controller, or just enable Generic ATA Support. What I usually do in those cases is matching the output of hwinfo against the help texts in the menuconfig. I had a special case here because I use a PCI PATA controller card with additional drives which needs a different driver than the onboard controllers, and these two drivers use different naming schemes, so I ended up having hda and sda/sdb, which spoiled grub's menu.lst entries a little. So just in case, when booting and unsure which drive has what number, use the tab expansion in the grub interactive shell. Cheers, Jan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
my kernel won't recognize ide drives - solved
You guys are generous and amazing. Thank you for the responses. I've been working on this issue for weeks, googling everywhere etc.. and the solution was so simple once I had help from the lfs community. I'm writing this so that maybe a future searcher might find it. here's my solution: I installed PCI Utilities-3.1.7 - http://www.linuxfromscratch.org/blfs/view/svn/general/pciutils.html the relevant part of the output of lspci was 00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [IDE mode] 00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller so in make menuconfig I enabled ati pata support option (device drivers/serial ata and parallel ata drivers/ati pata support) and Voila!!! ... fdisk -l the ide drive is sdb here's my original question: I recently built a system following the lfs 6.5 book exactly. The only difference in my distro is that I used kernel 2.6.30.10 instead of the suggested 2.6.30.2 kernel. In compiling the kernel I used all the default settings except the following: --I disabled loadable kernel modules --I added the drivers for my nic --I added limit and recent match support in the netfiltering section --I changed the processor family to athlon/duron The system harddrive is a sata and it all works perfectly. My problem is that I have a several pata (ide) drives that I'd like to add to the system. The kernel doesn't recognize them. fdisk -l shows only sda and in /dev the only harddrive listed is sda. I ran dmesg | grep hd and found no references to hdx drives. I ran dmesg | grep sd and found only a reference to sda. I took the kernel from a Knoppix installation (2.6.32.6) and booted my lfs system with it and all the drives including the pata (ide) drives now appear. This leads me to believe that my problem is with my kernel configuration. So the question is what kernel configuration changes do I have to make to get the kernel to recognize my ide drives? I realize that new kernels name ide drives sdx and that's fine. I don't need them to be labeled hdx. I simply want them to be recognized by the kernel. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
my kernel won't recognize ide drives
I recently built a system following the lfs 6.5 book exactly. The only difference in my distro is that I used kernel 2.6.30.10 instead of the suggested 2.6.30.2 kernel. In compiling the kernel I used all the default settings except the following: --I disabled loadable kernel modules --I added the drivers for my nic --I added limit and recent match support in the netfiltering section --I changed the processor family to athlon/duron The system harddrive is a sata and it all works perfectly. My problem is that I have a several pata (ide) drives that I'd like to add to the system. The kernel doesn't recognize them. fdisk -l shows only sda and in /dev the only harddrive listed is sda. I ran dmesg | grep hd and found no references to hdx drives. I ran dmesg | grep sd and found only a reference to sda. I took the kernel from a Knoppix installation (2.6.32.6) and booted my lfs system with it and all the drives including the pata (ide) drives now appear. This leads me to believe that my problem is with my kernel configuration. So the question is what kernel configuration changes do I have to make to get the kernel to recognize my ide drives? I realize that new kernels name ide drives sdx and that's fine. I don't need them to be labeled hdx. I simply want them to be recognized by the kernel. Thank you for helping with this issue which is stumping me. Scott Kopel English Department Florida State University 850 339 0523 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my kernel won't recognize ide drives
On Thu, Mar 18, 2010 at 2:24 PM, Scott Kopel sko...@fsu.edu wrote: So the question is what kernel configuration changes do I have to make to get the kernel to recognize my ide drives? I realize that new kernels name ide drives sdx and that's fine. I don't need them to be labeled hdx. I simply want them to be recognized by the kernel. Look in Device Drivers- Sereal ATA and Parallel ATA drivers, and you should see PATA and SATA drivers. Enable one that matches your hard disk controller, or just enable Generic ATA Support. -- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -- Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my kernel won't recognize ide drives
On 18 March 2010 19:24, Scott Kopel sko...@fsu.edu wrote: The system harddrive is a sata and it all works perfectly. My problem is that I have a several pata (ide) drives that I'd like to add to the system. The kernel doesn't recognize them. fdisk -l shows only sda and in /dev the only harddrive listed is sda. I ran dmesg | grep hd and found no references to hdx drives. I ran dmesg | grep sd and found only a reference to sda. I took the kernel from a Knoppix installation (2.6.32.6) and booted my lfs system with it and all the drives including the pata (ide) drives now appear. This leads me to believe that my problem is with my kernel configuration. So the question is what kernel configuration changes do I have to make to get the kernel to recognize my ide drives? I realize that new kernels name ide drives sdx and that's fine. I don't need them to be labeled hdx. I simply want them to be recognized by the kernel. In menuconfig, device drivers, Serial ATA and Parallel ATA drivers - the PATA drivers start with 'ACPI firmware driver for PATA' and continue to the end of that section. Use lspci, and google, and the help for the driver options, to determine which is appropriate for the chipset(s) on your motherboard. This is probably a case where keeping the original kernel and modules is a good idea, just in case adding drivers means the existing sda becomes something else (which will play havoc with /etc/fstab). I recommend adding an EXTRAVERSION for the new kernel, and giving the bzimage a unique name (or 'an unique name' for some of the people here). If the new drives appear, but cause your existing drive to 'move', revert to the original kernel and then I would mount by label or by uuid (man fstab). As always, backups are a good idea, but with luck it will be a walk in the park. ĸen -- After tragedy, and farce, OMG poneys! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my kernel won't recognize ide drives
On 18/03/10 19:24, Scott Kopel wrote: So the question is what kernel configuration changes do I have to make to get the kernel to recognize my ide drives? It would help if we could see the output of lspci (from pciutils) http://www.linuxfromscratch.org/blfs/view/svn/general/pciutils.html Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: my kernel won't recognize ide drives
On 3/18/10, Andrew Benton b3n...@gmail.com wrote: On 18/03/10 19:24, Scott Kopel wrote: So the question is what kernel configuration changes do I have to make to get the kernel to recognize my ide drives? I have old system with IDE drives and addon cards for sata dirves. The systems sees tht IDE drives as hd and the SATA drives as sd. grep ^[^#].*IDE\|^[^#].*ATA /boot/config-$(uname -r) Shows these are in my config: CONFIG_HAVE_IDE=y CONFIG_IDE=y CONFIG_IDE_XFER_MODE=y CONFIG_IDE_TIMINGS=y CONFIG_IDE_ATAPI=y CONFIG_IDE_GD=y CONFIG_IDE_GD_ATA=y CONFIG_BLK_DEV_IDECD=y CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y CONFIG_IDE_PROC_FS=y CONFIG_BLK_DEV_IDEDMA_SFF=y CONFIG_BLK_DEV_IDEPCI=y CONFIG_BLK_DEV_IDEDMA_PCI=y CONFIG_BLK_DEV_IDEDMA=y CONFIG_ATA=y CONFIG_ATA_VERBOSE_ERROR=y CONFIG_ATA_ACPI=y CONFIG_SATA_PMP=y CONFIG_SATA_SIL24=y CONFIG_ATA_SFF=y CONFIG_SATA_PROMISE=y -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page