Tag: fdisk

Posted in How To Linux Software

How to automate fdisk (how to partition a lot of disks quickly)

Imagine you need to create say 10 disks with predefined partitions loaded with some software. The ideal solution would be automatic disk partitioning and copying the software to it. While copying files is an easy-to-do everyday procedure partitioning is a bit more tricky (really, just a little bit). Here is…

Photo by Museums Victoria on Unsplash
Posted in How To Linux

How to disable automount in linux (Re-reading the partition table failed with error 16)

Imagine you’re repartitioning a disk and when you quit fdisk writing the new partition table automount tries to mount new partitions. So instead of refreshed disk ready for newfs you get this warning:

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old…