If your systems still running you might be able to copy /etc/mtab.
regards,
Keith ____________ The best use of your mind is to distrust it. - François Fénelon
-----Original Message----- From: main-bounces@lists.alug.org.uk [mailto:main-bounces@lists.alug.org.uk] On Behalf Of Mark Rogers Sent: 12 May 2008 10:35
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...]
____________________________________________________________________________________ Kewill Systems Plc Tel: +44 (0) 160 377 9300 Email:keith.watson@kewill.com 26 Hellesdon Park Rd., DDI: +44 (0) 160 377 9324 Web:www.kewill.com Norwich, Norfolk, NR6 5DR Fax: +44 (0) 160 377 9303 ____________________________________________________________________________________ ________________________________
IMPORTANT NOTICE: This e-mail, and each of any attachments transmitted with it, is confidential, is the property of Kewill Systems plc ("Kewill"), and is intended solely for the information of the individual/entity to whom this e-mail is addressed. It may also be privileged or protected by other legal rules. If you have received it by mistake, please notify the author immediately by replying to this e-mail and then destroy/delete this e-mail and all attachments (if any). If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail. In accordance with Kewill's internal policy e-mails sent and/or received may be monitored. Whilst Kewill takes reasonable precautions (including use of anti-virus software) it accepts no responsibility for any loss or damage should this e-mail contain any virus, or similar destructive or mischievous code. © Kewill Systems plc 2007. Kewill Systems plc (1037515) - registered in England at Bramley House, The Guildway, Old Portsmouth Road, Artington, Guildford, GU3 1LR.