<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><span style="color:rgb(34,34,34)">The problem is caused by the command below</span><br></div></div></div><div><br><blockquote type="cite"><div><div dir="ltr"><div><div class="gmail_extra"><div style="font-family:georgia,serif;font-size:small">mkfs -t vfat /dev/loop0</div></div></div></div></div></blockquote><div><br></div><div>/dev/loop0 is the whole disk, and /dev/loop0p1 is the partition.</div><div><br></div><div>The command make a file system on the disk, thus overrides the disk’s partition table.  </div><div><br></div><div>I guess that it is the partition on which you want to make a filesystem.</div><div>The right command is </div><div><br></div><div>      mkfs -t ext2 /dev/loop0p1</div><div><br></div><div>We prefer ext2,3,4 to fat32 on linux.</div><div><br></div></div></div></blockquote></div><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:georgia,serif;font-size:small">​I see. Thanks! ​I used kpartx to map the partitions in /dev/mapper. If you know of a better way of doing what you suggest, could you please let me know?</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">I was hoping to use ext4, but I wasn&#39;t able to grub-install to a loopback device. When I try to, I get the error:</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style=""><font face="georgia, serif">&gt; grub-install: error: disk `lvm/loop1p1&#39; not found.</font><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">​From a searching around, it looks like this issue has been visited recently by the developers:</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><a href="https://lists.gnu.org/archive/html/grub-devel/2015-05/msg00011.html">https://lists.gnu.org/archive/html/grub-devel/2015-05/msg00011.html</a></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">So I wasn&#39;t able to get it to work. So instead I&#39;ve been using syslinux, which I believe requires FAT, rather than EXT. I read about extlinux, but from my reading, I&#39;ve gotten the impression that syslinux has more history. So I figured it would be easier to find useful material for syslinux on message boards.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">Thanks again for all your help! I hope that at some point I&#39;ll be able to do more, such as customize the ram disk, the init system, and figure out how to get the system switched over to a root file system on a disk.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">-Patrick</div></div></div>