Quote:
Originally Posted by eosoro
... But i still wonder why cfdisk could not edit the entire fstab file with the current partitions after i had made some changes to the partition table?
|
Cfdisk (as you know) is a tool for creating, deleting, or modifying linux partitions. It does not do anything with fstab, grub's menu.lst or any other configuration file.
The situation you experienced is normal. If you have, for example, partitions /dev/sda1 to /dev/sda7, and lets say you delete /dev/sda5, then /dev/sda6 now becomes /dev/sda5, and /dev/sda7 becomes /dev/sda6. It is up to you to edit fstab, grub, or any other configuration files if you need to.
Some distros, like Ubuntu for example, list partitions in fstab and grub by their UUIDs instead of using /dev/sda
n. The UUID for a prtition does not change if partitions are deleted or moved. This (at least in theory) avoids the problems you had. See this about UUIDs:
https://help.ubuntu.com/community/UsingUUID
Glad you figured it out and got it fixed. The next time you change your partitions you will know what to do.