Solved How do you mount an ext4 partition.

Using :
mount -t ext2 /dev/ada1s4 /mnt/ada1s4
I get:
Code:
mount: /dev/ada1s4: Operation not supported by device
Code:
file -s /dev/ada1s4   
/dev/ada1s4: Linux rev 1.0 ext4 filesystem data, UUID=355c0164-9d4c-49c1-9252-a49dd3e10df6 (extents) (64bit) (large files) (huge files)
 
I found an interesting discussion here, a bit old. I myself have not tried what it says there:

 
with
Code:
mount -t ext2fs -o rw /dev/ada0p3 /mnt/ada0p3
I've got
operation not permitted.
Code:
fuse-ext2 -o uid=1001 -o force /dev/ada0p3 /mnt/ada0p3
works fine.
 
I had to run the code below with doas, otherwise it wasn't mounted.
Code:
fuse-ext2 -o uid=1001 -o force /dev/ada0p3 /mnt/ada0p3
This code below worked with doas too but i was not owner of the mounted drive so it was requiring super user rights to do operations.
Code:
mount -t ext2fs -o rw /dev/ada0p3 /mnt/ada0p3
 
I've got
operation not permitted.
Either mount it as root, or load the ext2fs(5) kernel module as root first (load it at boot if you use it regularly) and then you should be able to mount as user.

fuse-ext2 (from filesystems/ext2) is slower, there isn't much of a reason to use it on FreeBSD rather than the built-in ext2fs driver. It is however useful on other systems without built-in support for ext4 like NetBSD or MacOS.
 
Back
Top