Hard drive detection
What section of the kernel detects internal hard drives upon boot?
Regards
Chris Jones
Quoted 1 line · Chris Jones
What section of the kernel detects internal hard drives upon boot?
A bit of a weird question, but maybe I do not understand where it is coming from. Some context might help.
The hard drives are likely connected to a harddisk controller of some sort and that controller is somehow hooked up in your system. Your kernel needs a driver for the controller. It is 'convenient' to have that driver built in your kernel for the hard drive containing the root file system.
Gr. AvS
Quoted 1 line · Chris Jones
What section of the kernel detects internal hard drives upon boot?
That depends upon how the drive is connected.
But generally speaking, the device driver for the drive-controller will probe and find any attached drives.
So for modern kernels, on systems with SATA drives, the code is in linux/drivers/ata/
Cheers
Quoted 11 lines · On Fri, 04 May 2012 09:13:51 -0400 Mark Lord <[email protected]> wrote:
Quoted 1 line · Chris Jones
What section of the kernel detects internal hard drives upon boot?
That depends upon how the drive is connected.
But generally speaking, the device driver for the drive-controller will probe and find any attached drives.So for modern kernels, on systems with SATA drives, the code is in linux/drivers/ata/
Thanks Mark. That's exactly what I was looking for. And are both PATA and SATA internal drives both located in drivers/ata?
Regards
Chris Jones
On 12-05-04 07:30 PM, Chris Jones wrote:
..
Quoted 2 lines
Thanks Mark. That's exactly what I was looking for. And are both PATA and SATA internal drives both located in
drivers/ata?
..
Yes.
But historically, PATA drives were handled by the original IDE drivers that I worked on in the mid-1990s. That code is in linux/drivers/ide, but we're trying hard to phase it out. The code in linux/drivers/ata (aka. "libata") handles nearly all of the same PATA stuff and more.
Cheers
Quoted 4 lines · On Fri, 04 May 2012 22:51:11 -0400 Mark Lord <[email protected]> wrote:
On 12-05-04 07:30 PM, Chris Jones wrote:
..Quoted 2 lines
Thanks Mark. That's exactly what I was looking for. And are both PATA and SATA internal drives both located in
drivers/ata?
Quoted 8 lines
..
Yes.
But historically, PATA drives were handled by the original IDE drivers that I worked on in the mid-1990s. That code is in linux/drivers/ide, but we're trying hard to phase it out. The code in linux/drivers/ata (aka. "libata") handles nearly all of the same PATA stuff and more.
Yeah I remember reading something a while back about all the IDE/PATA support being migrated to the SATA sets and phasing out the legacy IDE stuff.
So technically, the old IDE sets could be removed with no negative effect on a modern system? Correct?
Regards
Chris Jones
Quoted 16 lines · Chris Jones
Quoted 4 lines · On Fri, 04 May 2012 22:51:11 -0400 Mark Lord <[email protected]> wrote:
On 12-05-04 07:30 PM, Chris Jones wrote:
..Quoted 2 lines
Thanks Mark. That's exactly what I was looking for. And are both PATA and SATA internal drives both located in
drivers/ata?Quoted 8 lines
..
Yes.
But historically, PATA drives were handled by the original IDE drivers that I worked on in the mid-1990s. That code is in linux/drivers/ide, but we're trying hard to phase it out. The code in linux/drivers/ata (aka. "libata") handles nearly all of the same PATA stuff and more.
Quoted 6 lines
Yeah I remember reading something a while back about all the IDE/PATA support being migrated to the SATA sets and phasing out the legacy IDE stuff.
So technically, the old IDE sets could be removed with no negative effect on a modern system? Correct?
That's how I do it here. So, yes.