Creating Linux Filesystems Reliably With flock
A coworker brought this up, and it’s worth noting: what’s wrong with this? # parted -s /dev/sda mkpart primary ext2 1M 8M # mke2fs /dev/sda1 Unfortunately, this will occasionally fail with this error from mk2fs: The file /dev/sda1 does not exist and no size was specified. This is due to a race condition in the… Read More