From owner-freebsd-stable@FreeBSD.ORG Sat Dec 12 13:31:55 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C957A1065672 for ; Sat, 12 Dec 2009 13:31:55 +0000 (UTC) (envelope-from matpockuh@gmail.com) Received: from mail-fx0-f228.google.com (mail-fx0-f228.google.com [209.85.220.228]) by mx1.freebsd.org (Postfix) with ESMTP id 64C718FC0C for ; Sat, 12 Dec 2009 13:31:55 +0000 (UTC) Received: by fxm28 with SMTP id 28so183506fxm.13 for ; Sat, 12 Dec 2009 05:31:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=A2QSeBsztlu5dbuqVMrpzzQNznDYPGzvUHGM/Rba/p8=; b=jG1VO6iB0+ZSzfPJV1ULq9WwZjN9AOCEVKlvroETfDNMg15N9XKccN13feWsWKz+5/ LD8TS64ONbBPNyDPN54md60bWS6dF5BuciUQ0VuuvvN0spxynI32MguyqG+UNqNtScxX N/ZkyhpfaeHMYc01ifVpyu4rZ5CqJZc/Ml7dw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kZ62TnqgDmA1/49fbSG2MrZsqaw1nsh9JfUfa49+yBv4zHL31UGdQXFODRgadizIw/ 1UqftoWDG6MY0qnXbmMBaEWG02FYiBRlvNSbhQqy0S6Fmg7OjU0j3MV36K7Zjk7sZlCF 1R1ws2CD/jUctoh6778rdWy1CFLXwjl3s98gk= MIME-Version: 1.0 Received: by 10.223.161.205 with SMTP id s13mr2859513fax.70.1260623187601; Sat, 12 Dec 2009 05:06:27 -0800 (PST) Date: Sat, 12 Dec 2009 16:06:27 +0300 Message-ID: <3979a4b0912120506p5d2dafc7mf5fb835e62500c55@mail.gmail.com> From: KOT MATPOCKuH To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Trouble with drive size detection - 31MB visible size on 1TB drive. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2009 13:31:55 -0000 Hi all! I have a problem with drive size detection. After any power cycle my HDD ST31000340NS detected by FreeBSD 7.2 as 31Mb drive. For example: Dec 9 20:33:12 green kernel: ad14: 31MB at ata7-master SATA300 Dec 9 20:33:12 green kernel: GEOM: ad14: corrupt or invalid GPT detected. Dec 9 20:33:12 green kernel: GEOM: ad14: GPT rejected -- may not be recoverable. # atacontrol cap ad14 [skipped] cylinders 64 heads 16 sectors/track 63 lba supported 65134 sectors lba48 supported 65134 sectors # smartctl -a /dev/ad14 [skipped] User Capacity: 33,348,608 bytes I'm tried to reinit/detach/attach drive via atacontrol, but have no result. But after reboot the system in linux and then back to FreeBSD, I have correct disk geometry: ad14: 953869MB at ata7-master SATA300 In linux's dmesg.out I found this messages: [ 8.984053] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [ 9.120175] ata6.00: HPA unlocked: 65134 -> 1953525168, native 1953525168 [ 9.120180] ata6.00: ATA-8: ST31000340NS, SN06, max UDMA/133 [ 9.120183] ata6.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32) [ 9.179789] ata6.00: configured for UDMA/133 [ 9.179851] scsi 5:0:0:0: Direct-Access ATA ST31000340NS SN06 PQ: 0 ANSI: 5 [ 9.179960] sd 5:0:0:0: Attached scsi generic sg5 type 0 [ 9.179992] sd 5:0:0:0: [sdf] 1953525168 512-byte logical blocks: (1.00 TB/93 1 GiB) [ 9.180041] sd 5:0:0:0: [sdf] Write Protect is off [ 9.180044] sd 5:0:0:0: [sdf] Mode Sense: 00 3a 00 00 [ 9.180066] sd 5:0:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA What is HPA? Why drive locks HPA? And... Can I unlock HPA from FreeBSD? -- MATPOCKuH