Dear All,
I always get the following message at system boot time: "slice extends
beyond end of disk: truncating". This message is odd, because I have
two identical harddisks (Maxtor DiamondMax 15Gb) and I have formatted
and sliced them in precisely the same way, yet only one of them
reports trouble.
When I search the mailing list archives for others reporting the same
trouble, I find that there's usually a Maxtor disk or an Asus K7V
motherboard (which is what I use too) involved. Funny...
I found one message a while ago that talks about how a kernel hack
"helpfully" extends slices for braindead disks, IIRC. Of course, I
cannot find that message back, nor can I find a reference to it in the
kernel sources.
I tried fiddling with the BIOS, but the disks are detected correctly
by FreeBSD no matter what. :-)
The setup runs like a charm. The disks are fast and give me no grief
and I would not have reported this if it was not for the fact that
these disks are *identical* and yet only one reports a problem. What
am I missing?
******* Relevant dmesg output:
FreeBSD 4.2-BETA #0: Sat Nov 18 15:37:00 CET 2000
...
atapci0: <VIA 82C686 ATA66 controller> port 0xd800-0xd80f at device
4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
...
ad0: 14655MB <Maxtor 51536U3> [29777/16/63] at ata0-master UDMA66
ad2: 14655MB <Maxtor 51536U3> [29777/16/63] at ata1-master UDMA66
...
ad2s5: slice extends beyond end of disk: truncating from 16530822 to
16520553 sectors
******* fdisk output:
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=1868 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1868 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 63, size 10485153 (5119 Meg), flag 80 (active)
beg: cyl 0/ sector 1/ head 1;
end: cyl 652/ sector 63/ head 171
The data for partition 2 is:
sysid 11,(DOS or Windows 95 with 32 bit FAT)
start 10490445, size 3004155 (1466 Meg), flag 0
beg: cyl 653/ sector 1/ head 0;
end: cyl 839/ sector 63/ head 254
The data for partition 3 is:
sysid 15,(Extended DOS, LBA)
start 13494600, size 16514820 (8063 Meg), flag 0
beg: cyl 840/ sector 1/ head 0;
end: cyl 1023/ sector 63/ head 254
The data for partition 4 is:
<UNUSED>
******* Working on device /dev/ad2 *******
parameters extracted from in-core disklabel are:
cylinders=1868 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1868 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 63, size 10485153 (5119 Meg), flag 80 (active)
beg: cyl 0/ sector 1/ head 1;
end: cyl 652/ sector 63/ head 171
The data for partition 2 is:
sysid 11,(DOS or Windows 95 with 32 bit FAT)
start 10490445, size 3004155 (1466 Meg), flag 0
beg: cyl 653/ sector 1/ head 0;
end: cyl 839/ sector 63/ head 254
The data for partition 3 is:
sysid 15,(Extended DOS, LBA)
start 13494600, size 16514820 (8063 Meg), flag 0
beg: cyl 840/ sector 1/ head 0;
end: cyl 1023/ sector 63/ head 254
The data for partition 4 is:
<UNUSED>
******* disklabels
LikeEver# disklabel -r ad0 | tail -6
# size offset fstype [fsize bsize bps/cpg]
a: 204800 0 4.2BSD 0 0 0 # (Cyl. 0 -
12*)
b: 262144 204800 swap # (Cyl. 12*-
29*)
c: 10485153 0 unused 0 0 # (Cyl. 0 -
652*)
e: 2097152 466944 4.2BSD 0 0 0 # (Cyl. 29*-
159*)
g: 7921057 2564096 4.2BSD 0 0 0 # (Cyl. 159*-
652*)
LikeEver# disklabel -r ad2 | tail -6
# size offset fstype [fsize bsize bps/cpg]
e: 204800 0 4.2BSD 0 0 0 # (Cyl. 0 -
12*)
b: 262144 204800 swap # (Cyl. 12*-
29*)
c: 10485153 0 unused 0 0 # (Cyl. 0 -
652*)
f: 2097152 466944 4.2BSD 0 0 0 # (Cyl. 29*-
159*)
g: 7921057 2564096 4.2BSD 0 0 0 # (Cyl. 159*-
652*)
Enjoy,
Kees Jan
----------------------------------------------------------------------
Kees Jan Koster e-mail: dutchman "at" tccn.cs.kun.nl
----------------------------------------------------------------------
Calvin: "Sometimes the world seems like a pretty mean place."
Hobbes: "That's why animals are so soft and huggy."
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message