Date: Sat, 8 Jun 2002 00:20:03 -0700 (PDT) From: =?iso-8859-7?b?tuPj5evv8iDP6erv7e/s/PDv9evv8g==?= <aoiko@cc.ece.ntua.gr> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/38983: Kernel fails to access disk Message-ID: <200206080720.g587K3498432@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/38983; it has been noted by GNATS.
From: =?iso-8859-7?b?tuPj5evv8iDP6erv7e/s/PDv9evv8g==?= <aoiko@cc.ece.ntua.gr>
To: freebsd-gnats-submit@FreeBSD.org
Cc: iedowse@maths.tcd.ie
Subject: Re: kern/38983: Kernel fails to access disk
Date: Sat, 8 Jun 2002 10:09:36 +0300
Ian Dowse wrote:
(being cc'ed would be nice, thanks)
> >On attempting to access a new 40G ide disk(ad3) from my -stable
> >installation o n ad0,
> >I get a kernel error message about "excessive recursion in search for
> >slices".
> =20
> If these commands work, could you post the output of `fdisk ad3'
> and `fdisk ad3sX' where `X' is each extended partition in ad3?
This does not lead anyware. As I have pointed out in the pr,
a piece of code which can parse the partition structure under linux, gets=
=20
confused when run under freebsd, so the problem has to be at a lower
level. But, here you go anyway:
this is the output for /dev/ad3s5
/dev/ad3s5: 1 cyl 1 hd 1 sec
Part Start Size Type Flags
1: 63 3905937 0x83 0x00
2: 62500032 5859504 0x83 0x00
3: 68359536 9805824 0x83 0x00
4: 3906000 28395360 0x05 0x00
same for sX, X>5, since fdisk fails with "can't get disk parameters"(fail=
ed=20
ioctl) when run on *any* slice (s1, s2, ...) but does not fail for ad3:
/dev/ad3: 77545 cyl 16 hd 63 sec
Part Start Size Type Flags
1: 63 3905937 0x83 0x00
2: 62500032 5859504 0x83 0x00
3: 68359536 9805824 0x83 0x00
4: 3906000 28395360 0x05 0x00
but failure getting slice geometry seems natural to me...(anyway,you aske=
d=20
for it, you got it)
> =20
> I haven't looked at the code, but the most likely explanation is
> that you have an extended partition within an extended partition
> that has the `start' set to 0. That would cause this error because
> the extended partition points at itself.
No. All my extended partition tables point to 0x05 and have start set to =
63.
Somewhat trimmed kernel messages follow:
########################################################
Jun 7 22:21:59 erwin /kernel: ad3s7: slice extends beyond end of disk:=20
truncating from 9805824 to 5899824 sectors
Jun 7 22:21:59 erwin /kernel: ad3s10: slice extends beyond end of disk:=20
truncating from 9805824 to 1993824 sectors
Jun 7 22:21:59 erwin /kernel: ad3s13: slice extends beyond end of disk:=20
truncating from 9805824 to 1993824 sectors
Jun 7 22:21:59 erwin /kernel: ad3s16: slice extends beyond end of disk:=20
truncating from 9805824 to 1993824 sectors
Jun 7 22:21:59 erwin /kernel: ad3s19: slice extends beyond end of disk:=20
truncating from 9805824 to 1993824 sectors
Jun 7 22:21:59 erwin /kernel: ad3s22: slice extends beyond end of disk:=20
truncating from 9805824 to 1993824 sectors
Jun 7 22:21:59 erwin /kernel: ad3s25: slice extends beyond end of disk:=20
truncating from 9805824 to 1993824 sectors
Jun 7 22:21:59 erwin /kernel: ad3s28: slice extends beyond end of disk:=20
truncating from 9805824 to 1993824 sectors
Jun 7 22:21:59 erwin /kernel: ad3s31: too many slices
=2E..
Jun 7 22:21:59 erwin /kernel: ad3s49: too many slices
Jun 7 22:21:59 erwin /kernel: ad3: excessive recursion in search for=20
slices; aborting search
##########################################################
Thanks for trying to help anyway!
--=20
Use self-identifying input. Allow defaults. Echo both on output.
- The Elements of Programming Style (Kernighan & Plaugher)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206080720.g587K3498432>
