Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2016 17:44:38 -0700
From:      jd1008 <>
Subject:   Re: "fsck -y /" keeps saying "Disk is still dirty" no matter how many times I run it
Message-ID:  <>
In-Reply-To: <alpine.BSF.2.20.1601081810070.15411@abbf.ynefrvtuareubzr.pbz>
References:  <> <alpine.BSF.2.20.1601081810070.15411@abbf.ynefrvtuareubzr.pbz>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

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.

Want to link to this message? Use this URL: <>