Loading ...
Sorry, an error occurred while loading the content.

The ntfs problem

Expand Messages
  • Marcel Nijenhof
    Hi, First of all i still don t understand the advantage of ntfs for normal slug disks. The only advantage i see is: - A ext3 disk isn t mounted automatically -
    Message 1 of 3 , May 13, 2006
    View Source
    • 0 Attachment
      Hi,

      First of all i still don't understand the advantage of ntfs for
      normal slug disks.

      The only advantage i see is:
      - A ext3 disk isn't mounted automatically
      - Being able to access a disk which is normaly
      used for windows through the slug.

      But i see a lot disadvantage:
      - The driver isn't stable
      - There are no tools to create or check the
      filesystem
      - I see corrupt filesystems with ntfs
      - I am not able to posix security information

      But i did some testings and here are some conclusions:

      1) It's a problem in the ntfs filesystem.
      I had some hangs with the following script
      running on the slug:

      #!/opt/bin/bash

      NRS="0 1 2 3 4 5 6 7 8 9"
      mkdir /mnt/aa
      cd /mnt/aa


      for i in ${NRS}
      do
      for j in ${NRS}
      do
      for k in ${NRS}
      do
      for l in ${NRS}
      do
      for m in ${NRS}
      do
      echo "START $(date) ${D}"
      D=d${i}/${j}/${k}/${l}/${m}
      mkdir -p ${D}
      for x in ${NRS}
      do
      for y in ${NRS}
      do
      echo 1 >
      ${D}/${x}${y}
      done
      done
      echo "END $(date) ${D}"
      done
      done
      done
      done
      done

      2) I have some filecorruption (i can't remove some dirs):
      # rm -rf /mnt/aa1
      rm: unable to remove `/mnt/aa1/d0/0/6/0/8': Permission denied
      rm: unable to remove `/mnt/aa1/d0/0/6/0': Permission denied
      rm: unable to remove `/mnt/aa1/d0/0/6': Permission denied
      rm: unable to remove `/mnt/aa1/d0/0': Permission denied
      rm: unable to remove `/mnt/aa1/d0': Permission denied
      rm: unable to remove `/mnt/aa1': Permission denied
      I am root. I shouldn't get a permission denied?

      3) I had some kernel oops. This was during a "rm -rf" on the
      created directory tree.

      Unable to handle kernel paging request at virtual address e5803000
      mm = c000a1a0 pgd = c1b78000
      *pgd = 00000000, *pmd = 00000000
      Internal error: Oops: 0
      CPU: 0
      pc : [<e5803000>] lr : [<c5971fc0>] Tainted: P
      sp : c17c7bb4 ip : c59741c8 fp : c1c11b04
      r10: c12f2ce4 r9 : 00000000 r8 : c16a659c
      r7 : c1a9aaa4 r6 : 00000001 r5 : 00000000 r4 : c1aab608
      r3 : c5971ca8 r2 : c59741c8 r1 : 00000001 r0 : c59741c8
      Flags: NzCv IRQs on FIQs on Mode SVC_32 Segment user
      Control: 39FF Table: 01B78000 DAC: 00000015
      Process rm (pid: 6917, stack limit = 0xc17c6368)
      Stack: (0xc17c7bb4 to 0xc17c8000)
      7ba0: c1aab608 c5950f24 00018d3e
      7bc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7be0: c176e404 c17c7cac 00000000 00000000 00000000 00000000 00000000 00000000
      7c00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7c20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7c40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7c60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7c80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7ca0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7cc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7ce0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7d00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7d20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7d40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7d60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7da0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7dc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7de0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7e00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      7e20: 00000000 00000000 00000000 00000000 00000000 00000000 00000001 00124d96
      7e40: 00000000 c1d1de2c c1d1de34 c1d1dde0 c1d1de30 c17c7ed4 c594f058 00124d96
      7e60: 00000000 00000000 00000001 c17c7ea8 c17c7ea4 c17c7ea0 c17c7e9c c17c7e98
      7e80: c17c7e90 c1d1de2c c1d1de34 c1d1de30 c0276ea0 00002ea0 c0274000 00124d96
      7ea0: c17c7ed4 c0085e84 00000000 c1d1dde0 c0b4a800 c0e6f420 00000000 00000000
      7ec0: c17c6000 c17c7ed4 00000000 c594de78 ffffffff c1aab608 c16a659c 00000001
      7ee0: 00000000 00000000 fffffff4 c16a6540 c0e6f48c c0e6f420 c17c7f38 00000000
      7f00: c594e4e8 c17c7f08 00000000 fffffff4 c16a6540 c007a60c c17c7f38 c0e6f420
      7f20: c17c7f7c c16a1820 c06e0010 00000008 c007afe0 00000000 c06e000f 00000001
      7f40: 00002331 c17c7f7c c06e0000 c06e0000 000000c4 c00466e4 40127524 c007b6ec
      7f60: c06e0000 c17c7f7c c007b848 000495e8 bffffaa4 00000003 c0077c7c c16a1820
      7f80: c02724a0 c01f6820 c17c7fb0 c0046fc4 00000008 00000001 000495e8 000495e8
      7fa0: 00000003 c0046520 000495e8 c0046388 000495e8 bffffaa4 00000000 000012c8
      7fc0: 000495e8 000495e8 00000003 bffffb64 bffffaa4 4012cae0 40127524 0003fa24
      7fe0: 0003f7a4 bffffaa4 0002f8ac 400cd2e4 60000010 000495e8 00000000 00000000
      Backtrace:
      Backtrace aborted due to bad frame pointer <c1c11b04>
      Code: bad PC value.

      4) I am trying to look to "/proc/meminfo" and "/proc/slabinfo" during
      the execution of the script.

      I hope this will give some others new idea's to find the error.

      --
      Marceln
    • Rod Whitby
      Marcel, Thanks for the test case. Any chance you could run it on stock R63 (i.e. by remote mounting the NTFS drive from the stock slug onto another linux
      Message 2 of 3 , May 13, 2006
      View Source
      • 0 Attachment
        Marcel,

        Thanks for the test case. Any chance you could run it on stock R63 (i.e. by remote mounting the NTFS drive from the stock slug onto another linux machine and running the script)?

        -- Rod
        -----Original Message-----
        From: Marcel Nijenhof <nslu2@...>
        Date: Sunday, May 14, 2006 1:20 am
        Subject: [nslu2-linux] The ntfs problem

        Hi,



        First of all i still don't understand the advantage of ntfs for

        normal slug disks.



        The only advantage i see is:

        - A ext3 disk isn't mounted automatically

        - Being able to access a disk which is normaly

        used for windows through the slug.



        But i see a lot disadvantage:

        - The driver isn't stable

        - There are no tools to create or check the

        filesystem

        - I see corrupt filesystems with ntfs

        - I am not able to posix security information



        But i did some testings and here are some conclusions:



        1) It's a problem in the ntfs filesystem.

        I had some hangs with the following script

        running on the slug:



        #!/opt/bin/bash



        NRS='0 1 2 3 4 5 6 7 8 9'

        mkdir /mnt/aa

        cd /mnt/aa





        for i in ${NRS}

        do

        for j in ${NRS}

        do

        for k in ${NRS}

        do

        for l in ${NRS}

        do

        for m in ${NRS}

        do

        echo 'START $(date) ${D}'

        D=d${i}/${j}/${k}/${l}/${m}

        mkdir -p ${D}

        for x in ${NRS}

        do

        for y in ${NRS}

        do

        echo 1 >

        ${D}/${x}${y}

        done

        done

        echo 'END $(date) ${D}'

        done

        done

        done

        done

        done



        2) I have some filecorruption (i can't remove some dirs):

        # rm -rf /mnt/aa1

        rm: unable to remove `/mnt/aa1/d0/0/6/0/8': Permission denied

        rm: unable to remove `/mnt/aa1/d0/0/6/0': Permission denied

        rm: unable to remove `/mnt/aa1/d0/0/6': Permission denied

        rm: unable to remove `/mnt/aa1/d0/0': Permission denied

        rm: unable to remove `/mnt/aa1/d0': Permission denied

        rm: unable to remove `/mnt/aa1': Permission denied

        I am root. I shouldn't get a permission denied?



        3) I had some kernel oops. This was during a 'rm -rf' on the

        created directory tree.



        Unable to handle kernel paging request at virtual address e5803000

        mm = c000a1a0 pgd = c1b78000

        *pgd = 00000000, *pmd = 00000000

        Internal error: Oops: 0

        CPU: 0

        pc : [<e5803000>] lr : [<c5971fc0>] Tainted: P

        sp : c17c7bb4 ip : c59741c8 fp : c1c11b04

        r10: c12f2ce4 r9 : 00000000 r8 : c16a659c

        r7 : c1a9aaa4 r6 : 00000001 r5 : 00000000 r4 : c1aab608

        r3 : c5971ca8 r2 : c59741c8 r1 : 00000001 r0 : c59741c8

        Flags: NzCv IRQs on FIQs on Mode SVC_32 Segment user

        Control: 39FF Table: 01B78000 DAC: 00000015

        Process rm (pid: 6917, stack limit = 0xc17c6368)

        Stack: (0xc17c7bb4 to 0xc17c8000)

        7ba0: c1aab608 c5950f24 00018d3e

        7bc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7be0: c176e404 c17c7cac 00000000 00000000 00000000 00000000 00000000 00000000

        7c00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7c20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7c40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7c60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7c80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7ca0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7cc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7ce0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7d00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7d20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7d40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7d60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7da0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7dc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7de0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7e00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        7e20: 00000000 00000000 00000000 00000000 00000000 00000000 00000001 00124d96

        7e40: 00000000 c1d1de2c c1d1de34 c1d1dde0 c1d1de30 c17c7ed4 c594f058 00124d96

        7e60: 00000000 00000000 00000001 c17c7ea8 c17c7ea4 c17c7ea0 c17c7e9c c17c7e98

        7e80: c17c7e90 c1d1de2c c1d1de34 c1d1de30 c0276ea0 00002ea0 c0274000 00124d96

        7ea0: c17c7ed4 c0085e84 00000000 c1d1dde0 c0b4a800 c0e6f420 00000000 00000000

        7ec0: c17c6000 c17c7ed4 00000000 c594de78 ffffffff c1aab608 c16a659c 00000001

        7ee0: 00000000 00000000 fffffff4 c16a6540 c0e6f48c c0e6f420 c17c7f38 00000000

        7f00: c594e4e8 c17c7f08 00000000 fffffff4 c16a6540 c007a60c c17c7f38 c0e6f420

        7f20: c17c7f7c c16a1820 c06e0010 00000008 c007afe0 00000000 c06e000f 00000001

        7f40: 00002331 c17c7f7c c06e0000 c06e0000 000000c4 c00466e4 40127524 c007b6ec

        7f60: c06e0000 c17c7f7c c007b848 000495e8 bffffaa4 00000003 c0077c7c c16a1820

        7f80: c02724a0 c01f6820 c17c7fb0 c0046fc4 00000008 00000001 000495e8 000495e8

        7fa0: 00000003 c0046520 000495e8 c0046388 000495e8 bffffaa4 00000000 000012c8

        7fc0: 000495e8 000495e8 00000003 bffffb64 bffffaa4 4012cae0 40127524 0003fa24

        7fe0: 0003f7a4 bffffaa4 0002f8ac 400cd2e4 60000010 000495e8 00000000 00000000

        Backtrace:

        Backtrace aborted due to bad frame pointer <c1c11b04>

        Code: bad PC value.



        4) I am trying to look to '/proc/meminfo' and '/proc/slabinfo' during

        the execution of the script.



        I hope this will give some others new idea's to find the error.



        --
        Marceln









        SPONSORED LINKS
        Communication and networking Wireless communication and networking Linksys nslu2





        YAHOO! GROUPS LINKS
        Visit your group "nslu2-linux" on the web.
        To unsubscribe from this group, send an email to:
        nslu2-linux-unsubscribe@yahoogroups.com
        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
      • Marcel Nijenhof
        ... The disk i use is my normal slug disk with the fourth partition as ntfs partition. I don t want to loose the data on that disk so it s not that easy to do
        Message 3 of 3 , May 14, 2006
        View Source
        • 0 Attachment
          On Sun, 2006-05-14 at 05:33 +0930, Rod Whitby wrote:
          > Marcel,
          >
          > Thanks for the test case. Any chance you could run it on stock R63
          > (i.e. by remote mounting the NTFS drive from the stock slug onto
          > another linux machine and running the script)?

          The disk i use is my normal slug disk with the fourth partition
          as ntfs partition. I don't want to loose the data on that disk
          so it's not that easy to do it.

          I discovered from memory statistics that the slug is using large
          amounts of memory (> 20 mb) in the slab cache.

          The big users are:
          name size number size
          inode_cache 480 7000 3.5 mb
          size-8192 8192 100 0.8 mb
          size-2048 2048 4000 8.0 mb
          size-256 256 12000 3.0 mb

          --
          Marceln
        Your message has been successfully submitted and would be delivered to recipients shortly.