Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The problem you have is probably these two points:</p> <ol> <li>The current user does not have <code>/sbin/</code> in his <code>$PATH</code>.</li> <li>The current user is not allowed to write to the block device to create a file system on it.</li> </ol> <p>The first problem is easily amended by just writing the full path instead of just the command in the Makefile:</p> <pre><code>target: sources … /sbin/mkfs.vfat …… </code></pre> <p>The second problem only occurs if you really want to write to a block device you haven't write permissions to. In this case consider what you are doing. Does it really make sense? Typically this makes only sense in a <code>make install</code> situation, and this should be executed by user <code>root</code> only, so then you'd <em>have</em> write permissions. In practice, one typically types <code>sudo make install</code> to gain root access for that installation step only.</p> <p>If, however, this is a special case, then you can add that <code>sudo</code> to your Makefile as well:</p> <pre><code>target: sources … sudo /sbin/mkfs.vfat …… </code></pre> <p>(This would lead to being asked for the password when running the Makefile.)</p> <p>And, last not least, you can use that <code>mkfs</code> to create a file, containing the newly created file system. In that case you don't need any special permissions (besides write permissions to that file you want to create:</p> <pre><code>target: sources … /sbin/mkfs.vfat -C /path/to/my/filesystem …… </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload