Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Mount with FreeBSD 7.0

    Scheduled Pinned Locked Moved Development
    4 Posts 2 Posters 5.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      ca6eca
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • Cry HavokC
        Cry Havok
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • C
          ca6eca
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • Cry HavokC
            Cry Havok
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.