Which is the best way to fix broken fstab? I think that i could do that with some live linux distro. First serch for partitions and mount them to temporary created /temproot. Manually mount partitions that you recognized one by one into newly created /temproot. very important is to wacth on righ filesystem of each partition and swap partition. After that using command chroot fix to the original root. Does someone knows better way - any suggestion is welcome?
Once you have booted the live CD, you will first need to identify the partitions as you suggest.
Using parted will provide a couple of clues:
Here we can see that
Note that the
If we mount that,
If your grub.cfg (or menu.lst) is using device names, then you'll know which is root - however in this case, we are using UUID, so we need to identify the device:
So now we know that the root partition is
Mounting the others in turn as suggested will help you identify the remaining partitions. There is no need to chroot into the environment, you can just edit fstab directly:
And recreate the entries.
Note that the /etc/mtab file gets created as partitions are mounted. This might still be intact if you havn't been able to boot since the fstab broke, so you might be able to look in