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

    Squid cache on usb stick (NanoBSD)

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    13 Posts 5 Posters 6.3k 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.
    • D
      dreamslacker
      last edited by

      @jlepthien:

      Can anyone tell me why this is not mounted at boot time? Shouldn't this be?

      That's in the running config.  Try adding the mount command into the config.xml instead for the mounting to persist between reboots.

      1 Reply Last reply Reply Quote 0
      • J
        jlepthien
        last edited by

        Thanks. Will check that out!

        | apple fanboy | music lover | network and security specialist | in love with cisco systems |

        1 Reply Last reply Reply Quote 0
        • J
          jlepthien
          last edited by

          How exactly would I do this? I was looking for fstab entries in the config…
          Isn't there a better method? Where is the original fstab file that gets loaded on boot time? I would like to alter that one instead....

          | apple fanboy | music lover | network and security specialist | in love with cisco systems |

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            The fstab is not held in config.xml. It should be left mostly alone though. Some sed commands may be run on it when switching slices, but it should be OK.

            You could use the shellcmd package to run mount directly, though, if you don't want to use fstab.

            The conf_mount_ro() and conf_mount_rw() commands would not have unmounted your device. I don't see anywhere in the code that would have run umount on an item from fstab like that. I'd check your system log, be sure that the usb device didn't disappear or get redetected overnight. I haven't tried it lately, it used to panic a box to unplug a mounted filesystem but that was supposed to be fixed now. I'm not sure if it unmounts when a device is pulled or what happens.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • J
              jlepthien
              last edited by

              Thanks jimp. I'll check the logs the next time this happens…

              The stick wasn't pulled at any time. The mountpoint is not mounted at the moment so it doesn't work automatically when booting. Shouldn't this work on boot time?

              Here's again my fstab...

              /dev/ufs/pfsense0 / ufs ro,sync,noatime 1 1
              /dev/da0 /usb ufs rw,sync,noatime 1 1
              /dev/ufs/cf /cf ufs ro,sync,noatime 1 1
              
              

              | apple fanboy | music lover | network and security specialist | in love with cisco systems |

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                I think in /etc/rc it only mounts / and /cf explicitly, not all mountpoints in fstab.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • J
                  jlepthien
                  last edited by

                  Was just looking for the shellcmd package. What do you mean by that package? It is not under packages…
                  Or did you mean the command prompt under Diagnostics? I did not find any good solution to have my mountpoint mounted at boot time, yet...

                  | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    Somehow the shellcmd package was left out of the 8.x files. Give it 5-10 minutes and look for it again

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • J
                      jlepthien
                      last edited by

                      Thanks jimp. Will do that…

                      | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                      1 Reply Last reply Reply Quote 0
                      • M
                        menace
                        last edited by

                        hello, did you fix the usb mount problem at boot time by now?!

                        1 Reply Last reply Reply Quote 0
                        • _
                          _igor_
                          last edited by

                          I think in /etc/rc it only mounts / and /cf explicitly, not all mountpoints in fstab.
                          

                          wtf?

                          So this is maybe the reason why only / is mounted, when a filesystem-check (due to maintainance or not properly dismounted disks) occurs? I have had an installation with /var and /home on separate slices, but only problems due to the not mounted filesystems. I switched that out by having only one slice, but I'm not really glad with this situation, so a stock freeBSD on EVERY boot mounts ALL filesystems!

                          It would be nice to change that behaviour please! I want back my different slices!

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