How to format a partition as JFFS2?

Multi tool use
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 errorcan't initialize libmtd
I'm trying to use it with my router, a R8000 running DD-WRT.
partitioning usb-drive
add a comment |
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 errorcan't initialize libmtd
I'm trying to use it with my router, a R8000 running DD-WRT.
partitioning usb-drive
add a comment |
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 errorcan't initialize libmtd
I'm trying to use it with my router, a R8000 running DD-WRT.
partitioning usb-drive
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 errorcan't initialize libmtd
I'm trying to use it with my router, a R8000 running DD-WRT.
partitioning usb-drive
partitioning usb-drive
edited Feb 21 at 4:37
NatoBoram
asked Feb 21 at 4:08
NatoBoramNatoBoram
19812
19812
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
edited Feb 21 at 5:15
answered Feb 21 at 4:23
thomasrutterthomasrutter
27.2k46789
27.2k46789
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Feb 21 at 15:47


mature
2,2024933
2,2024933
answered Feb 21 at 14:28
ArjenRArjenR
11
11
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
nCPxtys19n3FwOFCN B9a9t,wixJ4svSJPxCK1AXrlAmILMk,neT3U2IykU0BSTSja5lmL,Yj8 s2MIqekkuWpxFL,inDUOX22 FOYB