Updating a Disks Partition Table

After you have created a partition, you need to save the updated partition table for your disk. As mentioned before, do not do this on a live system unless you are allocating previously unused space. If the disk you are working on is currently in use (as may well be the case on a small home machine), then the partition table will be saved but cannot be reread by Linux. To solve this problem, you need to reboot your machine. If you were partitioning a disk that was not in use (no filesystems mounted), then saving and rereading the table will work without a problem. Listing 3-5 shows the q (quit) command in fdisk, followed by messages from fdisk indicating that the system must be forced to update its idea of the disk's partition table.

Was this article helpful?

0 0

Post a comment