mount linux ext3 partition

hi

On my freeBSD 7.2 I try to mount linux ext3 partition installed on the same hard disk,
but the mount point is inaccessible:
Code:
# mkdir debian
# mount -t ext2fs /dev/ad0s2 /debian
# cd /debian
/debian: Not a directory.
 
Is debian dir created in /? It looks like you've created in current directory:
Code:
ls debian
ls
 
@cc

Check INODE SIZE of /dev/ad0s2 filesystem, if it is 256, then you can have problems (I do not remember if patch has been merged to STABLE to support 256 inode size), if you want to mount Linux ext2/ext3 on FreeBSD without any problems, then always use 128 INODE SIZE for silesystem.

Code:
# mkfs.ext3 -I 128 /dev/ad0s
# tune2fs -l /dev/ad0s2 | grep -i 'inode size'
Inode size:               128
#
 
vivek said:
Is debian dir created in /? It looks like you've created in current directory:
Code:
ls debian
ls

/debian directory is not current:
Code:
# cd /debian
# mount -t ext2fs /dev/ad0s2 /debian
# cd /debian
/debian: Not a directory.

before mounting I can access to /debian without any problems.
 
vermaden said:
@cc

Check INODE SIZE of /dev/ad0s2 filesystem, if it is 256, then you can have problems (I do not remember if patch has been merged to STABLE to support 256 inode size), if you want to mount Linux ext2/ext3 on FreeBSD without any problems, then always use 128 INODE SIZE for silesystem.

Code:
# mkfs.ext3 -I 128 /dev/ad0s
# tune2fs -l /dev/ad0s2 | grep -i 'inode size'
Inode size:               128
#
Code:
# mkfs.ext3 -I 128 /dev/ad0s
mkfs.ext3: Command not found.
# tune2fs -l /dev/ad0s2 | grep -i 'inode size'
tune2fs: Command not found.
 
vermaden said:

I've installed sysutils/e2fsprogs, this problem still exists.
Inode size is 256.
Code:
# mkfs.ext3 -I 128 /dev/ad0s
mke2fs 1.41.8 (11-Jul-2009)
Could not stat /dev/ad0s --- No such file or directory

The device apparently does not exist; did you specify it correctly?
# tune2fs -l /dev/ad0s2 | grep -i 'inode size'
Inode size:               256
 
here is a patch for FreeBSD 7.x to read Linux ext2/ext3 partitions with large inodes:

http://www.jimbrooks.org/web/freebsd/freebsd7_ext2_inode_patch.php

I've installed this patch and it seems to work.

BTW ext2fs.ko from /boot/kernel must be unloadet first:
Code:
kldunload ./ext2fs.ko
and ext2fs.ko from /usr/src/sys/modules/ext2fs must be loadet:
Code:
kldload ./ext2fs.ko

I've replaced /boot/kernel/ext2fs.ko with /usr/src/sys/modules/ext2fs/ext2fs.ko to start patched module after boot.

greetings
ccc
 
If I try to add to /etc/fstab:
Code:
/dev/ad0s2   /debian     ext2fs      ro,auto     0   0
then it won't mount automaticaly.
 
I've got this in my /etc/fstab and it works for me:
Code:
/dev/ad0s5              /mnt/music              ext2fs      rw,late         0       2
 
Wrong link miconof. It points to your registration on this Forum "Your account has already been activated so please try logging in".
 
Back
Top