2002-11-14 11:47:18

by Jani Averbach

[permalink] [raw]
Subject: How do I re-activate IDE controller (secondary channel) after boot?


Hello!

Is there any way to activate again secondary IDE channel from kernel (or
user space), if I has disabled it from bios?

My problem is that:
The bios won't boot at all if I have over 32G hard disk connected, but if
I disabled secondary IDE channel, it will.

So is it possible to re-activate this IDE channel, and if it is possible,
how this should be done and would this cause any trouble afterward?

At the moment my kernel version is 2.4.20-rc1.

My IDE controller is:

00:01.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
(prog-if 80 [Master])
Flags: bus master, medium devsel, latency 32
I/O ports at e000 [size=16]

Any advices are highly appreciate,

Jani

--
Jani Averbach


2002-11-14 14:43:58

by Mike Dresser

[permalink] [raw]
Subject: Re: How do I re-activate IDE controller (secondary channel) after boot?

On Thu, 14 Nov 2002, Jani Averbach wrote:

> My problem is that:
> The bios won't boot at all if I have over 32G hard disk connected, but if
> I disabled secondary IDE channel, it will.

Don't disable the ide channel, set the hard drive type to none in the
bios, instead of auto. I have 5 or 6 machines that are like that, 120 gig
drives in machines with 32 gig limits, and a few with 8 gig limits

If you are running 2.2.2x, make sure you put Andre's IDE patches in, as it
properly enables the controller to work at full speed, with DMA.

Mike

2002-11-14 14:52:54

by Jani Averbach

[permalink] [raw]
Subject: Re: How do I re-activate IDE controller (secondary channel) after boot?

On Thu, 14 Nov 2002, Mike Dresser wrote:

> Don't disable the ide channel, set the hard drive type to none in the
> bios, instead of auto.

It was set to none. I emphazise that bios will halt if drive is connected
in 80G mode, regardless of bios setting (Disabling ide-2 will help,
however).

I have found 3 different way to boot machine with this hd so far:
1) jumpper drive to 32G mode
2) disable ide-2 channel
3) don't connect disk's cables at all. =)


BR, Jani

--
Jani Averbach

2002-11-14 15:02:38

by Mike Dresser

[permalink] [raw]
Subject: Re: How do I re-activate IDE controller (secondary channel) after boot?

On Thu, 14 Nov 2002, Jani Averbach wrote:

> On Thu, 14 Nov 2002, Mike Dresser wrote:
>
> > Don't disable the ide channel, set the hard drive type to none in the
> > bios, instead of auto.
>
> It was set to none. I emphazise that bios will halt if drive is connected
> in 80G mode, regardless of bios setting (Disabling ide-2 will help,
> however).
>
> I have found 3 different way to boot machine with this hd so far:
> 1) jumpper drive to 32G mode
> 2) disable ide-2 channel
> 3) don't connect disk's cables at all. =)

Very odd BIOS, but that's a given. What happens in case #1? I thought I
remembered a way to get the full capacity after Linux has booted up, using
that method.

Mike

2002-11-14 15:33:47

by Jani Averbach

[permalink] [raw]
Subject: Re: How do I re-activate IDE controller (secondary channel) after boot?

On Thu, 14 Nov 2002, Mike Dresser wrote:

> Very odd BIOS, but that's a given.

indeed, sigh.

> What happens in case #1?

dmesg:
...
hdd: ST380021A, ATA DISK drive
...


cfdisk 2.11w:

Disk Drive: /dev/hdd
Size: 33820286976 bytes, 33.8 GB
Heads:16 Sectors per Track: 63 Cylinders: 65531


Real values from label on top of disk:
16,383 Cyl, 16 HDS, 63 Sect - 156,301,488 LBA


> I thought I remembered a way to get the full capacity after Linux has
> booted up, using that method.
>

Even when drive has been jumppered to 32G? Please tell. =)

BR, Jani

--
Jani Averbach

2002-11-14 15:52:20

by Mike Dresser

[permalink] [raw]
Subject: Re: How do I re-activate IDE controller (secondary channel) after boot?

On Thu, 14 Nov 2002, Jani Averbach wrote:

> > I thought I remembered a way to get the full capacity after Linux has
> > booted up, using that method.
> >
>
> Even when drive has been jumppered to 32G? Please tell. =)

Well, from a debian-user posting I made today about crontab, and then
finding out i misread his statement completely, I'm in danger of
having my license to help revoked.

But I'll google anyways

take a look at the Large-Disk-HOWTO

http://www.win.tue.nl/~aeb/linux/Large-Disk-11.html#ss11.3

There's a program called setmax, that sets the maximum capacity. As well,
there appears to be kernel patches, these appear to have been applied to
2.5.3 and above, but maybe not 2.4.x?

According to the howto, drives over 137 are still limited, with a patch to
2.5.3 handling it again.

I'm hoping someone who knows more about the kernel whether this patch has
been applied somewhere along the line.

Is your drive an IBM?

Apparently Maxtor does it right, and IBM doesn't. IBM , you software clip
the drive to a certain size in another machine, and then move it back to
your original machine.

Maxtor, you can just use the setmax.

Hopefully my rambling helps, and doesn't get my license to help taken away

Mike

2002-11-14 18:29:58

by Jani Averbach

[permalink] [raw]
Subject: Solved: Re: How do I re-activate IDE controller (secondary channel) after boot?

On Thu, 14 Nov 2002, Mike Dresser wrote:

>
> take a look at the Large-Disk-HOWTO
>
> http://www.win.tue.nl/~aeb/linux/Large-Disk-11.html#ss11.3
>

I don't know how I did miss this one, because I read (some part of) that
howto...

> As well, there appears to be kernel patches, these appear to have been
> applied to 2.5.3 and above, but maybe not 2.4.x?
>

Yes, with 2.5.47, CONFIG_IDEDISK_STROKE=y and with 32G jumper, the drive
and bios are working together, and the size is precisely right.


Big Thanks!

BR, Jani

P.S. The drive is Seagate barracuda ATA IV 80G (ST380021A).

--
Jani Averbach