All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dallas Clement <dallas.a.clement@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] manipulating raw disk images as non-root user
Date: Sat, 2 Aug 2014 11:45:58 -0500	[thread overview]
Message-ID: <CAE9DZUThNrdD2AOHwsJRZG6fJh3=MRGe+Ggnh4ZrRxgXatJvWA@mail.gmail.com> (raw)

Hi All,

I am trying to figure out a way to produce a uSD card image file during my
build process and do it as a non-root user.  I am hoping to do this from a
post image script.

I can create the image file with dd and partition it with parted as a
non-root user.  However, I have not figured out how to format, and populate
the image file.  Tools such as kpartx and losetup seem ideal for this
purpose except that they must be run as root.

Does anyone know of a way to do this using qemu or fuse or related tools?

Thanks,

Dallas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140802/21044f09/attachment.html>

             reply	other threads:[~2014-08-02 16:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02 16:45 Dallas Clement [this message]
2014-08-02 16:54 ` [Buildroot] manipulating raw disk images as non-root user Thomas Petazzoni
2014-08-04  7:05 ` Waldemar Brodkorb
2014-08-04 17:56   ` Dallas Clement
2014-08-04 18:10     ` Thomas Petazzoni
2014-08-04 18:10     ` Austin S Hemmelgarn
2014-08-04 19:22       ` Dallas Clement
2014-08-04 21:04 ` Yann E. MORIN
2014-08-05 21:26   ` Dallas Clement
2014-08-06 17:15     ` Yann E. MORIN

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='CAE9DZUThNrdD2AOHwsJRZG6fJh3=MRGe+Ggnh4ZrRxgXatJvWA@mail.gmail.com' \
    --to=dallas.a.clement@gmail.com \
    --cc=buildroot@busybox.net \
    /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.