-
Reboot computer without prompt for for a keypress
Hi,
I would like to reboot my knoppix-system without a prompt for for a keypress. But the CD should be ejected.
There is a cheatcode "noprompt", but then the CD won't be ejeceted.
I will use this for getting automatically images of servers over night. It would be great if someone can help me.
Thx & cheers
-
Senior Member
registered user
Well, this has been discussed here http://www.knoppix.net/forum/viewtopic.php?t=14175 where we discover that knoppix uses a modified sysvinit. If you want to follow up & edit the source, then you can get them at http://debian-knoppix.alioth.debian.org/sources/
-
Ok .. but ..
Ok, so this was covered a little in another thread --
BUT ..
If KNOPPIX has a "noprompt" and "noeject" runtime parameter, passed into the kernel at boot time - WHY oh WHY aren't they honored?
I have a situation where I NEED the box to be able to reboot unattended at a given time.
I've modified lilo to pass in "noprompt" -- which brings be to the point where the system says "Preparing for reboot" and then sits there forever.
I know KNOPPIX >CAN< reboot, since when I leave the prompt up and hit a key, the system reboots / powers down normally.
What I don't understand is why setting "noprompt" doesn't work, regardless of the modified SysVInit package.
Any help?!
P
-
Fixed...
Ok,
So without anyone responding, I took it upon myself to make the change.
I was using a LiveCD KNOPPIX style installation, but it was running from a Read/write CF card, so I downloaded the file: sysvinit-knoppix-2.84.tar.gz from http://debian-knoppix.alioth.debian.org/sources/ and had a go at removing the prompt and cdrom removal in a way that actually worked.
After reading the code, I couldn't figure out WHY setting "NOPROMPT" and "NOEJECT" passing into the kernel at boot time wasn't working as it should - the code read quite clearly that if those were there, move on and finish rebooting.
Clearly frustrated at the whole ordeal - I simply removed the offending block of code using the magic of "//" ![Smile](images/smilies/icon_smile.gif)
I then recompiled init, did the special dance of 1,000 files to extract, insert, and recompress the KNOPPIX file, and put it back onto my CF Card..
Voila - No keypress!
If anyone ever has this problem again - (IE: Someone breaks sysvinit to require a freakin' keypress ..) - let me know and I'll forward you either a diff, patch, or zip of the whole mess fixed up.
P
Similar Threads
-
By gauclair in forum General Support
Replies: 0
Last Post: 01-23-2005, 05:36 AM
-
By Fiazle in forum General Support
Replies: 2
Last Post: 12-05-2004, 10:25 PM
-
By mimes in forum General Support
Replies: 1
Last Post: 11-29-2004, 04:57 AM
-
By DimGR in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 05-25-2004, 02:46 AM
-
By n3150nao in forum General Support
Replies: 2
Last Post: 03-18-2004, 02:12 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W picture](/store/img/g/W38AAOSwtcVjVC0Z/s-l225/Dell-PowerEdge-R730-2x-E5-2699V3-2-3Ghz-36-Core-12.jpg)
Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W
$329.99
![DELL R630 SERVER 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU picture](/store/img/g/mkkAAOSwE5ZmT1Cg/s-l225/DELL-R630-SERVER-8-x-2-5-2X-E5-2680V4-32GB-RAM-IDR.jpg)
DELL R630 SERVER 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU
$169.95
![Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture](/store/img/g/ZD0AAOSwm41mOZYw/s-l225/Dell-PowerEdge-R630-Server-2x-E5-2640v3-2-60Ghz-16.jpg)
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$182.65
![Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays picture](/store/img/g/GAcAAOSw9Q1mGSZW/s-l225/Dell-Poweredge-R630-Server-2x-E5-2620-V4-16-Cores-.jpg)
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$159.99
![Dell PowerEdge R710 2.5](/store/img/g/tTYAAOSw435kFNPZ/s-l225/Dell-PowerEdge-R710-2-5-2U-Server-2x-X5670-2-93GHZ.jpg)
Dell PowerEdge R710 2.5" 2U Server 2x X5670 2.93GHZ 12-Core 128gb 2x 1TB SAS
$114.99
![Dell PowerEdge T420 2x Xeon E5-2430 V2 2.50GHZ 32GB DDR3-1600MHZ 2x 550W PSU picture](/store/img/g/KD8AAOSwASNmbGFV/s-l225/Dell-PowerEdge-T420-2x-Xeon-E5-2430-V2-2-50GHZ-32G.jpg)
Dell PowerEdge T420 2x Xeon E5-2430 V2 2.50GHZ 32GB DDR3-1600MHZ 2x 550W PSU
$149.95
![Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture](/store/img/g/QTAAAOSwrO9l4PEx/s-l225/Dell-PowerEdge-R730XD-28-Core-Server-2X-Xeon-E5-26.jpg)
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
![Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture](/store/img/g/vx0AAOSwvwFlExVY/s-l225/Dell-PowerEdge-R630-Server-2x-E5-2680-V4-28-Cores-.jpg)
Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD
$197.99
![DELL PowerEdge R730 Server 2x E5-2697v4 2.3GHz =36 Cores 128GB H730 4xRJ45 picture](/store/img/g/O2MAAOSwRtNkh97Y/s-l225/DELL-PowerEdge-R730-Server-2x-E5-2697v4-2-3GHz-36-.jpg)
DELL PowerEdge R730 Server 2x E5-2697v4 2.3GHz =36 Cores 128GB H730 4xRJ45
$461.00
![Dell Poweredge R440 2x Xeon Silver 4110 SR3GH 32GB RAM No Drives Server picture](/store/img/g/zvIAAOSw7D1meaRb/s-l225/Dell-Poweredge-R440-2x-Xeon-Silver-4110-SR3GH-32GB.jpg)
Dell Poweredge R440 2x Xeon Silver 4110 SR3GH 32GB RAM No Drives Server
$349.99