From owner-freebsd-fs@freebsd.org Fri Dec 30 02:42:58 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D3F36C96169 for ; Fri, 30 Dec 2016 02:42:58 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A121C1CFD for ; Fri, 30 Dec 2016 02:42:58 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: by mail-it0-x22e.google.com with SMTP id x2so224414078itf.1 for ; Thu, 29 Dec 2016 18:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dragondata.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=TKDlh92mkh7nqtVASjQSc7h/YQ4CYruXsdo69xQdqE4=; b=gAfZfyIL4dL53/IflpCUEWxqEh258IEtiwUSoqCR0A4D7latSI2YB/m172XasMYgll GHRL4VMjukIaIlP1zn4GF3D06qjrkE2o662MX2IJnp3B4x3BHnYNg9o3exv2ICEpWpbO k7evU6mxbfkjjuf/9c5ktJ6zvkNadpVxvbhU0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=TKDlh92mkh7nqtVASjQSc7h/YQ4CYruXsdo69xQdqE4=; b=XGZNcjSmuwfFEObaUTgECeNBMygohUqjg2V1/ltrMXTaOm71Gl4TX4WKzJWP6y0TwD 7EG3e98S/SSlEiPnua7YtzCvtAtdvHqFHwbYI30AI17dX5Lw5jTOPPFlLoQ1cXGD6IlJ Q1eOwaS4D/nFb+OTsGKQh7FgsEiMjt/AUGvzFkEtc62QghwnQiYmTMmQDJsmALk/PsPh gcRUstMRzw6I+7NMRmbdt5PCZTwSVES8YvVXv/EcMhrXl7SB8nwtI8aCC+gVy9LW7tQJ tFeib62FlI4kyjx+cZel1ibpyrkePk7QE1L7WXCZhZCVaO9QIgnrY+qg4gaiF7O1wi+V Uvzg== X-Gm-Message-State: AIkVDXJjIagmddFI/XM8aGuwO1LWsx/TZ2pL6+hrQp3XqRBwFCa1s2nsHnKAWmbgEgSXkQ== X-Received: by 10.36.123.82 with SMTP id q79mr37655143itc.25.1483065777744; Thu, 29 Dec 2016 18:42:57 -0800 (PST) Received: from unassigned.v6.your.org ([2001:4978:1:45:e95d:9cf9:2c69:b03a]) by smtp.gmail.com with ESMTPSA id l3sm10098731iof.33.2016.12.29.18.42.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Dec 2016 18:42:57 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: when ufs is 99% full, current seems to limit creat to 28672 bytes From: Kevin Day In-Reply-To: <201612292039.uBTKdGR4033963@fire.js.berklix.net> Date: Thu, 29 Dec 2016 20:42:56 -0600 Cc: "freebsd-fs@FreeBSD.org Filesystems" Content-Transfer-Encoding: quoted-printable Message-Id: References: <201612292039.uBTKdGR4033963@fire.js.berklix.net> To: "Julian H. Stacey" X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2016 02:42:58 -0000 >=20 > It was really a temporary cludge of mine to tickle for bad blocks, > working from inside the file system. I'd better do it properly, > unmount & experiment with eg camcontrol on the partition or whole > disk, or search ports/ &/or write a little C prog that reads blocks > from a file (aka dev name of partition or whole disk, stores, to > memory, & writes back blocks) >=20 If you don=E2=80=99t mind losing everything: dd if=3D/dev/zero of=3D/dev/daXXX (write blocks of zeros to drive, starting at the first sector and going = until the end) then dd of=3D/dev/null if=3D/dev/daXXX (read everything back and throw it away) If both complete without error, you=E2=80=99re good. Call newfs and = start over. If you have space somewhere else to fit the entire drive and don=E2=80=99t= want to lose everything: dd if=3D/dev/daXXX of=3D/path/to/giant/file (copy the entire drive to /path/to/giant/file) dd if=3D/path/to/giant/file of=3D/dev/daXXX (copy it back to the drive) If any of those do produce errors and you want dd to continue just = skipping the errored sector(s) add =E2=80=9Cconv=3Dsync,noerror=E2=80=9D = and instead of a bad sector being a fatal error, it=E2=80=99ll replace = it with all NULs and keep going. =E2=80=94 Kevin