Results 1 to 5 of 5

Thread: ZFS - How to mount pool as device, not as folder off root

  1. #1
    Join Date
    Jul 2020
    Beans
    8

    ZFS - How to mount pool as device, not as folder off root

    Hello, I am migrating to KDE Neon and bringing a ZFS pool with me. On my Mac I had OpenZFS installed.

    I installed the latest ZFS https://zfsonlinux.org/ and imported my pool. However rather than importing and have it listed as a separate device (as it does on Mac), it imported as a folder off root on my system disk.

    Is there a method of changing the mount point when importing the pool (or doing it after the fact) to make it show up as a device adjacent to my system drive? I can't find anything about this in the import documentation.

    Thank you

  2. #2
    Join Date
    Oct 2006
    Beans
    58,286

    Re: ZFS - How to mount pool as device, not as folder off root

    Thread moved to the "Ubuntu/Debian BASED" forum.

  3. #3
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: ZFS - How to mount pool as device, not as folder off root

    Hi, ZFS will always be mounted as a folder, rather than showing up as a device in the GUI.

    You can work around it by bookmarking the folder the pool is mounted under and you are able to change the mountpoint via the following command:
    Code:
    sudo zfs set mountpoint=/media/$USER/folder poolname
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  4. #4
    Join Date
    Jul 2020
    Beans
    8

    Re: ZFS - How to mount pool as device, not as folder off root

    Thanks for the info Charles

    I tried relocating as you described, but for some reason I don't see the folder now...

    I ran this (no errors)
    sudo zfs set mountpoint=/media/rbrown/BigDiskZFS BigDiskZFS

    Then I went to the folder and looked for it:
    rbrown@rob-macpro:/media/rbrown$ ls
    'Macintosh SSD''Recovery HD'


    But I only see two other drives in there ^

    What am I doing wrong here?




  5. #5
    Join Date
    Jul 2020
    Beans
    8

    Re: ZFS - How to mount pool as device, not as folder off root

    OK strange. After exporting, then reimporting, the zpool shows under the media/$USER folder. I guess I fixed it.

    rbrown@rob-macpro:/media/rbrown$ ls
    BigDiskZFS'Macintosh SSD''Recovery HD'
    rbrown@rob-macpro:/media/rbrown$

    I also added it as a location in the file manager as a shortcut on the side bar.

    Thanks for your help.



Tags for this Thread

Bookmarks

Posting Permissions

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