From nobody@FreeBSD.org  Sat Oct 13 18:26:37 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9A4AC16A419
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 13 Oct 2007 18:26:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 8C6B913C442
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 13 Oct 2007 18:26:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9DIQX0E025895
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 13 Oct 2007 18:26:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9DIQXpi025894;
	Sat, 13 Oct 2007 18:26:33 GMT
	(envelope-from nobody)
Message-Id: <200710131826.l9DIQXpi025894@www.freebsd.org>
Date: Sat, 13 Oct 2007 18:26:33 GMT
From: Eugene Sobolev <amitrans@narod.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Salvage UFS partition with /sbin/fsck
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117155
>Category:       i386
>Synopsis:       Salvage UFS partition with /sbin/fsck
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 13 18:30:03 UTC 2007
>Closed-Date:    Mon Oct 15 04:11:35 UTC 2007
>Last-Modified:  Mon Oct 15 04:11:35 UTC 2007
>Originator:     Eugene Sobolev
>Release:        FreeBSD 6.2
>Organization:
Chaos Constructions
>Environment:
FreeBSD amiga. 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Tue Aug 21 23:27:50 MSD 2007     wsadm@amiga.:/usr/src/sys/i386/compile/BSD_P4C800E_VER7  i386

>Description:
After reboot (pc crash during jdk16 compilation from ports) i had to use /sbin/fsck for restore data on my /usr file-system. /sbin/fsck has forced me to answer more than 7000 times on the question message:

UNREF FILE I=4218477 OWNER=root MODE=100644
SIZE=2244 MTIME=May 27 Oct 2000
Reconnect? [yn]

The answer to default does not exist. I should answer more than 7000 times: "y" and press Enter!!! It not ridiculously also is really enormous problem. It is complex to like respect for the developer which supposes such children's errors. 

>How-To-Repeat:
1. Estimate I-node which it is required Reconnect
2. If > 100 ask from user: UNREF FILE > 100, Reconnect all? [yn]
3. Default answer for any /sbin/fsck question: "y", there should be enough pressing Enter for default user answer!

>Fix:
Outcome on Ubuntu ;)


>Release-Note:
>Audit-Trail:

From: Rui Paulo <rpaulo@fnop.net>
To: Eugene Sobolev <amitrans@narod.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/117155: Salvage UFS partition with /sbin/fsck
Date: Sun, 14 Oct 2007 13:10:40 +0100

 fsck has the -y option:
 
       -y      Causes fsck to assume yes as the answer to all operator ques-
               tions.
 
 
 --
 Rui Paulo
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Oct 15 04:11:18 UTC 2007 
State-Changed-Why:  
There's an option to do what you want to, -y. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117155 
>Unformatted:
