Re: Urgent Help needed please

1998-10-14 Thread Andy Spiegl
Hi Mike,

 # touch /forcefsck
  Oh, that's very interesting!!!  Thanks a lot for that hint.

 You're welcome.  I remembered after the fact that there's an equivalent
 /fastboot for booting without checks, too.
That one I knew. :-)

I suppose you wouldn't know whether it's at possible to rewrite the startup
scripts so that they log _all_ the messages?

Thanks,
 Andy.

-- 
 Andy Spiegl, University of Technology, Muenchen, Germany
 E-Mail: [EMAIL PROTECTED] URL: http://www.spiegl.de
 Finger [EMAIL PROTECTED] for my PGP key
o  _ _ _
  - __o   __o  /\_   _ \\o  (_)\__/o  (_)
  --- _`\,__`\,__(_) (_)/_\_| \   _|/' \/
  -- (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o_
 ~~~
 It works most of the time ... The technology
  brings a certain thrill to simple tasks. -- Bill Gates


Re: Urgent Help needed please

1998-10-13 Thread Mike Touloumtzis
On Mon, Oct 12, 1998 at 06:10:24PM +, Andy Spiegl wrote:
 Hi!
 
 trying to install new packages I just noticed that I can't write to
 /var/lib/dpkg anymore.  The error I get is:
 No space left on device.
 
 I took a look at /var/log/kern.log and found this:
 
 ... kernel: EXT2-fs error (device 08:07): ext2_new_block: Free blocks count \
  corrupted for block group 4 
 ... last message repeated 207 times
 ... last message repeated 133 times
 and so on.
 
 Help!  What can I do to resolve this without rebooting the machine?
 Well, I guess I could reboot it, but it is very far away from me and if it
 gets stuck during the reboot I'd have an even bigger problem.  Besides,
 there are some users logged in and I'd hate to kick them out. :-(
 
 Please send help soon!
 Thanks so much in advance,
  Andy.
 

I've read the other messages in this thread, so I know you survived
ok :-).  But for future reference, here are some helpful things to know:

1) You usually don't have to reboot to fsck a filesystem, especially
   a non-root filesystem.  First, kick off your users (shutdown -k is
   useful for this).  Then umount the filesystem, fsck it, and remount it.
   This works great for /home, not so well for /var, since it tends to
   be in use all the time.  If you can't umount it, take the system to
   single-user mode with 'telinit 1', then try the umount/fsck.

2) If you're wondering whether or not fsck will be run at boot time:
   most Linux/Unix installations, including Debian, test for the
   presence of a /forcefsck file in the rc scripts at boot time.  If
   this file exists, all filesystems in /etc/fstab are fsck'ed.  So:
# touch /forcefsck
# shutdown -r now
   Check out /etc/init.d/checkfs.sh for more details.

miket



Re: Urgent Help needed please

1998-10-13 Thread Hamish Moffatt
On Mon, Oct 12, 1998 at 11:50:09AM -0700, George Bonser wrote:
 You are going to probably need physical access to the machine to run fsck
 from the console. It is possible that it might repair itself on a reboot
 but if it has problems, it will come up in single-user mode wanting input
 from the console and you are going to have to go to the machine anyway (or
 talk someone through pressing the y key during the fsck).
 
 Risking fsck on a live filesystem that is in use is not something to be
 taken lightly ... is it possible that the drive really IS full?

Well, you can modify the startup scripts to provide the switch which tells
fsck to assume yes for everything; usually that's what you'd hit on the 
console anyway. I've did this on my one remote deployed box back
in the Debian 1.1 days (haven't checked to see if my change is still
in there in 2.0, since the box only gets visited about twice a year
for hardware tweaks, with no reboots in between).


Hamish
-- 
Hamish Moffatt VK3TYD  [EMAIL PROTECTED], [EMAIL PROTECTED]
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


Re: Urgent Help needed please

