Checking ext2 partitions

Posted on 2007-08-01
Last Modified: 2013-11-22
I am setting up a new FreeBSD 6.2 box, and need to mount a number of ext2 partitions. I am able to mount them under normal conditions (after loading the linux emulation and ext2fs modules), but I am unable to fsck them when needed. I am using fsck.ext2 which is included with the Linux compatibility package, but it fails with:

 FATAL: kernel too old
 pid <thePID> (fsck.ext2), uid 0: exited on signal 11
 Segmentation fault

Can anyone provide pointers on how to run fsck successfully? I can boot from a Linux rescue disk if necessary, but I would prefer to find a more direct route.
Question by:glcummins
    LVL 10

    Expert Comment

    try to run it in freebsd single moode
    LVL 24

    Author Comment

    Unfortunately, it fails with the same error in single. Any other ideas?
    LVL 61

    Accepted Solution


    It has fsck.ext3 and fsck.ext2

    fsck will not work over linux emulation layer.
    LVL 24

    Author Comment

    That works beautifully. Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
    About FreeBSD Jails In FreeBSD, jails are a way of doing operating system level virtualization.  The basis of FreeBSD jails is chroot (, which changes the root directory of processes.  As a…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now