e72c Ext4 on FreeBSD - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old October 6th, 2011, 13:41
guillaje guillaje is offline
Junior Member
 
Join Date: Oct 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ext4 on FreeBSD

Hello,

I'm a Linux user, quite new to FreeBSD.
I recently installed FreeBSD 8.2-RELEASE amd64 as a backup server. These backups consist of the synchronisation between SAN snapshots of the FS I want to backup and ZFS filesytems.

In order to mount my Linux FS, I installed the port of e2fsprog, and it works great for ext2/3, but not for ext4 :

I can fsck it :
Code:
endor# fsck_ext2fs /dev/da1s2
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/da1s2: 63569/657072 files (0.2% non-contiguous), 498732/2624256 blocks
But I can't mount it :
Code:
endor# mount -t ext2fs /dev/da1s2 /mnt
mount: /dev/da1s2 : Invalid argument
In dmesg:
Code:
WARNING: mount of da1s2 denied due to unsupported optional features
I tried to deactivate some ext4 features of this fs on a Debian box, but I can't disable all of them:
Code:
root@xen0adm1:~# tune2fs -O ^flex_bg /dev/iscsi/xen0adm1-2011-09-30-14p2
tune2fs 1.41.12 (17-May-2010)
Clearing the flex_bg flag would cause the the filesystem to be
inconsistent.
root@xen0adm1:~# tune2fs -O ^uninit_bg /dev/iscsi/xen0adm1-2011-09-30-14p2
tune2fs 1.41.12 (17-May-2010)
root@xen0adm1:~# tune2fs -O ^dir_index /dev/iscsi/xen0adm1-2011-09-30-14p2
tune2fs 1.41.12 (17-May-2010)
root@xen0adm1:~# tune2fs -O ^extents /dev/iscsi/xen0adm1-2011-09-30-14p2
tune2fs 1.41.12 (17-May-2010)
Clearing filesystem feature 'extent' not supported.
And after that, the error is the same when I try to mount it on FreeBSD.

So my question is, is it a way to mount an ext4 fs on FreeBSD? Even in ro, without journal.

Thank you,
jC

Last edited by DutchDaemon; October 6th, 2011 at 18:42.
Reply With Quote
  #2  
Old October 6th, 2011, 14:14
pkubaj pkubaj is offline
Member
 
Join Date: Jun 2010
Posts: 307
Thanks: 22
Thanked 42 Times in 32 Posts
Default

Unfortunately, there's currently no way to mount ext4 slice. The original driver was created for ext2, still, it somehow works also with ext3, but not with ext4.
Reply With Quote
  #3  
Old October 6th, 2011, 16:30
guillaje guillaje is offline
Junior Member
 
Join Date: Oct 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I read that it was not possible, but this page made me think I missed something...

"This project implements preallocation in ext2fs and update ext2fs to be able to read ext4 file systems and possibly add other functionality, such as write ext4 file systems."
Reply With Quote
  #4  
Old October 6th, 2011, 17:05
fluca1978 fluca1978 is offline
Member
 
Join Date: May 2010
Posts: 679
Thanks: 28
Thanked 66 Times in 61 Posts
Default

Aren't ext3 and ext4 back compatible with ext2?
Reply With Quote
  #5  
Old October 6th, 2011, 18:40
adamk adamk is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,611
Thanks: 6
Thanked 263 Times in 244 Posts
Default

ext3 mostly is, ext4 mostly is not

Adam
Reply With Quote
  #6  
Old October 7th, 2011, 03:55
davidgurvich davidgurvich is offline
Member
 
Join Date: Feb 2010
Posts: 194
Thanks: 0
Thanked 7 Times in 5 Posts
Default

Ext3 is forward compatible with ext4. An ext4 system can be mounted as ext3 if extents aren't enabled. Is ext2fs feature complete for ext3?
Reply With Quote
  #7  
Old October 8th, 2011, 05:46
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,178
Thanks: 43
Thanked 715 Times in 587 Posts
Default

You can mount an ext3 filesystem on FreeBSD by mounting it as ext2.

Last I checked, you could not mount an ext3 filesystem as ext3.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Tags
ext4

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
UFS vs EXT3 vs EXT4 vs HAMMER vs NTFS vs zfs alie Storage 28 November 17th, 2011 01:52
[kFreeBSD - closed] Mounting an ext4 file system alanl System Hardware 3 April 6th, 2011 22:34
Complete command to mount ext3 or ext4 filesystem cola General 7 November 29th, 2010 01:15
Phoronix ZFS vs UFS vs EXT4 vs Btrfs trybeingarun General 17 August 31st, 2010 19:16


All times are GMT +1. The time now is 18:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0