4

I have a FreeBSD drive that I want to retrieve a file from with Ubuntu 14.04 desktop.

I installed ubuntu-zfs from this PPA and have been through several tutorials, all of which have covered installing Ubuntu to ZFS or establishing a ZFS RAID, but all I want to do is mount a drive and retrieve a file.

I seem to be stuck on step one, where I can't even get Ubuntu to see a zpool, much less mount the drive.

More info:

# dmesg | egrep "\<sd[a-g]|SPL|ZFS"
[    1.525674] sd 2:0:0:0: [sda] 15465744 512-byte logical blocks: (7.91 GB/7.37 GiB)
[    1.525747] sd 2:0:0:0: [sda] Write Protect is off
[    1.525751] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.525782] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.526605] sd 2:0:1:0: [sdb] 293046768 512-byte logical blocks: (150 GB/139 GiB)
[    1.526885]  sda: sda1
[    1.526885]  sda1: <bsd:bad subpartition - ignored
[    1.526885]  sda5 >
[    1.526937] sd 2:0:1:0: [sdb] Write Protect is off
[    1.526942] sd 2:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[    1.526968] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.527275] sd 2:0:0:0: [sda] Attached SCSI disk
[    1.536835]  sdb: sdb1 sdb2 < sdb5 >
[    1.537272] sd 2:0:1:0: [sdb] Attached SCSI disk
[   29.183853] SPL: Loaded module v0.6.5.3-1~trusty
[   29.383056] ZFS: Loaded module v0.6.5.3-1~trusty, ZFS pool version 5000, ZFS filesystem version 5
[   37.384244] EXT4-fs (sdb1): mounting ext2 file system using the ext4 subsystem
[   37.414432] EXT4-fs (sdb1): mounted filesystem without journal. Opts: (null)
6
  • Please add the output of dmesg | egrep "\<sd[a-g]|SPL|ZFS" to your question. – jlliagre Nov 7 '15 at 2:30
  • @jlliagre I updated the question with the output. – Paul Nov 7 '15 at 2:39
  • The seems to be an issue here sda1: <bsd:bad subpartition - ignored. Anyway, what says zpool import /dev/sda1 and zpool import /dev/sda5? – jlliagre Nov 7 '15 at 3:08
  • @jlliagre For both of them it says cannot import '/dev/sda1' : no such pool available (sda5 for other partition). – Paul Nov 7 '15 at 3:11
  • If you are sure there is a zpool the sda disk, run od -c /dev/sda | grep "\a v e r s i o n" and post its output Note that there should be three spaces between each letter in the string: a...v...e...r...s...i...o...n. – jlliagre Nov 7 '15 at 4:40
6

The first (and often only) step required is to import the pool associated with the disk.

zpool import with no other arguments scans all the devices (whole disks and partitions) to identify ZFS pools.

FreeBSD is using its own kind of partitions inside the fdisk primary partitions (similar but different than logical partitions in an extended one). Your Linux kernel might not detect them for some reason, have a look to the system log messages:

dmesg | egrep "\<sd[a-g]|SPL|ZFS"

There might also be issues with missing feature flags support on the target machine. That would make the pool not importable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.