How to format a partition as JFFS2?












0















I tried many applications to format an empty USB drive with a JFFS2 filesystem, but I haven't found a tool that would let me do it.





  • gnome-disk-utility doesn't list it


  • gparted doesn't list it


  • mkfs.jffs2 build the file system from directory, and I don't want that


  • flash_eraseall fails with the error can't initialize libmtd


I'm trying to use it with my router, a R8000 running DD-WRT.










share|improve this question





























    0















    I tried many applications to format an empty USB drive with a JFFS2 filesystem, but I haven't found a tool that would let me do it.





    • gnome-disk-utility doesn't list it


    • gparted doesn't list it


    • mkfs.jffs2 build the file system from directory, and I don't want that


    • flash_eraseall fails with the error can't initialize libmtd


    I'm trying to use it with my router, a R8000 running DD-WRT.










    share|improve this question



























      0












      0








      0








      I tried many applications to format an empty USB drive with a JFFS2 filesystem, but I haven't found a tool that would let me do it.





      • gnome-disk-utility doesn't list it


      • gparted doesn't list it


      • mkfs.jffs2 build the file system from directory, and I don't want that


      • flash_eraseall fails with the error can't initialize libmtd


      I'm trying to use it with my router, a R8000 running DD-WRT.










      share|improve this question
















      I tried many applications to format an empty USB drive with a JFFS2 filesystem, but I haven't found a tool that would let me do it.





      • gnome-disk-utility doesn't list it


      • gparted doesn't list it


      • mkfs.jffs2 build the file system from directory, and I don't want that


      • flash_eraseall fails with the error can't initialize libmtd


      I'm trying to use it with my router, a R8000 running DD-WRT.







      partitioning usb-drive






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 21 at 4:37







      NatoBoram

















      asked Feb 21 at 4:08









      NatoBoramNatoBoram

      19812




      19812






















          2 Answers
          2






          active

          oldest

          votes


















          1














          JFFS2 is not designed for using it on regular block devices such as those implemented via USB storage or your hard drive controller - it's designed for embedded devices and when you have direct MTD access to the flash chips.



          It isn't possible to use it on a block device except with some fairly advanced hacks, such as this one that details using a kernel trick called "block2mtd" to emulate an MTD interface on top of a block device. This is so impractical as to be an intellectual curiosity only, don't do it in the real world.



          If you want a log structured file system on a USB drive, get one that's implemented in hardware - any Flash hard drive or USB stick which implements wear-leveling is essentially a log-structured file system at a low level upon which a regular file system is implemented at a higher level. While a mainstay of SSDs, this is still relatively uncommon for a USB stick with some exceptions, such as my "Sandisk Extreme" branded stick.



          Or you may want to try experimenting with NILFS. But, it's much slower than traditional file systems at some tasks. You may be surprised to find good old ext4 to be faster than you thought.






          share|improve this answer

































            0














            I don’t think you need to format your USB drive or memory stick to JFFS2. Just use a partition named JFFS and formatted with ext2. Enable USB disk services and it should be automatically mounted by DD-WRT. I use a memory stick on my R7800 running DD-WRT f/w. Check out the settings in GUI tabs USB and NAS. There’s also a jffs setting somewhere in administration.






            share|improve this answer


























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120005%2fhow-to-format-a-partition-as-jffs2%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              JFFS2 is not designed for using it on regular block devices such as those implemented via USB storage or your hard drive controller - it's designed for embedded devices and when you have direct MTD access to the flash chips.



              It isn't possible to use it on a block device except with some fairly advanced hacks, such as this one that details using a kernel trick called "block2mtd" to emulate an MTD interface on top of a block device. This is so impractical as to be an intellectual curiosity only, don't do it in the real world.



              If you want a log structured file system on a USB drive, get one that's implemented in hardware - any Flash hard drive or USB stick which implements wear-leveling is essentially a log-structured file system at a low level upon which a regular file system is implemented at a higher level. While a mainstay of SSDs, this is still relatively uncommon for a USB stick with some exceptions, such as my "Sandisk Extreme" branded stick.



              Or you may want to try experimenting with NILFS. But, it's much slower than traditional file systems at some tasks. You may be surprised to find good old ext4 to be faster than you thought.






              share|improve this answer






























                1














                JFFS2 is not designed for using it on regular block devices such as those implemented via USB storage or your hard drive controller - it's designed for embedded devices and when you have direct MTD access to the flash chips.



                It isn't possible to use it on a block device except with some fairly advanced hacks, such as this one that details using a kernel trick called "block2mtd" to emulate an MTD interface on top of a block device. This is so impractical as to be an intellectual curiosity only, don't do it in the real world.



                If you want a log structured file system on a USB drive, get one that's implemented in hardware - any Flash hard drive or USB stick which implements wear-leveling is essentially a log-structured file system at a low level upon which a regular file system is implemented at a higher level. While a mainstay of SSDs, this is still relatively uncommon for a USB stick with some exceptions, such as my "Sandisk Extreme" branded stick.



                Or you may want to try experimenting with NILFS. But, it's much slower than traditional file systems at some tasks. You may be surprised to find good old ext4 to be faster than you thought.






                share|improve this answer




























                  1












                  1








                  1







                  JFFS2 is not designed for using it on regular block devices such as those implemented via USB storage or your hard drive controller - it's designed for embedded devices and when you have direct MTD access to the flash chips.



                  It isn't possible to use it on a block device except with some fairly advanced hacks, such as this one that details using a kernel trick called "block2mtd" to emulate an MTD interface on top of a block device. This is so impractical as to be an intellectual curiosity only, don't do it in the real world.



                  If you want a log structured file system on a USB drive, get one that's implemented in hardware - any Flash hard drive or USB stick which implements wear-leveling is essentially a log-structured file system at a low level upon which a regular file system is implemented at a higher level. While a mainstay of SSDs, this is still relatively uncommon for a USB stick with some exceptions, such as my "Sandisk Extreme" branded stick.



                  Or you may want to try experimenting with NILFS. But, it's much slower than traditional file systems at some tasks. You may be surprised to find good old ext4 to be faster than you thought.






                  share|improve this answer















                  JFFS2 is not designed for using it on regular block devices such as those implemented via USB storage or your hard drive controller - it's designed for embedded devices and when you have direct MTD access to the flash chips.



                  It isn't possible to use it on a block device except with some fairly advanced hacks, such as this one that details using a kernel trick called "block2mtd" to emulate an MTD interface on top of a block device. This is so impractical as to be an intellectual curiosity only, don't do it in the real world.



                  If you want a log structured file system on a USB drive, get one that's implemented in hardware - any Flash hard drive or USB stick which implements wear-leveling is essentially a log-structured file system at a low level upon which a regular file system is implemented at a higher level. While a mainstay of SSDs, this is still relatively uncommon for a USB stick with some exceptions, such as my "Sandisk Extreme" branded stick.



                  Or you may want to try experimenting with NILFS. But, it's much slower than traditional file systems at some tasks. You may be surprised to find good old ext4 to be faster than you thought.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Feb 21 at 5:15

























                  answered Feb 21 at 4:23









                  thomasrutterthomasrutter

                  27.2k46789




                  27.2k46789

























                      0














                      I don’t think you need to format your USB drive or memory stick to JFFS2. Just use a partition named JFFS and formatted with ext2. Enable USB disk services and it should be automatically mounted by DD-WRT. I use a memory stick on my R7800 running DD-WRT f/w. Check out the settings in GUI tabs USB and NAS. There’s also a jffs setting somewhere in administration.






                      share|improve this answer






























                        0














                        I don’t think you need to format your USB drive or memory stick to JFFS2. Just use a partition named JFFS and formatted with ext2. Enable USB disk services and it should be automatically mounted by DD-WRT. I use a memory stick on my R7800 running DD-WRT f/w. Check out the settings in GUI tabs USB and NAS. There’s also a jffs setting somewhere in administration.






                        share|improve this answer




























                          0












                          0








                          0







                          I don’t think you need to format your USB drive or memory stick to JFFS2. Just use a partition named JFFS and formatted with ext2. Enable USB disk services and it should be automatically mounted by DD-WRT. I use a memory stick on my R7800 running DD-WRT f/w. Check out the settings in GUI tabs USB and NAS. There’s also a jffs setting somewhere in administration.






                          share|improve this answer















                          I don’t think you need to format your USB drive or memory stick to JFFS2. Just use a partition named JFFS and formatted with ext2. Enable USB disk services and it should be automatically mounted by DD-WRT. I use a memory stick on my R7800 running DD-WRT f/w. Check out the settings in GUI tabs USB and NAS. There’s also a jffs setting somewhere in administration.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Feb 21 at 15:47









                          mature

                          2,2024933




                          2,2024933










                          answered Feb 21 at 14:28









                          ArjenRArjenR

                          11




                          11






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120005%2fhow-to-format-a-partition-as-jffs2%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                              is 'sed' thread safe

                              How to make a Squid Proxy server?