#1
  1. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    111

    FreeBSD problem booting after un-mounting ext2 slices


    Hi all,

    My fstab looks like this:

    Code:
    # Device                Mountpoint      FStype  Options         Dump    Pass#
    /dev/ad0s1b             none            swap    sw              0       0
    /dev/ad0s1a             /               ufs     rw              1       1
    /dev/ad0s1e             /home           ufs     rw              2       2
    /dev/ad0s1d             /usr            ufs     rw              2       2
    /dev/acd0               /cdrom          cd9660  ro,noauto       0       0
    /dev/ad1s1              /share          ext2fs  rw              1       1
    /dev/ad3s1              /opt            ext2fs  rw              1       1
    Whenever I reboot the system it halts during the boot process, because it wants to fsck_ext2fs the ext2 slices. This must be because it's not unmounting properly when it shuts down. I have seen some workarounds to this bug, and today implemented my own like this:

    Code:
    #!/usr/local/bin/bash
    for i in `mount | grep ext2 | cut -f1 -d' '`
    do
            umount -f $i
    done
    this script is then called at the end of the rc.shutdown script, but still the system wants a manual fsck when booting back up.

    Has anybody seen this and found a fix in freebsd 6 ?


    christo
    This is me: http://chris.uk.com
  2. #2
  3. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    111
    well I finally worked through the problem and whilst I didn't find a direct fix, there are a couple of possible workaround - one of which was to unset the 'pass' flag for the linux slices listed in the fstab. I've documented it all here: freebsd and linux partition problems Just incase that's any use to anybody...


    christo
    This is me: http://chris.uk.com

IMN logo majestic logo threadwatch logo seochat tools logo