public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: cdlinux@koala.de
To: Linux-mtd ML <linux-mtd@lists.infradead.org>
Subject: Loosing grub mbr after mounting jffs2 image with loop0 and mtdblock0
Date: Mon, 11 Oct 2004 13:20:17 +0200	[thread overview]
Message-ID: <20041011112017.GA22376@koala.de> (raw)

Hello list!

I'm relatively new to linux-mtd and have the following problem:

I'm using 128MB-Cf-Cards with an ext2 and a jffs2 partition.

The image i write to the cf-card has a grub-loader on it that will boot the
jffs2-image on (eg) /dev/hde2...

Now, when I want to change the image-partition, i mount it with

  modprobe loop
  losetup /dev/loop0 imagefile.img
  modprobe mtdcore
  modprobe blkmtd device=/dev/loop0 erasesz=64
  mount -t jffs2 /dev/mtdblock0 /mnt/cfdisk

I then work on the filesystem and unmount everything after the changes are
done.

However, when I write the new image to a cfdisk (dd), I loose the grub info
and booting reports "no valid filesystem" / bootimage...

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.

Any ideas, on how to proceed working on the 2nd partition of hde as jffs2
w/o loosing the grub mbr?

Thanks for any answers or pointers in the right direction, 
and sorry if this has been asked before, i couldn't find an appropriate 
answer yet..

Greetings
chris

             reply	other threads:[~2004-10-11 11:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-11 11:20 cdlinux [this message]
2004-10-13 13:40 ` Loosing grub mbr after mounting jffs2 image with loop0 and mtdblock0 cdlinux

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=20041011112017.GA22376@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox