On Sat, Nov 01, 2008 at 08:33:44PM +0100, soko.tica wrote: > Hello list, > > I did manage to scr... err, mess up partitioning scheme through > disklabel, so I've booted from floppy, mounted partitions to /tmp/a/, > tmp/d/, /tmp/e/, but when I attempt to edit etc/fstab by ed I get: > > #chmod 766 /etc/fstab > # ed /etc/fstab > 215 > q > # > > I've arrived there by adding new partition for /var and editing > /etc/fstab without executing newfs on new partition. When I then > attempted to clean the mess up by running disklabel again, I mixed up > /usr and old /var, so I guess I'm stuck to floppy now. > > Any help (obviously written for dummies) is greatly appreciated. I've > never used ed.
If you have a running system, try 'man ed'; otherwise, point any browser at http://www.openbsd.org/cgi-bin/man.cgi?query=ed It may not be everyone's first choice for a big interactive editing task, but ed is small, fast on any machine, easy to script and always there. cheers, -wb