Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: etc/rc.d/fsck error "fsck_ffs: Cannot use -x or -X without -n"



On Wed, Feb 24, 2010 at 10:44:15AM +0100, Nicolas Joly wrote:
> On Wed, Feb 24, 2010 at 08:47:12AM +0000, Matthias Scheler wrote:
> > On Wed, Feb 24, 2010 at 02:55:02PM +0900, Ryo HAYASAKA wrote:
> > > /etc/rc.d/fsck of rev 1.11 produces the following error when my system
> > > crashes and reboots:
> > > 
> > > fsck_ffs: Cannot use -x or -X without -n
> > 
> > Same here.
> 
> +1
> 
> And in case of a crash (i hit one recently), it seems to starts full
> filesystems checks ... even with log mounted ones.

Could you try this diff?  The -x option must not be passed to fsck_xxfs.

-- 
Juergen Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)

--- fsck.c.orig 2010-02-18 01:04:29.000000000 +0100
+++ fsck.c      2010-02-24 10:58:21.000000000 +0100
@@ -157,5 +157,5 @@ main(int argc, char *argv[])
                case 'x':
                        addentry(&omhead, optarg, "");
-                       break;
+                       continue;
 
                case 'y':


Home | Main Index | Thread Index | Old Index