How to access freebsd zfs partition under Linux using zfs-fuse?

08
2013-08
  • Exaos

    I have installed dual OSs on my PC box: Linux and FreeBSD. The FreeBSD is installed on a ZFS partion under /dev/sdb1. Under Linux, the fdisk -l /dev/sdb outputs

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1        4981    40009851   a5  FreeBSD
    /dev/sdb2            4982      121601   936750119+   5  Extended
    /dev/sdb5            4982      121450   935537211   83  Linux
    /dev/sdb6          121451      121601     1212876   82  Linux swap / Solaris
    

    /dev/sdb1 is using ZFS. How to access it using zfs-fuse under Linux?

  • Answers
  • juwi

    The interesting question here are ZFS Versions actually. it is impossible to mount ZFS Versions lower than the current one, as well as it is impossible to downgrade ZFS Pools. While FreeBSD 9 is currently at ZFS Version 28, ZFS-Fuse is not! Afaik ZFS-FUSE is at ZFS Veriosn 16.

    zpool upgrade -v
    

    will AFAIK print your current ZFS Version on FreeBSD. If it is newer than 16, you must wait for a new ZFS-Fuse, that will support your ZFS Version.

    When that is out of the way, do as @Mike Fitzpatrick wrote.

  • Mike Fitzpatrick

    Try zpool import to see a list of zpool candidates for importing, then zpool import pool-name. You may need to use the -f option to force the import if you didn't do zpool export pool-name from FreeBSD prior to rebooting into Linux.


  • Related Question

    command line - How to make scrollock in Linux to work as it does in FreeBSD?
  • Oleksandr Bolotov

    In FreeBSD it's possible to scroll screen buffer back and forth after pressing scrollock how to make it work like this in Linux. I hope there is a solution


  • Related Answers
  • lapo

    I guess you're talking about the actual textual terminal console; out of the box you can see history differently in FreeBSD and Linux: in FreeBSD you ScrollLock and then PageUp/PageDown, while in Linux (AFAIR) you Shift-PageUp/PageDn to the same effect.

    If your question was "how to see the history in Linux" well, that's your answer: remember to use Shift+PageUp instead of ScrollLock+PageUp.

    If, OTOH, what you really meant was "I know I can do that, but I would prefer to use the very same keypresses I'm accustomed with already" then I fear I can't help you, as I don't know Linux ttys so well myself. I wonder if that's even feasible with a simple configuration or if those keypresses are somewhat hardwired in the console software.

  • innaM

    I guess this depends on the terminal emulator you are using. The article you linked to, for instance, mentions that the KDE terminal, Konsole, offers the desired behavior.