On 12 May 10:34, Mark Rogers wrote:
I just carelessly overwrote my /etc/fstab file with the following: echo /dev/md0 /storage ext3 defaults 0 1 | sudo tee /etc/fstab .. when I meant: echo /dev/md0 /storage ext3 defaults 0 1 | sudo tee -a /etc/fstab (-a means append)
Any suggestions for recovery?
This is a fresh install of Ubuntu 8.04 Server, so worst case I will have to reinstall the O/S but I'd like to recover if possible, not least so I know how to do it next time I am silly!
[Feeling very foolish right now...]
Well, assuming that you haven't unmounted anything, you should be able to get enough info from the output of /proc/mounts to rebuild your /etc/fstab...
(infact, there's every possibility that you can remove a few things from there... like the tmpfs mounts, and probably /dev, which will be done automatically by udev anyways.)
Hope that helps...