recommended formatting of USB flash drive install
Posted: 11 Jan 2017, 13:43
How should I format my USB drive? I've understood that ext4 is the best choice for the filesystem, but how to tune it for a maximum performance while preserving some repairable integrity in case I accidentally unplug the USB drive or loose power? I'm confused about all these options: ordered, writeback, noatime, nodiratime. Should I disable journal like this:
What other parameters should I tune using tune2fs?
EDIT: The answer to this question depends on what/how often porteus writes to the disk, and that depends on whether we use "changes=EXIT:". But in any case, according to this thread viewtopic.php?f=48&t=5642&p=43376, the /tmp always lives in RAM. Couldn't find where the "/var/log" lives, hopefully also as tmpfs. Anyway, with writing to the USB already minimized perhaps journalling parameters of the USB filesystem and how it's mounted are less important, but I'd still want to hear a definite answer on how exactly to format my USB before I install porteus on it.
Code: Select all
mkfs.ext4 -O ^has_journal /dev/sda10
EDIT: The answer to this question depends on what/how often porteus writes to the disk, and that depends on whether we use "changes=EXIT:". But in any case, according to this thread viewtopic.php?f=48&t=5642&p=43376, the /tmp always lives in RAM. Couldn't find where the "/var/log" lives, hopefully also as tmpfs. Anyway, with writing to the USB already minimized perhaps journalling parameters of the USB filesystem and how it's mounted are less important, but I'd still want to hear a definite answer on how exactly to format my USB before I install porteus on it.