Find the answer to your Linux question:
Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to mount nfs shares and format disk


    hi all,

    im a newbie when it comes to freebsd (thought the commands would be the same as linux but not)

    i have made a freebsd machine, got it up and running, now i want to mount remote nfs shares on it and format my sdb and use it as another hard drive

    can anyone show me how to do it please

    many thanks,

    rob

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,959
    Do tell me that /dev/sdb is NOT an NFS share?! If not, then you need to partition /dev/sdb and then format the partition, such as /dev/sdb1. Voila! Another drive! Then you can create mount points there for your NFS shares such as /mnt/nfs1, etc.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    1,783
    First, it is FreeBSD, not freebsd. Second, there is no sdb in FreeBSD. The naming convention differs from Linux, it will be da* or ad*, depending on driver in use. Third, mounting NFS shares in FreeBSD is not that different, there may be minor differences, nothing that mount and fstab man pages won't cover.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,959
    Thanks for the clarification Segfault. I haven't used BSD-based systems since the 1980's. I think I forgot more than I knew! In any case, they still have to partition the drive and format/mount the partition.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Linux Guru Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    1,783
    FreeBSD is well documented. https://www.freebsd.org/docs.html
    I personally do not partition disks for a single filesystem, UFS can be laid directly to the raw device.

  7. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,959
    I think you can do that with Linux as well, but it is better to partition it, in my opinion. It seems to me to be a "cleaner" option. I have used UFS on Unix/Solaris systems. I still partitioned them.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #7
    Linux Guru Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    1,783
    Yes, I do the same thing in Linux. One layer less, and you cannot misalign partitions if you don't have them.
    Code:
    # file -s /dev/sdb
    /dev/sdb: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •