r/linuxmint • • 2h ago

Support Request ZFS drive read in Linux Mint

Hi. I have an old Truenas machine which has a ZFS raid with a few drives. Multiple faults prompt me to ask if anyone has used Mint to read such drives?

I don't need to write to them, they aren't important but so old I can't remember what's on the drives!

If it's a regular request, just a link to how to do it would be great.

Thanks.

1 Upvotes

3 comments sorted by

•

u/AutoModerator 2h ago

Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/GiggleSamurai 2h ago

Yes, Mint can read it: sudo apt install zfsutils-linux, then sudo zpool import lists the pools it finds on the drives. sudo zpool import -f -o readonly=on -R /mnt <poolname> then mounts it read-only under /mnt (-f is needed because the pool was last used by the TrueNAS box).

1

u/m4uri 32m ago

GiggleSamurai's commands are the way to go. Two things to add since you mentioned multiple faults and an old box.

Run plain sudo zpool import first and actually read the output before importing. It shows the pool state and which disks are missing or FAULTED. A DEGRADED pool still imports fine as long as every raidz or mirror vdev has enough disks left.

If it complains about unsupported features, the pool was upgraded on a newer ZFS than the one Mint ships. Read only import often still works if those features are read-only compatible, otherwise you need a newer zfs, a newer live ISO is the easy route.

With faults I wouldnt jump to -F (rewind) or zpool clear right away. Check the disks first with sudo smartctl -a /dev/sdX (package smartmontools). If one is dying, copy off what you care about first and poke around afterwards. Encrypted datasets also need the key from the old TrueNAS before they mount, so look if you still have that somwhere.