-
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 Hard Drive SATA 6 Gbps 8TB 512e RPM 7.2K - MG05ACA800E picture](/store/img/g/YIAAAOSw~9lmfqsb/s-l225/DELL-Hard-Drive-SATA-6-Gbps-8TB-512e-RPM-7-2K-MG05.jpg)
DELL Hard Drive SATA 6 Gbps 8TB 512e RPM 7.2K - MG05ACA800E
$29.99
![HITACHI HUS724040ALA640 4TB 7200RPM 64MB SATA 6.0Gb/s 3.5](/store/img/g/TIMAAOSw969gDuvf/s-l225/HITACHI-HUS724040ALA640-4TB-7200RPM-64MB-SATA-6-0G.jpg)
HITACHI HUS724040ALA640 4TB 7200RPM 64MB SATA 6.0Gb/s 3.5" HARD DRIVE ZERO HOURS
$52.00
![Seagate ST1000VM002 1TB 64MB SATA6Gb/s 3.5](/store/img/g/tFMAAOSwjDVmceFV/s-l225/Seagate-ST1000VM002-1TB-64MB-SATA6Gb-s-3-5-Low-Pow.jpg)
Seagate ST1000VM002 1TB 64MB SATA6Gb/s 3.5" (Low Power) Hard Drive -PC, CCTV DVR
$24.99
![Western Digital 4TB Internal 7.2KRPM 3.5](/store/img/g/QHQAAOSwCPxl~ZwC/s-l225/Western-Digital-4TB-Internal-7-2KRPM-3-5-WD4000FYY.jpg)
Western Digital 4TB Internal 7.2KRPM 3.5" (WD4000FYYZ) SATA Hard Drive ZERO HOUR
$69.99
![HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5](/store/img/g/buwAAOSwDghlwalj/s-l225/HGST-Ultrastar-DC-HC520-12TB-SATA-6Gb-256MB-3-5-En.jpg)
HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601
$74.99
![CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD picture](/store/img/g/qqcAAOSw~xVgcyGX/s-l225/CISCO-A03-D1TBSATA-1TB-7-2K-6G-2-5INCH-SATA-HDD.jpg)
CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD
$9.00
![Seagate ST12000NM0127 12TB SATA 6Gb/s 256MB 7200RPM 3.5](/store/img/g/de0AAOSwcJJlDe~2/s-l225/Seagate-ST12000NM0127-12TB-SATA-6Gb-s-256MB-7200RP.jpg)
Seagate ST12000NM0127 12TB SATA 6Gb/s 256MB 7200RPM 3.5" Enterprise Hard Drive
$99.99
![WD Ultrastar DC HC530 14TB SATA 6G 3.5](/store/img/g/gggAAOSwwB5mL~fg/s-l225/WD-Ultrastar-DC-HC530-14TB-SATA-6G-3-5-7200RPM-Ent.jpg)
WD Ultrastar DC HC530 14TB SATA 6G 3.5" 7200RPM Enterprise HDD - WUH721414ALE604
$110.00
![WD Ultrastar DC HC520 12TB SATA III 3.5](/store/img/g/nMUAAOSwjvJmgXAz/s-l225/WD-Ultrastar-DC-HC520-12TB-SATA-III-3-5-Enterprise.jpg)
WD Ultrastar DC HC520 12TB SATA III 3.5" Enterprise HDD (HUH721212ALE600)
$100.00
![Seagate ST8000NM0055 8TB 7200RPM 256MB SATA 6.0 Gb/s 3.5](/store/img/g/pM0AAOSwNJNmTand/s-l225/Seagate-ST8000NM0055-8TB-7200RPM-256MB-SATA-6-0-Gb.jpg)
Seagate ST8000NM0055 8TB 7200RPM 256MB SATA 6.0 Gb/s 3.5" Enterprise Hard Drive
$41.62