From owner-freebsd-questions@freebsd.org Sat Jan 9 00:44:49 2016 Return-Path: Delivered-To: freebsd-questions@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 EABB4A685CA for ; Sat, 9 Jan 2016 00:44:49 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::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 B716D1235 for ; Sat, 9 Jan 2016 00:44:49 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: by mail-oi0-x22e.google.com with SMTP id o124so13012396oia.3 for ; Fri, 08 Jan 2016 16:44:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=d9hvr81pfgZs/lzrnE+y+bpSak+jeIfakVvI1jjhcrE=; b=CvvX+foP+uanIhb+G6HiTF/d2MjJ3U/Lb9oKidN0Hcoqkdu6Ru0cltXy6U9vWZ0oQx z9mMSle3RI5inGnf8YPRA+lfa8Sy+aEIdE4VjcjDxIr9Qxs2FxQoOPYIRaE66HG5KqSk RO6S81DoigFa570e2LFwjJok8l1h42kzfppgM+jia+1pCbtRIXw9tLAuqk+Efj99OmZR i8tev7GkWQUsrrZnXy0XDQbxxuUsaMkf5adojKhQpoa7qnLmSf4G/hdaO8NxmslJPo0o 0pVRQqcfZlr1mN3GI1+yZ4qMXUlezvuewZtNE0fhSKVAHl7ircGmJY55ZV9romz4U+61 CySQ== X-Received: by 10.202.79.137 with SMTP id d131mr80821767oib.37.1452300289035; Fri, 08 Jan 2016 16:44:49 -0800 (PST) Received: from localhost.localdomain ([50.243.6.59]) by smtp.googlemail.com with ESMTPSA id l19sm7615557oig.27.2016.01.08.16.44.47 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jan 2016 16:44:47 -0800 (PST) Subject: Re: "fsck -y /" keeps saying "Disk is still dirty" no matter how many times I run it To: freebsd-questions@freebsd.org References: <569017FF.9060509@rawbw.com> From: jd1008 Message-ID: <569057F6.6060903@gmail.com> Date: Fri, 8 Jan 2016 17:44:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2016 00:44:50 -0000 On 01/08/2016 05:15 PM, Lars Eighner wrote: > On Fri, 8 Jan 2016, Yuri wrote: > >> As a result of the power outage I needed to run fsck on UFS disk with >> soft-updates. >> >> But every time the command 'fsck -y /' says that it corrected a lot >> of problems, but it still leaves the disk dirty. I ran it at least 15 >> times - same result. > > Most likely you have a bad sector on your disk. fsck cannot fix this. > When you write to the disk, hopefully the disk will mark the sector > bad, and basically hide it. Unfortunately, you cannot mount it to > write if it is dirty. You can only newfs it, which means goodbye to > everything since your last backup. After you newfs, you can restore > from your backup. > > >> >> What would be the way to proceed from here? >> >> (I ran fsck before, but it never happened that fsck keeps finding >> problems) >> >> Thank you, >> Yuri Can you boot from a live fbsd cdrom and run fsck on the boot drive? Add the option -f -v Assuming your boot partition and slice is |ada0s1a |fsck -v -f -y /dev/|ada0s1a 2>&1 | tee /tmp/fsck.out| Please provide the file /tmp/fsck.out by uploading it to some sharing website, and provide the url to it. Be sure the drive in question is not mounted.