Auto-mounting ext2 slices

Kris Kennaway kris at obsecurity.org
Tue Apr 27 04:43:35 PDT 2004


On Tue, Apr 27, 2004 at 04:14:02AM -0700, andy_park at nospammail.net wrote:
> -- Original message --
> No, there's also a fsck_ext2fs.  This is necessary for fsck to have
> any hope of being able to clean the filesystem automatically (it
> doesn't know about weirdly named binaries like e2fsck :-), although
> you may need to copy it into /sbin since /usr isn't mounted by the
> time fsck runs.
> 
> Kris
> -- End of original message --
> 
> Right, so I copied fsck_ext2fs (which I had already, in /usr/local/sbin)
> to /sbin, and hard-reset the system, but the boot still halts at the
> point it tries to mount the ext2 slice. I get a warning that says the
> slice is not clean, followed by a 'no permissions' error. The other
> oddity is that simply trying 'fsck /dev/ad1s5' doesn't work (it complains
> about the magic number being incorrect), although the man page for
> fsck_ext2fs suggests that fsck should be able to invoke fsck_ext2fs. Does
> this mean the slice has a corrupt superblock?
>
> I also have a follow-up question. Is there a way to mark a slice 'dirty'
> without crashing or hard-resetting the OS? It would considerably ease my
> testing.

You can just use fsck -f.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040427/970f1533/attachment.bin


More information about the freebsd-questions mailing list