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

    Proxy server question

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    27 Posts 5 Posters 5.1k 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.
    • N
      Nachtfalke
      last edited by

      Hi,

      I am not sure how it works but here ist some interesting link:
      http://imroninfo.blogspot.de/2011/05/how-to-configure-squid-to-use-separate.html

      An when looking at your description you should perhaps use /dev/da1s1a instead of da0s1b

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        [2.1.5-RELEASE][root@pfsense.lan]/root(5): mount- /dev/da0s1b
        mount-: Command not found.

        What's up with the dash at the end of the mount command?

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

          @KOM:

          [2.1.5-RELEASE][root@pfsense.lan]/root(5): mount- /dev/da0s1b
          mount-: Command not found.

          What's up with the dash at the end of the mount command?

          Good catch KOM
          tried without the - still the same
          btw the - comes after i pressed the TAB
          [2.1.5-RELEASE][root@pfsense.lan]/root(5): mount /dev/da0s1b
          mount: Command not found.

          @Jamerson:

          @KOM:

          [2.1.5-RELEASE][root@pfsense.lan]/root(5): mount- /dev/da0s1b
          mount-: Command not found.

          What's up with the dash at the end of the mount command?

          Good catch KOM
          tried without the - still the same
          btw the - comes after i pressed the TAB
          [2.1.5-RELEASE][root@pfsense.lan]/root(5): mount /dev/da0s1b
          mount: Command not found.

          Nachtvalk
          thank you for the link,
          i think i miss one step before which is to see which hdd are attached to the pfsense.
          any suggestions which commands to use ?

          when i run df-h command
          it doesn't shows the second HDD is attached !
          i am supposed to do something before it shows the attached second HDD ?

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            The second hard disk should show up as /dev/da1.  If that isn't present then pfSense isn't detecting it.

            The general syntax of the mount command is:

            mount -options /dev/device_name# /folder_name

            /folder_name must already exist.  You can leave options blank for testing.

            Here is how to add a disk to FreeBSD.

            Note that the disk naming scheme is different so when they talk about /dev/ada1 and /dev/adap1, you should use /dev/da1 and /dev/da1s1 respectively.

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

              @KOM:

              The second hard disk should show up as /dev/da1.  If that isn't present then pfSense isn't detecting it.

              The general syntax of the mount command is:

              mount -options /dev/device_name# /folder_name

              /folder_name must already exist.  You can leave options blank for testing.

              Here is how to add a disk to FreeBSD.

              Note that the disk naming scheme is different so when they talk about /dev/ada1 and /dev/adap1, you should use /dev/da1 and /dev/da1s1 respectively.

              thank you
              i believe this for Sata Disk ,
              i've ISCI Drive to the VM .
              when i run df -h it doesn't shows the drive
              i've deleted the disk and add it twice but the same result
              Filesystem    Size    Used  Avail Capacity  Mounted on

              /dev/da0s1a    5.8G    1.1G    4.3G    20%    /
              devfs          1.0K    1.0K      0B  100%    /dev
              /dev/md0      3.4M    116K    3.0M    4%    /var/run
              devfs          1.0K    1.0K      0B  100%    /var/dhcpd/dev

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

                i've ISCI Drive to the VM .

                ???  DO you mean SCSI or iSCSI?  In my lab with VMware Workstation, I added a SCSI disk and it appeared as /dev/da1.

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

                  @KOM:

                  i've ISCI Drive to the VM .

                  ???  DO you mean SCSI or iSCSI?  In my lab with VMware Workstation, I added a SCSI disk and it appeared as /dev/da1.

                  yes i meant the SCSI disk separate than the VM Disk, and is Thick Provision
                  after i updated to 2.2 i beleive it starts showing up the attached disks

                  df -h still doesn't shows the attached hdd
                  what i am doing wrong

                  1 Reply Last reply Reply Quote 0
                  • KOMK
                    KOM
                    last edited by

                    df -h still doesn't shows the attached hdd
                    what i am doing wrong

                    I think df only shows mounted filesystems.  Did you partition, format & mount your disk using the directions in the links I posted?

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

                      @KOM:

                      df -h still doesn't shows the attached hdd
                      what i am doing wrong

                      I think df only shows mounted filesystems.  Did you partition, format & mount your disk using the directions in the links I posted?

                      i am stuck at the first step when i run the command /var/run/dmesg.boot its said /var/run/dmesg.boot:not found
                      i already added to the disk

                      1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM
                        last edited by

                        dmseg.boot is a log file.  You don't run it; you view it with cat or a text editor.

                        OK, firs things first.  What output do you get when you run the command:

                        ls /dev/da*

                        We need to see if pfSense even sees your disk at all.  You are specifically looking for /dev/da1.

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

                          @KOM:

                          dmseg.boot is a log file.  You don't run it; you view it with cat or a text editor.

                          OK, firs things first.  What output do you get when you run the command:

                          ls /dev/da*

                          We need to see if pfSense even sees your disk at all.  You are specifically looking for /dev/da1.

                          this what i get .

                          [2.2-RELEASE][root@firewall.pfsense.lan]/root: ls /dev/da*
                          /dev/da0    /dev/da0s1  /dev/da0s1a /dev/da0s1b /dev/da1
                          
                          1 Reply Last reply Reply Quote 0
                          • KOMK
                            KOM
                            last edited by

                            Ok, so it sees your disk.  I'm not sure what your problem is then.  Just partition, format and mount it as per the guide I linked to:

                            # gpart create -s GPT da1
                            # gpart add -t freebsd-ufs da1
                            # newfs -U /dev/da1s1
                            # mkdir /newdisk
                            # mount /dev/da1s1 /newdisk
                            

                            Add this to /etc/fstab so that it mounts at boot:

                            /dev/da1s1	/newdisk	ufs	rw	2	2
                            
                            1 Reply Last reply Reply Quote 0
                            • J
                              Jamerson
                              last edited by

                              @KOM:

                              Ok, so it sees your disk.  I'm not sure what your problem is then.  Just partition, format and mount it as per the guide I linked to:

                              # gpart create -s GPT da1
                              # gpart add -t freebsd-ufs da1
                              # newfs -U /dev/da1s1
                              # mkdir /newdisk
                              # mount /dev/da1s1 /newdisk
                              

                              Add this to /etc/fstab so that it mounts at boot:

                              /dev/da1s1	/newdisk	ufs	rw	2	2
                              

                              Thank you KOM
                              the problem is when i run the command

                              newfs -U /dev/da1s1

                              it said command not found !

                              [2.2-RELEASE][root@firewall.pfsense.lan]/root: # newfs -U /dev/da1s1
                              #: Command not found.
                              [2.2-RELEASE][root@firewall.pfsense.lan]/root:

                              1 Reply Last reply Reply Quote 0
                              • KOMK
                                KOM
                                last edited by

                                #: Command not found.

                                The # character is meant to represent your shell prompt.  You don't actually type that part.  No wonder you've been having trouble.

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

                                  @KOM:

                                  #: Command not found.

                                  The # character is meant to represent your shell prompt.  You don't actually type that part.  No wonder you've been having trouble.

                                  sorry mommy mistake
                                  does the commands that has /dev/da1s1 means  /dev/da1 for me right ?
                                  i believe dev/da1 is my current install pfsense and dev/da1pl1 is the attached disk ?

                                  1 Reply Last reply Reply Quote 0
                                  • KOMK
                                    KOM
                                    last edited by

                                    I did explain earlier that when they reference /dev/ada1, you would use/dev/da1.  When they use /dev/ada1p1, you would use /dev/da1s1.  p means partition, s means slice, but they are basically the same.

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

                                      @KOM:

                                      I did explain earlier that when they reference /dev/ada1, you would use/dev/da1.  When they use /dev/ada1p1, you would use /dev/da1s1.  p means partition, s means slice, but they are basically the same.

                                      is exactly what i am doing
                                      [2.2-RELEASE][root@firewall.pfsense.lan]/root: newfs -U /dev/da1s1
                                      newfs: /dev/da1s1: could not find special device
                                      [2.2-RELEASE][root@firewall.pfsense.lan]/root:

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        kejianshi
                                        last edited by

                                        I lost track.  Are you still trying to figure out how to cache dynamic content?  Don't waste too much time.  OK?

                                        1 Reply Last reply Reply Quote 0
                                        • KOMK
                                          KOM
                                          last edited by

                                          newfs: /dev/da1s1: could not find special device

                                          OK, this one's on me.  When using gpart, it will make a partition, not a slice.  Try:

                                          newfs -U /dev/da1p1
                                          mkdir /newdisk
                                          mount /dev/da1p1 /newdisk
                                          

                                          I lost track.  Are you still trying to figure out how to cache dynamic content?

                                          We're still going over Unix disk basics at this point.

                                          1 Reply Last reply Reply Quote 0
                                          • K
                                            kejianshi
                                            last edited by

                                            Yeah - Its a nice mental exercise and is good to know (-:

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