Mount with FreeBSD 7.0



  • Hi…
    I have a embedded system based in pfsense structure. When it boot, /dev/ad0a is mounted in / and a memory disk (/dev/md0a) is mounted in /mnt. Then i chroot /mnt. Now, i need mount /dev/ad0a in /cf, but it only possible in read-only mode. I need it work in read-write mode. In freebsd 6.3 it works, but now, i try in 7.0 and this happening. Any ideias about happen???

    A example of real case, FreeBSD 6.3,:

    mount

    /dev/ad0a on / (ufs, local, read-only)
    devfs on /dev (devfs, local)
    /dev/md0c on /mnt (ufs, local)
    devfs on /dev (devfs, local)
    /dev/ad0a on /cf (ufs, local, read-only)

    mount -uw /cf

    mount

    /dev/ad0a on / (ufs, local, read-only)
    devfs on /dev (devfs, local)
    /dev/md0c on /mnt (ufs, local)
    devfs on /dev (devfs, local)
    /dev/ad0a on /cf (ufs, local)

    FreeBSD 7.0:

    mount

    /dev/ad0a on / (ufs, local)
    devfs on /dev (devfs, local)
    /dev/md0c on /mnt (ufs, local)
    devfs on /dev (devfs, local)

    mount -o ro /dev/ad0a /cf

    mount

    /dev/ad0a on / (ufs, local, read-only)
    devfs on /dev (devfs, local)
    /dev/md0c on /mnt (ufs, local)
    devfs on /dev (devfs, local)
    /dev/ad0a on /cf (ufs, local, read-only)

    mount -uw /cf

    mount:  : Operation not permitted

    remember that /cf is mounted inside of chroot.

    Thanks



  • I'd probably suggest you would have more luck on the FreeBSD mailing lists, since this is purely a FreeBSD question, not one about pfSense.

    However, what does the /etc/fstab file say?



  • The fstab of filesystem ad0a is:
    /dev/ad0a  /  ufs ro 0 0

    And the fstab inside of memory disk is:
    /dev/ad0a  /cf  ufs rw 0 0



  • I see your initial post now includes meaningful information ;)

    You need to post all the instructions you issue, at no point to you show you ran chroot.  Outside of a chroot environment I'm unable to duplicate mounting a single partition multiple times.  I'd still highly recommend you take this to the FreeBSD lists.


Locked