1

What happens to data copied after undoing fdisk?

view story
linux-howto

http://unix.stackexchange.com – Suppose I have some drive with a single partition. For some reason I decide to repartition it, using fdisk. I create multiple partitions, then write the partition table, then exit fdisk. At this point the kernel is still not aware of the new partition table : the initial partition is still mounted through NFS, it was only "lazy-unmounted" (umount -l) before fdisk, so it triggered the "device or resource busy" error. Now I change my mind, launch fdisk again, and merge all partitions into a single one, exactly as it was at first. Then again I write the partition table, exit fdisk, and the (HowTos)