Re: No space left on device

From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 08/27/03


Date: Wed, 27 Aug 2003 01:11:14 +0000 (UTC)

Spamless <Spamless@Nil.nil> writes:

]In article <3f4bb581$0$15122$afc38c87@>, Kimberly Webb wrote:
]> I'm a VERY new linux user trying to administer an existing linux box to
]> allow remote dial-in access on our network. It's Red Hat Linux release 7.3,
]> Kernel 2.4.18-5 on an i686.
]>
]> During boot up I get an error "no space left on device"
]>
]> What exactly should I delete to fix this? I assume there are log files I
]> can get rid of but how to I navigate to them. Should I delete the files or
]> just open them in vi and empty them? How do I even get into the /dev/hda2
]> to do anything? A patient person that could provide step by step
]> directions would be VERY appreciated. Many thanks in advance for your help.
]>
]> I already used pine to delete all the mail.
]>
]> [root@fluffy root]# df -k
]> Filesystem 1k-blocks Used Available Use% Mounted on
]> /dev/hda2 1619164 1618780 0 100% /
]> /dev/hda1 148345 5389 135297 4% /boot

OK, as you can see, / is full.
But not quite. it still has about 400K left. This should allow you still to log on
as root, and clean out /var/log.
However your seem to have trouble. The huge message file suggests something is
wrong. The huge mgetty.... file also suggest the same. befor you erase them, do
tail -40 /var/log/messages
and tail -4 /var/log/mgetty*
to see what the error messages are.

Then do
>/var/log/messages
and
> /var/log/mgetty*
This should empty those files. But you have to figure out why they are getting so large. Somthing is not
right.



Relevant Pages

  • Re: Password
    ... I ran a quick search on Ask with the phrase "linux lost ... Have you ever forgotten your root password? ... Fortunately, it wasn't a boot password, so I did have ... (although "mount" may say it is). ...
    (alt.os.linux)
  • RE: Linux hacked
    ... Subject: Linux hacked ... After you boot up into the OS running from CD, ... >> First let me say I'm a security novice. ... >> been unsuccessful in getting root back. ...
    (Security-Basics)
  • Re: Greetings / Newbie questions
    ... Please, don't jump on the "Linux is the be-all, end-all OS and is ... I am having a bit of trouble deciding which to use: Gnome or KDE. ... >I have found that alot of things need to be done as root. ...
    (alt.os.linux.redhat)
  • Linux boot hint needed
    ... We're gettting further in getting linux to run on our board. ... Looking up port of RPC 100003/2 on 172.22.33.87 ... RPC: sendmsg returned error 101 ... Unable to mount root fs via NFS, ...
    (comp.os.linux.embedded)
  • Re: Windows Managers/Linspire-Lindows
    ... > Windows as possible and so root is in control unless you create a user. ... This means a Windows_idiot can install it and use it ... > without having to learn all that hard linux stuff. ... This design flaw drives my level of trust in the design down to ...
    (alt.linux)