1998-10-13 Thread Andy Spiegl
 On Mon, Oct 12, 1998 at 06:10:24PM +, Andy Spiegl wrote:
  
  trying to install new packages I just noticed that I can't write to
  /var/lib/dpkg anymore.  The error I get is:
  No space left on device.

According to Mike Touloumtzis  [EMAIL PROTECTED]:
 1) You usually don't have to reboot to fsck a filesystem, especially
a non-root filesystem.  First, kick off your users (shutdown -k is
useful for this).  Then umount the filesystem, fsck it, and remount it.
This works great for /home, not so well for /var, since it tends to
be in use all the time.
Unfortunately the error(s) was/were on the /var partition.  (see above)
This reminds me that I can't even tell now what errors were reported
and fixed by fsck. :-(  Is there really no way to rewrite the startup
scripts so that they log _all_ the messages?

If you can't umount it, take the system to
single-user mode with 'telinit 1', then try the umount/fsck.
That wouldn't work either in my case, because I only have remote
access to this machine.

 2) If you're wondering whether or not fsck will be run at boot time:
most Linux/Unix installations, including Debian, test for the
presence of a /forcefsck file in the rc scripts at boot time.  If
this file exists, all filesystems in /etc/fstab are fsck'ed.  So:
   # touch /forcefsck
   # shutdown -r now
Check out /etc/init.d/checkfs.sh for more details.
Oh, that's very interesting!!!  Thanks a lot for that hint.

Thanks for your help!
 Andy.

-- 
 Andy Spiegl, University of Technology, Muenchen, Germany
 E-Mail: [EMAIL PROTECTED] URL: http://www.spiegl.de
 Finger [EMAIL PROTECTED] for my PGP key
o  _ _ _
  - __o   __o  /\_   _ \\o  (_)\__/o  (_)
  --- _`\,__`\,__(_) (_)/_\_| \   _|/' \/
  -- (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o_
 ~~~


Re: Urgent Help needed please

1998-10-13 Thread Andy Spiegl
According to George Bonser  [EMAIL PROTECTED]:
 
 dmesg | more
 
 might help

Nope, it doesn't. :-(
It only reports some of the startup messages.  The important ones like
the output of fsck (even whether it was run at all) is not shown.

BTW, I don't understand the man page of dmesg.  It describes the
switch -n, which has no effect at all.  Here at least.  Could
someone enlighten me please?

Thanks,
 Andy.

-- 
 Andy Spiegl, University of Technology, Muenchen, Germany
 E-Mail: [EMAIL PROTECTED] URL: http://www.spiegl.de
 Finger [EMAIL PROTECTED] for my PGP key
o  _ _ _
  - __o   __o  /\_   _ \\o  (_)\__/o  (_)
  --- _`\,__`\,__(_) (_)/_\_| \   _|/' \/
  -- (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o_
 ~~~


Re: Urgent Help needed please

1998-10-13 Thread Mike Touloumtzis
On Tue, Oct 13, 1998 at 12:49:24PM +, Andy Spiegl wrote:
 
 If you can't umount it, take the system to
 single-user mode with 'telinit 1', then try the umount/fsck.
 That wouldn't work either in my case, because I only have remote
 access to this machine.
 

Yeah, I somehow missed the 'remote access' bit in your previous mail :-(

  2) If you're wondering whether or not fsck will be run at boot time:
 most Linux/Unix installations, including Debian, test for the
 presence of a /forcefsck file in the rc scripts at boot time.  If
 this file exists, all filesystems in /etc/fstab are fsck'ed.  So:
  # touch /forcefsck
  # shutdown -r now
 Check out /etc/init.d/checkfs.sh for more details.
 Oh, that's very interesting!!!  Thanks a lot for that hint.

You're welcome.  I remembered after the fact that there's an equivalent
/fastboot for booting without checks, too.

miket


Re: Urgent Help needed please

1998-10-13 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED],
Mike Touloumtzis  [EMAIL PROTECTED] wrote:
2) If you're wondering whether or not fsck will be run at boot time:
   most Linux/Unix installations, including Debian, test for the
   presence of a /forcefsck file in the rc scripts at boot time.  If
   this file exists, all filesystems in /etc/fstab are fsck'ed.  So:
   # touch /forcefsck
   # shutdown -r now
   Check out /etc/init.d/checkfs.sh for more details.

The -F flag to shutdown creates the /forcefsck file automatically,
so shutdown -rF does the same. See the shutdown manpage.

Mike.
-- 
  Did I ever tell you about the illusion of free will?
-- Sheriff Lucas Buck, ultimate BOFH.


Urgent Help needed please

1998-10-12 Thread Andy Spiegl
Hi!

trying to install new packages I just noticed that I can't write to
/var/lib/dpkg anymore.  The error I get is:
No space left on device.

I took a look at /var/log/kern.log and found this:

... kernel: EXT2-fs error (device 08:07): ext2_new_block: Free blocks count \
 corrupted for block group 4 
... last message repeated 207 times
... last message repeated 133 times
and so on.

Help!  What can I do to resolve this without rebooting the machine?
Well, I guess I could reboot it, but it is very far away from me and if it
gets stuck during the reboot I'd have an even bigger problem.  Besides,
there are some users logged in and I'd hate to kick them out. :-(

Please send help soon!
Thanks so much in advance,
 Andy.

-- 
 Andy Spiegl, University of Technology, Muenchen, Germany
 E-Mail: [EMAIL PROTECTED] URL: http://www.spiegl.de
 Finger [EMAIL PROTECTED] for my PGP key
o  _ _ _
  - __o   __o  /\_   _ \\o  (_)\__/o  (_)
  --- _`\,__`\,__(_) (_)/_\_| \   _|/' \/
  -- (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o_
 ~~~


Re: Urgent Help needed please

1998-10-12 Thread Jim Foltz
It's hard to answer when you don't include any other information. The
obvious question is: Are you really out of disk space? and the answer is df.
What does the output from df say?

If you are out of disk space, do you have a spare partition available? If so
you may be ok. If not, you may be screwed. What does the output from
fdisk -l say?



On Mon, Oct 12, 1998 at 06:10:24PM +, Andy Spiegl wrote:
 Hi!
 
 trying to install new packages I just noticed that I can't write to
 /var/lib/dpkg anymore.  The error I get is:
 No space left on device.
 
 I took a look at /var/log/kern.log and found this:
 
 ... kernel: EXT2-fs error (device 08:07): ext2_new_block: Free blocks count \
  corrupted for block group 4 
 ... last message repeated 207 times
 ... last message repeated 133 times
 and so on.
 
 Help!  What can I do to resolve this without rebooting the machine?
 Well, I guess I could reboot it, but it is very far away from me and if it
 gets stuck during the reboot I'd have an even bigger problem.  Besides,
 there are some users logged in and I'd hate to kick them out. :-(
 
 Please send help soon!
 Thanks so much in advance,
  Andy.
 
 -- 
  Andy Spiegl, University of Technology, Muenchen, Germany
  E-Mail: [EMAIL PROTECTED] URL: http://www.spiegl.de
  Finger [EMAIL PROTECTED] for my PGP key
 o  _ _ _
   - __o   __o  /\_   _ \\o  (_)\__/o  (_)
   --- _`\,__`\,__(_) (_)/_\_| \   _|/' \/
   -- (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o_
  ~~~
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

-- 
Jim Foltz [EMAIL PROTECTED]


Re: Urgent Help needed please

1998-10-12 Thread Andy Spiegl
Hi Jim,

first of all thanks for the fast answer!

 It's hard to answer when you don't include any other information.
You are right.  I am sorry.  I wanted to get my question out as fast as
possible and stopped thinking.

 The obvious question is: Are you really out of disk space? and the answer
 is df.
No, I am not.

 What does the output from df say?
2 GB free space:
/dev/sda1 194405   12675   171691  7%   /
/dev/sda6 497667  311861   160104 66%   /usr
/dev/sda73299939 1000232  2129018 32%   /var

 If not, you may be screwed.
Oh, uh.  I was afraid so.  If I reboot do you think the startup scripts
would run efsck automatically?

 What does the output from fdisk -l say?
Hm, why just a moment:

Disk /dev/sda: 255 heads, 63 sectors, 527 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot   BeginStart  End   Blocks   Id  System
/dev/sda1   *11   25   200781   83  Linux native
/dev/sda2   26   26  527  40323155  Extended
/dev/sda5   26   26   38   104391   82  Linux swap
/dev/sda6   39   39  102   514048+  83  Linux native
/dev/sda7  103  103  527  3413781   83  Linux native

Disk /dev/sdb: 64 heads, 32 sectors, 1021 cylinders
Units = cylinders of 2048 * 512 bytes

   Device Boot   BeginStart  End   Blocks   Id  System
/dev/sdb4   *11 1021  10454886  DOS 16-bit =32M

Thanks,
 Andy.

-- 
 Andy Spiegl, University of Technology, Muenchen, Germany
 E-Mail: [EMAIL PROTECTED] URL: http://www.spiegl.de
 Finger [EMAIL PROTECTED] for my PGP key
o  _ _ _
  - __o   __o  /\_   _ \\o  (_)\__/o  (_)
  --- _`\,__`\,__(_) (_)/_\_| \   _|/' \/
  -- (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o_
 ~~~


Re: Urgent Help needed please

1998-10-12 Thread Paul Crowley
[EMAIL PROTECTED] (Andy Spiegl) writes:
 I took a look at /var/log/kern.log and found this:
 
 ... kernel: EXT2-fs error (device 08:07): ext2_new_block: Free blocks count \
  corrupted for block group 4 
 ... last message repeated 207 times
 ... last message repeated 133 times
 and so on.

I'd be surprised if you had many other options besides rebooting with
your fingers crossed.  One thing that might be worth doing before
rebooting is editing /etc/defaults/rcS and changing

FSCKFIX=no

to 

FSCKFIX=yes

to force e2fsck to do whatever it thinks it has to do without any
questions.  If this fails, you really will have to get someone
physically close to the machine to help to make any more progress :-(

 o  _ _ _
   - __o   __o  /\_   _ \\o  (_)\__/o  (_)
   --- _`\,__`\,__(_) (_)/_\_| \   _|/' \/
   -- (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o_
  ~~~

Nice .sig!

-- 
  __
\/ o\ [EMAIL PROTECTED] Edinburgh fetish club Permission \ /
/\__/ Paul Crowley  Nov 8 http://www.hedonism.demon.co.uk/permission /~\


Re: Urgent Help needed please

1998-10-12 Thread Andy Spiegl
Hi Paul,

 editing /etc/defaults/rcS
  FSCKFIX=yes
Thanks.  Actually I did that last week, after some kind person in the
list gave this as an answer to another question of mine.

Well, I dared to do itandwas lucky!  The system is up and running
again.  And I don't see any dubious messages in the log files anymore.

But I can't tell whether fsck was called during bootup.  There are no
hints at all in /var/log/messages about this.  Is there any other way
to tell?

Thanks again to all of you,
 Andy.

-- 
 Andy Spiegl, University of Technology, Muenchen, Germany
 E-Mail: [EMAIL PROTECTED] URL: http://www.spiegl.de
 Finger [EMAIL PROTECTED] for my PGP key
o  _ _ _
  - __o   __o  /\_   _ \\o  (_)\__/o  (_)
  --- _`\,__`\,__(_) (_)/_\_| \   _|/' \/
  -- (_)/ (_)  (_)/ (_)  (_)(_)   (_)(_)'  _\o_
 ~~~
 Linux vs. Windows is a no-Win situation