Results 1 to 5 of 5

Thread: Run scripts from floppy at boot

  1. #1

    Run scripts from floppy at boot

    Hi!

    I am experimenting with a knoppix router running the live cd. I could easily remaster a cd tailored to my network configuration (I use that term loosely as I have yet to remaster a cd) but I would like it if I could make my image a little more versatile than just tailored to my immediate needs especially if at any time I need to change my network configuration. I read somewhere that it's possible to write some bash configuration scripts (such as commands to set eth0 to a certain ip address, etc.) on a floppy disk and then have those commands executed when the system boots. This would give me the flexability I'm looking for I think. I didn't write down the forums I saw that on though and can't find them again. Does anyone have some pointers on how I can do this or can perhaps point me in the direction of a howto on it? Thanks!

  2. #2
    Senior Member registered user
    Join Date
    Sep 2005
    Posts
    205
    Just create a script called knoppix.sh on the floppy and then use knoppix floppyconfig when booting the LiveCD.

    This and some other boot-options are listed at http://www.knoppix.net/wiki/Cheat_Codes, or in a file KNOPPIX/knoppix-cheatcodes.txt in your Knoppix CD/DVD.

  3. #3
    Ok, I'll do that. Thanks!

  4. #4
    Junior Member registered user
    Join Date
    Nov 2006
    Posts
    23
    I am trying to use knoppix.sh in the main image (basically the same function as putting one on floppy).

    The script gets pickup and run when I boot but it not doing what I expect. This is probably because I dont know what state knoppix is in at that point and what environment the script is running in.

    Since the script is outside the KNOPPIX compressed system who can I refer to, say, the /opt directory of the live system.

    I want my script to untar some data into the fresh system before X starts.

    This would seem to be the place to do it I just dont know the relative path to live system.

    TIA.

  5. #5
    Junior Member registered user
    Join Date
    Nov 2006
    Posts
    23
    PS , I forgot that the script that I need to run needs some user keyboard input and it would be helpful to see the console at this point.

    any suggestions ?

Similar Threads

  1. Running commands & shell scripts automatically at boot
    By sunburnt in forum Tips and Tricks
    Replies: 5
    Last Post: 05-28-2005, 05:39 PM
  2. Boot script to run my scripts?...PROBLEM SOLVED
    By sunburnt in forum General Support
    Replies: 2
    Last Post: 04-18-2005, 07:13 PM
  3. remaster scripts require boot.img - none on Knoppix 3.6
    By acer0001 in forum Customising & Remastering
    Replies: 1
    Last Post: 01-25-2005, 05:38 PM
  4. Knoppix wont boot with boot floppy
    By proto in forum General Support
    Replies: 3
    Last Post: 03-17-2004, 11:29 PM
  5. Boot knoppix withough Floppy and CD boot
    By Dan_Netwalker in forum Hdd Install / Debian / Apt
    Replies: 7
    Last Post: 02-23-2003, 01:40 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
  •  


HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5

HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD

$69.99



WF12F DELL 1TB 7.2K 6GBPS SATA 2.5'' HDD HARD DRIVE ST91000640NS 0WF12F picture

WF12F DELL 1TB 7.2K 6GBPS SATA 2.5'' HDD HARD DRIVE ST91000640NS 0WF12F

$25.00



WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN picture

WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN

$49.99



Western Digital 4TB WD Purple Surveillance HDD, Internal Hard Drive - WD43PURZ picture

Western Digital 4TB WD Purple Surveillance HDD, Internal Hard Drive - WD43PURZ

$96.99



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$89.99



Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5

Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive

$29.99



HGST HUS724040ALS640 4TB 7200RPM 64MB Cache 6Gbps SAS 3.5

HGST HUS724040ALS640 4TB 7200RPM 64MB Cache 6Gbps SAS 3.5" Hard Drive HDD SERVER

$19.99



2TB 3.5

2TB 3.5" HDD Sata Mixed Brands hard drive Tested Formatted

$18.99



WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN picture

WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN

$209.99



Seagate Exos X22 ST22000NM001E 22TB 512E SATA 6Gb/s 3.5

Seagate Exos X22 ST22000NM001E 22TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive

$311.99