Results 1 to 3 of 3

Thread: too lazy to type boot codes

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    2

    too lazy to type boot codes

    How can I automate my boot codes so I don't have to type them at the boot prompt?
    I don't want to "install" knoppix. I have used tohd so it will run off HDD after boot. I also use myconfig. So my boot codes look like this:
    knoppix myconfig=/media/hda6 fromhd=/dev/hda6
    I'm using knoppix 5.1.
    I no longer have the original .iso file.
    I'd really like to not have to put the Knoppix boot CD in at all. (I'll live with it. This is secondary)
    I do not want to change my XP MBR.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    204

    Re: too lazy to type boot codes

    Quote Originally Posted by ches
    How can I automate my boot codes so I don't have to type them at the boot prompt?
    I don't want to "install" knoppix. I have used tohd so it will run off HDD after boot. I also use myconfig. So my boot codes look like this:
    knoppix myconfig=/media/hda6 fromhd=/dev/hda6
    I'm using knoppix 5.1.
    I no longer have the original .iso file.
    I'd really like to not have to put the Knoppix boot CD in at all. (I'll live with it. This is secondary)
    I do not want to change my XP MBR.
    Interesting question. I did some research on this topic and here is my solution to your request:

    Remaster your knoppix boot CD so it contains the "myconfig=/media/hda6 fromhd=/dev/hda6" as the default boot option.

    Follow the remaster steps on http://www.knoppix.net/wiki/Knoppix_Remastering_Howto

    Before you move on to create the ISO image, change the /etc/init.d/knoppix-autoconfig script.

    At the beginning of the script, add the following line:

    Code:
    export CMDLINE="${CMDLINE} myconfig=/media/hda6 fromhd=/dev/hda6"
    Save the file.

    Create the ISO and burn it to the cd.

    Here you go, boot from the CD and it should be all automatic now.

    Pro: Simple and straight forward
    Con: You still need to boot it up with the CD

    I did not test it out myself. Just let us know the result when you're done. It's gonna be interesting.

    Rgds,
    Chip

  3. #3
    Senior Member registered user
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    204

    Re: too lazy to type boot codes

    Sorry folks, I was given wrong info in my last post.

    I take a second look on the script /etc/init.d/autoconfig, the default boot setting is stored at the file /proc/cmdline.

    So the correct way to do it is:

    Method 1: Edit /proc/cmdline file, add the string "myconfig=/media/hda6 fromhd=/dev/hda6" at the end of the file. Save it and remaster the CD.

    Method 2: Edit /etc/init.d/autoconfig file, at line 109, you will find the statement

    Code:
    CMDLINE="$(cat /proc/cmdline)"
    Right after this statement, add the line

    Code:
    CMDLINE="${CMDLINE} myconfig=/media/hda6 fromhd=/dev/hda6"
    Save the file and remaster the CD.

    I tried a couple of times trying to remastering the CD but unfortunately the remaster CD ISO image is far larger than the 700MB so I cannot burn it to the CD and try it.

    I pretty much sure my idea will work but just not been able to prove my concept.

    Rgds,
    Chip

Similar Threads

  1. Boot codes for Hard Drive Install
    By netfun81 in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 12-17-2009, 07:10 PM
  2. black screen, used boot cheat codes
    By famousnation in forum Hardware & Booting
    Replies: 12
    Last Post: 12-21-2006, 04:00 PM
  3. Cannot type anything at boot prompt !
    By markraem in forum General Support
    Replies: 3
    Last Post: 12-06-2004, 09:51 PM
  4. Setting default boot Cheat Codes
    By cld in forum General Support
    Replies: 1
    Last Post: 07-15-2004, 01:45 PM
  5. System Type-(0F) Boot Error
    By Kymira in forum General Support
    Replies: 0
    Last Post: 03-10-2004, 02:57 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
  •  


USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$288.19



SK hynix 32GB PC4-25600 DDR4-3200 Memory - HMAA4GR7AJR8N-XN picture

SK hynix 32GB PC4-25600 DDR4-3200 Memory - HMAA4GR7AJR8N-XN

$189.99



Lot of 4 16GB SK Hynix HMA82GR7AFR8N-VK 2RX8 DDR4 PC4-2666V RDIMM Server Memory picture

Lot of 4 16GB SK Hynix HMA82GR7AFR8N-VK 2RX8 DDR4 PC4-2666V RDIMM Server Memory

$374.99



Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack picture

Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack

$175.90



✅ MICRON MTA18ASF2G72PDZ-3G2R1 16GB 2Rx8 DDR4-3200 PC4-3200AA REG ECC Memory picture

✅ MICRON MTA18ASF2G72PDZ-3G2R1 16GB 2Rx8 DDR4-3200 PC4-3200AA REG ECC Memory

$119.97



Sandisk 32GB 64GB 128GB 256GB Cruzer Glide Flash Drive USB 2.0 Memory Lot picture

Sandisk 32GB 64GB 128GB 256GB Cruzer Glide Flash Drive USB 2.0 Memory Lot

$201.78



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



Lot Of 4 NEW SAMSUNG 16GB PC4-2933Y-RC2-12-DC1 Memory picture

Lot Of 4 NEW SAMSUNG 16GB PC4-2933Y-RC2-12-DC1 Memory

$299.00



Micro SD Adapter To SD HC SDHC Memory Card Adapter Reader NEW picture

Micro SD Adapter To SD HC SDHC Memory Card Adapter Reader NEW

$1.39