All of lore.kernel.org
 help / color / mirror / Atom feed
From: Austin S Hemmelgarn <ahferroin7@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] manipulating raw disk images as non-root user
Date: Mon, 04 Aug 2014 14:10:55 -0400	[thread overview]
Message-ID: <53DFCCAF.2080108@gmail.com> (raw)
In-Reply-To: <CAE9DZUSKbr3gzUW=Oh=f7P9q_Fs=nh7S0OpxyL_tbYV3NfxhAQ@mail.gmail.com>

On 2014-08-04 13:56, Dallas Clement wrote:
> 
> On Mon, Aug 4, 2014 at 2:05 AM, Waldemar Brodkorb <wbx@openadk.org
> <mailto:wbx@openadk.org>> wrote:
> 
>     Hi Dallas,
>     Dallas Clement wrote,
> 
>     > 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?
> 
>     You could use genext2fs to generate a filesystem as non-root.
> 
>     Installing a bootloader as non-root would be tricky, but is
>     possible, too.
> 
>     best regards
>      Waldemar
> 
> 
> Wow!  This is perfect.  I searched all over for a tool like this. 
> Couldn't find anything.  Thanks Waldemar!  Do you know of a similar tool
> to make / populate fat partitions.  I need to work with both fat and ext2.

you can use any mkfs command as a non-root user, and for FAT you should
be able to find a fuse driver for manipulating it (or there is always
mtools).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2967 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140804/63ab5a1e/attachment.p7s>

  parent reply	other threads:[~2014-08-04 18:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02 16:45 [Buildroot] manipulating raw disk images as non-root user Dallas Clement
2014-08-02 16:54 ` 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 [this message]
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=53DFCCAF.2080108@gmail.com \
    --to=ahferroin7@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.