From: cdlinux@koala.de
To: linux-mtd@lists.infradead.org
Subject: Re: Loosing grub mbr after mounting jffs2 image with loop0 and mtdblock0
Date: Wed, 13 Oct 2004 15:40:14 +0200 [thread overview]
Message-ID: <20041013134014.GB29207@koala.de> (raw)
In-Reply-To: <20041011112017.GA22376@koala.de>
On Mon, Oct 11, 2004 at 01:20:17PM +0200, cdlinux@koala.de wrote:
>
> I suppose, it has to do with the way I mount the jffs2 partition (as I'm
> actually mounting the entire image as loopdev/jffs2)...?
> I'm unsure about what would be the right way to do this.
>
Sorry for posting this on the wrong list.
For completeness sake:
The solution was fairly simple, all i had to do was set the loopdevice up
correctly with the right byte-offset inside the image and forget about the
erasesz-option to the blkmtd module (eg):
losetup -o 5881928 /dev/loop0 file.img
modprobe blkmtd device=/dev/loop0
mount -t jffs2 /dev/mtdblock0 /mnt/cfmnt
...
umount /dev/mtdblock0
rmmod blkmtd; rmmod jffs2;
losetup -d /dev/loop0
After that, one can safely dd the image to the cf-card w/o loosing
partitionings, grub etc.
Sorry again,
chris
prev parent reply other threads:[~2004-10-13 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-11 11:20 Loosing grub mbr after mounting jffs2 image with loop0 and mtdblock0 cdlinux
2004-10-13 13:40 ` cdlinux [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041013134014.GB29207@koala.de \
--to=cdlinux@koala.de \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.