Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2005 13:30:03 -0500
From:      Bill Vermillion <bv@wjv.com>
To:        falaki@ce.sharif.edu
Cc:        freebsd-fs@freebsd.org
Subject:   Re: badsect
Message-ID:  <20050224183003.GA95003@wjv.com>
In-Reply-To: <60190.194.225.42.20.1109269416.squirrel@ce.sharif.edu>
References:  <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> <421E090E.1030306@cs.tu-berlin.de> <61562.194.225.42.20.1109267064.squirrel@ce.sharif.edu> <20050224175459.GA94585@wjv.com> <60190.194.225.42.20.1109269416.squirrel@ce.sharif.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, Feb 24, 2005 at 21:53 , falaki@ce.sharif.edu exclaimed "Las Cucarachas 
entran, Pero no pueden salir", and then rambled on saying with:
 

> > If so you need to make a directory to hold the bad sectors
> > on the filesystem with the problem, and then run badsect on
> > that filesystem, and then run fsck on that filesystem.

> In fact I made a mistake while writing the mail. What I did was
>    #badsect /mnt/data/.BAD 27546816

> > Is my assumption [ assuming is a bad thing to do whit computers ]
> > correct in that /mnt/data is another filesystem?

> Yes it is another file system for data

Then you need to change to the root of the data drive.

When on data make a directory to hold the bad sectors.

>From that filesystem root run the badsect utility.

When done, unmount that filesystem and then run fsck and THAT
filesystem.

I suspect the error you got with the number basically being out
of range is that the data filesystem is larger than the
root filesystem, where it appears that you ran the program from.

Bill
-- 
Bill Vermillion - bv @ wjv . com
-- 
Bill Vermillion - bv @ wjv . com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050224183003.GA95003>