ZFS Mounting a ZFS partition

I have just come across a 1TB disk which has a single freebsd-zfs partition and I have no idea about what is on it.

I never mastered ZFS, there always seemed to be too many commands and they seemed too complicated for me.
Can someone tell me what is the simplest way to mount such a partition? I don't know if there are any pools.
 
You need to import the pool first. What does zpool import show?
 
Then it's likely not a ZFS pool or filesystem. If there's a ZFS pool on it it would have shown up with zpool import. And no, you cannot have a ZFS filesystem without a pool.
 
gpart shows a freebsd-zfs partition.

Should I just assume that a zfs partition has been created but nothing has been done with it?
 
gpart shows a freebsd-zfs partition.
Yes, but that isn't saying much. I can format a freebsd-zfs partition just as easily with UFS. Maybe have a look with file(1) to see what it actually is.

Should I just assume that a zfs partition has been created but nothing has been done with it?
Never assume anything. Check with file(1) and/or zdb(8).
 
gpart shows a freebsd-zfs partition.

Should I just assume that a zfs partition has been created but nothing has been done with it?
Could also be a normal FFS partition in it, or anything else. Command to find out:

`file - < /dev/ada1p1`
 
The file(1) utility is being updated with magic numbers for filesystems and partition tables. I just don't know whether it would recognize a GELI header. Although that would be kind of academic since you wouldn't have the key for that GELI device anyway.
 
Back
Top