Is it possible to mount(8) an EXT4 type image/fs?

Greetings all,

I'm in need of mounting a file that is an EXT4 (Linux) file system. I've used md(4) to (re)create the system: # md -a -t vnode -f recovery.img -u 1, which creates /dev/md1. But all attempts to mount it fail.
# mkdir /mnt/recovery, # mount /dev/md1 /mnt/recovery fails (invalid...). # mount -t ext2 /dev/md1 /mnt/recovery fails, and crashes, as does # mount -t ext4 /dev/md1 /mnt/recovery.

Also, I am unable to find mount_ext* on any of my RELENG_8, or RELENG_9 boxes. Has it been removed?

Thanks, for all your time, and consideration.

--Chris
 
pkubaj said:

Thanks for the reply @pkubaj! Bummer. So it looks like FreeBSD has removed support for Linux file systems. :( What next, the Linux ABI from the kernel?

I guess I'll need to import source from a RELENG_6 branch, so I can get that support back in mount(8) for recent versions of FreeBSD.

Thanks again, @pkubaj.

--Chris
 
Last edited by a moderator:
Huh?
man ext2fs:
EXT2FS(5) FreeBSD File Formats Manual EXT2FS(5)

NAME
ext2fs — Ext2fs file system

SYNOPSIS
To link into the kernel:

options EXT2FS

To load as a kernel loadable module:

kldload ext2fs

DESCRIPTION
The ext2fs driver will permit the FreeBSD kernel to access Ext2 file sys‐
tems.

EXAMPLES
To mount a ext2fs volume located on /dev/ada1s1:

mount -t ext2fs /dev/ada1s1 /mnt

SEE ALSO
nmount(2), unmount(2), fstab(5), mount(8)

HISTORY
The ext2fs driver first appeared in FreeBSD 2.2.

AUTHORS
The ext2fs kernel implementation was written by Godmar Back or modified
by him using the CSRG sources.

John Dyson and others in the FreeBSD Project made modifications.

This manual page was written by Craig Rodrigues <rodrigc@FreeBSD.org>.

Also: https://wiki.freebsd.org/Ext2fs
 
Back
Top