1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mount linux ext3 partition

Discussion in 'General' started by ccc, Aug 7, 2009.

  1. ccc

    ccc New Member

    Messages:
    609
    Likes Received:
    0
    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.
     
  2. vivek

    vivek New Member

    Messages:
    809
    Likes Received:
    0
    Is debian dir created in /? It looks like you've created in current directory:
    Code:
    ls debian
    ls 
     
  3. vermaden

    vermaden Member

    Messages:
    2,352
    Likes Received:
    2
    @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
    # 
     
  4. ccc

    ccc New Member

    Messages:
    609
    Likes Received:
    0
    /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.
     
  5. ccc

    ccc New Member

    Messages:
    609
    Likes Received:
    0
    Code:
    # mkfs.ext3 -I 128 /dev/ad0s
    mkfs.ext3: Command not found.
    # tune2fs -l /dev/ad0s2 | grep -i 'inode size'
    tune2fs: Command not found.
     
  6. vermaden

    vermaden Member

    Messages:
    2,352
    Likes Received:
    2
  7. ccc

    ccc New Member

    Messages:
    609
    Likes Received:
    0
    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
    
     
  8. ccc

    ccc New Member

    Messages:
    609
    Likes Received:
    0
    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
     
  9. ccc

    ccc New Member

    Messages:
    609
    Likes Received:
    0
    If I try to add to /etc/fstab:
    Code:
    /dev/ad0s2   /debian     ext2fs      ro,auto     0   0
    then it won't mount automaticaly.
     
  10. Oxyd

    Oxyd New Member

    Messages:
    167
    Likes Received:
    0
    I've got this in my /etc/fstab and it works for me:
    Code:
    /dev/ad0s5              /mnt/music              ext2fs      rw,late         0       2
     
  11. miconof

    miconof New Member

    Messages:
    2
    Likes Received:
    0
    here is a how to in french for the patch : [wrong link removed - Mod]
     
  12. tangram

    tangram New Member

    Messages:
    524
    Likes Received:
    0
    Wrong link miconof. It points to your registration on this Forum "Your account has already been activated so please try logging in".
     
  13. miconof

    miconof New Member

    Messages:
    2
    Likes Received:
    0