From owner-freebsd-questions@FreeBSD.ORG Wed Jul 30 11:34:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE3A21065674 for ; Wed, 30 Jul 2008 11:34:42 +0000 (UTC) (envelope-from me@janh.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.freebsd.org (Postfix) with ESMTP id 900DC8FC08 for ; Wed, 30 Jul 2008 11:34:42 +0000 (UTC) (envelope-from me@janh.de) Received: from janh.freebsd (f054096061.adsl.alicedsl.de [78.54.96.61]) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1KO9x21Frp-0001wp; Wed, 30 Jul 2008 13:34:40 +0200 Message-ID: <489051CB.9010808@janh.de> Date: Wed, 30 Jul 2008 13:34:35 +0200 From: Jan Henrik Sylvester User-Agent: Thunderbird 2.0.0.16 (X11/20080726) MIME-Version: 1.0 To: questions-list freebsd Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+S/sxUCV7ZiZ5P7tAF+yDXrVN4Hcn+b/UK8am aefiMoUzK5mbZfamtWdoV/1h9o/2lV/s3BpcPJMjQgo7qLvPox RmeJBwX2U5haButLVYNGA== Subject: New harddisk: "CANNOT READ BLK" Cause? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2008 11:34:43 -0000 I got a new harddisk for my laptop, attached it via firewire, used "dump 0aLf - / | restore xf -" (from the FAQ), and swapped it with my internal one. During that, I also migrated /var and /usr to separate bsdlabels. On reboot during fsck (ad0s1f), I got: CANNOT READ BLK: 251403296 CONTINUE? [yn] y THE FOLLOWING DISK SECTORS COULD NOT BE READ: 251403296, 251403297, 251403298, 251403299, LOOK FOR ALTERNATE SUPERBLOCKS? yes 32 is not a file system superblock SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE Is there a problem with the harddisk? Did I do anything wrong? How do I find out? Since I never used bsdlabel and newfs by hand before for more than trivial cases, I might very well have messed something up. Here is what I came up with. Since I forgot to change it before swapping harddisks, I came up with this simple fstab: /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1e /var ufs rw 1 2 /dev/ad0s1f /usr ufs rw 1 2 This is my bsdlabel for ad0s1: # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 16 4.2BSD 2048 16384 28552 b: 4194304 2097168 swap c: 314568702 0 unused 0 0 # "raw" part, don't edit e: 16777216 6291472 4.2BSD 2048 16384 28552 f: 251658240 23068688 4.2BSD 2048 16384 28552 g: 33554432 274726928 unused 0 0 h: 6287342 308281360 unused 0 0 This is the fdisk partition ad0s1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 314568702 (153597 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 124/ head 254/ sector 63 Anything else? (I could probably recall most of the commands I issued.) Thanks in advance for any help, Jan Henrik