-
knoppix.sh problems
I am succefully booting knoppix from a USB key. I have two stranger problems however:
1. When I boot, if I type "knoppix myconfig=/mnt/uba1" then knoppix succesfully finds the knoppix.sh file on the root of my usb key. If instead I add "myconfig=/mnt/uba1" to the APPEND line of the appropriate syslinux.cfg section, knoppix does NOT see the knoppix.sh file. Why? (I confirmed this by adding the line 'echo "Test" >> /tmp/test.txt" to the knoppix.sh file.
2. More importantly, even when knoppix.sh does run, it will not start ssh! I added the line '/etc/init.d/ssh start' to the top of the knoppix.sh file. Still, it doesn't seem to run or work. I CAN run this command from a bash shell, and then sshd works great. Why is knoppix.sh not running this line?
Thanks,
Mike
-
Re: knoppix.sh problems
Originally Posted by
ocgltd
I am succefully booting knoppix from a USB key. I have two stranger problems however:
1. When I boot, if I type "knoppix myconfig=/mnt/uba1" then knoppix succesfully finds the knoppix.sh file on the root of my usb key. If instead I add "myconfig=/mnt/uba1" to the APPEND line of the appropriate syslinux.cfg section, knoppix does NOT see the knoppix.sh file. Why? (I confirmed this by adding the line 'echo "Test" >> /tmp/test.txt" to the knoppix.sh file.
If I remember this right, I think that some (old) version of syslinux have a command line length limitation. Could you try to remove some other cheatcode to verify this ? Grub doesn't have such limitation and can also be used to boot knoppix from a USB dongle.
Originally Posted by
ocgltd
2. More importantly, even when knoppix.sh does run, it will not start ssh! I added the line '/etc/init.d/ssh start' to the top of the knoppix.sh file. Still, it doesn't seem to run or work. I CAN run this command from a bash shell, and then sshd works great. Why is knoppix.sh not running this line? Thanks, Mike
The path may not be setup yet at boot time. Try to put the full path of the script in your knoopix.sh or even better cut and paste the whole thing and update the full path where required. You can use "whereis" to figure out the full path of program/scripts,...
My 2cts, Gilles
-
I'm using the latest syslinux, and I also added the myconfig= cheatcode to the front of the line (so I don't thinks its a line length limitation).
I already use the full path. Here are the top 3 lines of my knoppix.sh:
#!/bin/sh
echo "Running knoppix.sh" >> /tmp/knoppix.sh.txt
/etc/init.d.ssh start >> /tmp/sshstart.txt
I didn't know knoppix could boot a usb key! I'll switch once I get this working....
Similar Threads
-
By javiergp in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 06-22-2006, 12:39 PM
-
By wroseland in forum Hardware & Booting
Replies: 0
Last Post: 03-23-2006, 02:10 PM
-
By mindmeddler2003 in forum General Support
Replies: 1
Last Post: 02-03-2004, 07:29 PM
-
By lesshaste in forum General Support
Replies: 2
Last Post: 01-09-2004, 05:50 PM
-
By pbearseven in forum General Support
Replies: 3
Last Post: 10-14-2003, 11:19 AM
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
Juniper EX2200-C-12T-2G 12 Port L3 EX2200-C Compact Fanless Switch 1YearWarranty
$195.00
Juniper EX4300-24T Layer 3 24 Ports Manageable Ethernet Switch 1 Year Warranty
$195.00
JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER
$210.00
Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch
$40.18
Juniper Networks EX4300-48T 48 Port Gigabit 4 QSFP 40G 2xPSU AFO Network Switch
$89.00
Juniper Networks EX2300-C 12-Port 2XSFP Uplinks PoE+ Switch P/N: EX2300-C-12P
$299.99
Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord
$53.99
Juniper EX2300-24P Poe+ Rack Mountable Ethernet Switch
$130.00
Juniper QFX5100-48T-AFO 48 100M/1G/10G Base-T 6 QSFP AFO
$485.00
Juniper EX2300-48P PoE+ Switch 48x 1GbE & 4 SFP+/SFP 10G uplinks, Tested
$289.00