Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 6
    What exactly are you trying to achieve? Flash memory is random access and therefore has no seek times, so the file being contiguous doesn't matter. Commented Jun 20, 2013 at 2:32
  • 2
    @j883376: I'm well aware of that. It's to use my flash drive as a boot disk for many ISOs, without having to partition/dd and therefore duplicate each one. Commented Jun 20, 2013 at 2:40
  • 1
    I've never heard of this before - doesn't make it not possible - but I did find this Q&A on SO: stackoverflow.com/questions/10071962/… Commented Jun 20, 2013 at 2:43
  • 2
    You cannot prevent files being interrupted by the metadata which ext4 writes in certain distances on the disk. I don't know how to calculate this, though. If you cannot accept that then you need to write to a raw disk, avoiding a file system. This can relatively easy be done with LVM (LVs can be fragmented, too! So check with dmsetup). Of course, you need to store the length of the file somewhere in that case. Commented Jun 20, 2013 at 5:36
  • possibly related unix.stackexchange.com/questions/68189/… Commented Jun 20, 2013 at 10:32