Second Hard Drive Content



  • More than two months ago, I successfully added a second hard rive and transfer all content of /usr to that second drive. However, that drive status on Dashboard hasn't shown any sign that it's recording content of the user…see "newdisk" in  pic.

    What command to use to see that indeed it's storing files? When I did the moving, the OS disk (ada0) was at 14%.
    ![Screen Shot 2018-02-28 at 7.32.32 PM.png](/public/imported_attachments/1/Screen Shot 2018-02-28 at 7.32.32 PM.png)
    ![Screen Shot 2018-02-28 at 7.32.32 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2018-02-28 at 7.32.32 PM.png_thumb)



  • Did you provide a symbolic link from the mount point to the new drive?



  • @JKnott:

    Did you provide a symbolic link from the mount point to the new drive?

    Thank you JKnott for responding and great question. I had used Tar to copy and move /usr to the newdisk as described here: https://forum.pfsense.org/index.php?topic=141093.0  So, I had the assumption that all was okay…no wonder I could not see content of the newdisk claiming I didn't have permission despite being the root user.

    So, I looked up symbolic link here: https://www.freebsd.org/cgi/man.cgi?query=link&sektion=2...of course, they could not show the command typed out for one to follow the description in order for one to understand. From my understanding, would this work:

    link (const char ada0/usr, const char ada1/usr)

    I take it that I would need to transfer the ada0/usr to ada1 again using Tar.



  • I've never tried a symbolic link in BSD, but in Linux it's ln -s <destination>.  It appears to be the same for BSD.  What you want to do is mount the new partition and then move the data to it.  Then create the symbolic link.  Another way is to use the existing /usr as the mount point for that partition.  You'd still have to move the data first.  One thing about *nix is it's very flexible in that you often have multiple ways to do things.

    I don't know how comfortable you are working with BSD, so you may want to do some reading on system administration.</destination>



  • One other thing, why are you moving /usr?  That's part of the BSD installation.  Usually, it's /home, where users keep there stuff that's on a separate drive.  I wouldn't expect you'd have a lot of users on pfSense.



  • @JKnott:

    One other thing, why are you moving /usr?  That's part of the BSD installation.  Usually, it's /home, where users keep there stuff that's on a separate drive.  I wouldn't expect you'd have a lot of users on pfSense.

    That's because ada0 is a 16GB SSD; and, it would be filled easily since I have Suricata, Snort, PFBlockerNG, and Squid, as well as adding Ntopng later when it updated. Only one user, it's I the administrator. Also, I have seen others done it as well, so it's not strange.



  • Okay, I found the answer and it's working (/usr is been stored on newdisk)…it's just needs to be at 4GB to show up on the dashboard...see pic. I am still working on why I don't have permission to access it (newdisk) at the command line and I am the sole root user.

    ![Screen Shot 2018-03-02 at 5.58.21 PM.png](/public/imported_attachments/1/Screen Shot 2018-03-02 at 5.58.21 PM.png)
    ![Screen Shot 2018-03-02 at 5.58.21 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2018-03-02 at 5.58.21 PM.png_thumb)


Log in to reply