On Mon, May 24, 2004, Adam Felix Bogacki wrote:
> I tried typing "Linux init=/bin/sh" at the LILO prompt and it booted
> without all the bells & whistles, but when I tried 'vi' or 'apt-get' I
> was told they were unknown commands. I had thought I might try
> changing '/etc/apt/sources.list' to testing and deleting and
> reinstalling samba, or just doing another 'dist-upgrade'.
> 
> I could do a 'find' and 'rm' the samba files but that might be a bit
> unpredictable.  But if 'vi' was not available, what do I use to edit
> and save files ?

At a guess, your drives aren't mounted. In particular, /usr (which would
contain /usr/bin/vi) isn't mounted.

Check /etc/fstab (which should be available) for your /usr partition,
and then mount it. You will probably simply be able to type "mount /usr".

You will probably also want to remount your root partition with write
permissions enabled "mount / -o remount,rw" and probably the other
partitions in /etc/fstab, certainly /var if it's on its own partition,
otherwise apt-get probably won't work because it won't be able to create
its lock files.

-Mary
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to