LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-22-2006, 12:02 PM   #1
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
How do I create a jffs2 loopback image?


How can I create a fixed-side JFFS2 image-file?

I have a machine that I want to install LFS onto.

The "hard-disk" is a 1Gb compact-flash card connected to the (only) IDE channel via an IDE adaptor.

What I want to do is to create a JFFS2 filesystem on the flash memory, to conserve wear and tear on the CF card. I'd also like to create a JFFS2 image on the host system first, and mount that as a loopback filesystem (rather than creating the JFFS2 filesystem directly on the card), partly so I have a copy of the filesystem and partly to save wearing out the card.

As a test, I ran this:
Code:
mkfs.jffs2 --output=image.jffs2 256
what I expected to happen was that it would create a 256-block device (with default 4k blocks, giving 1Mb) on a new file; instead it kept going until about 2.2Gb when I killed it.

Creating a 1Gb file using df and trying to create the image on that just overwrote the file with a new 2Gb file, when mkfs.jffs2 died.

Also, I note that JFFS2 uses the MTD devices; will JFFS2 even work over an IDE interface, and if not, what should I use for this setup?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How add a loopback DVD iso image to fstab?? carl0ski Linux - General 3 09-02-2011 02:55 PM
Redboot - Loading Kernel Image & File Jffs2 MKSrivastava Debian 1 04-21-2007 07:03 PM
Resizing a loopback image Jehuty Linux - Hardware 5 08-29-2005 10:52 AM
How to grub install to a partition on an image file via a loopback Owen LaGarde Linux - Software 2 12-26-2003 09:06 AM
Mount Loopback filesystem on an entire HD image? wartstew Linux - General 0 01-24-2003 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration