Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!info.ucla.edu!library.ucla.edu!news.ucdavis.edu!usenet
From: Michael White <mdwhite@ucdavis.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to trap CTRL-ALT-DEL
Date: Sun, 19 May 1996 14:57:24 -0700
Organization: University of California, Davis
Lines: 52
Message-ID: <319F9944.41C6@ucdavis.edu>
References: <319CF9D2.41C6@ucdavis.edu> <4nn577$1ii@uriah.heep.sax.de>
NNTP-Posting-Host: halfdome.engr.ucdavis.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.01 (X11; I; IRIX 5.3 IP20)
To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
J Wunsch wrote:
>
> Michael White <mdwhite@ucdavis.edu> wrote:
>
> > Okay, after a month and a half of wrangling with Linux and FreeBSD
> > I finally get FreeBSD 2.1 to work with my hardware (Linux refused).
> > Now, a friend tells me that CTRL-ALT-DEL should be trapped by the
> > system and execute a shutdown -r now. It doesn't. My partitions
> > are gone. So I have a question: how does one trap the CTRL-ALT-DEL
> > so that it won't trash my system?
>
> ctrl-alt-del executes the function ``shutdown_nice()'' inside the
> console driver. It is expected to send a signal to the running
> init(8) program in order to get the system rebooted. It used to work
> fine in multiuser mode, but had a few problems in particular in
> situations (like UserConfig) where init wasn't even running yet.
>
> ``My partitions are gone.'' Can you explain this in more detail?
> Even for a total crash (or a power-cycle), the system is not supposed
> to write anything dangerous to your disk. The only anticipated
> problem is that your file systems are unclean and need repair (and
> might have lost data that wasn't on the disk yet).
>
> --
> cheers, J"org
>
> joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
> Never trust an operating system you don't have sources for. ;-)
It is just like I said. I had hit CTRL-ALT-DEL and the system
rebooted. I boot from the second disk (boot manager hands off
from the boot sector from disk 0 to disk 1) in my system, but
this time it didn't seem to see anything. I then checked with
fdisk and there were no partitions left. I had to re-do the
partitions. In fact I just re-did a net install, and the thing
doesn't seem to find the kernel. I will attempt another later
today or tomorrow probably. As for the multiuser mode, I was
logged into two virtual terminals, one as root and one as myself
so I don't know why it didn't execute the shutdown command.
- Mike
========================================================================
| |
| _ |
Michael D. White _______|/V\|_______
University of California, Davis X------------[_\(.)/_]------------X
Dept. of Mechanical & Aeronautical Engineering /o`~|~`o\
white@halfdome.engr.ucdavis.edu O H O
http://www.engr.ucdavis.edu/~mdwhite
http://www-mae.engr.ucdavis.edu/CFD/white
========================================================================