Results 1 to 10 of 10

Thread: Making changes permanent - overriding boot auto-detection?

  1. #1
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145

    Making changes permanent - overriding boot auto-detection?

    I'm really pleased with Knoppix, this is as far as I 've ever made it with Linux and I can see me ditching Windows sooooooon. (Dual boot at present). With the help of this forum I've been able to set Knoppix up for what I need, but not make the changes permanent so I have to manually put the commands in each session!

    I appreciate that there are text files to make these changes permanent, just not where they are, or where is the correct place when you have a choice..... It's just for the one user (me) at the moment but system-wide is also fine.

    I have downloaded and printed the 229 page 'Debian Reference' manual, but until I've read that..... anyone know where to add these changes so they are loaded at boot? Many thanks, Stuart.....

    1). Enable DMA on for hardrives and CD/DVD-ROM drives ('/sbin/hdparm -qd1 /dev/hdx') and turn buffers on.

    2). Enable read-write on all mounted volumes ('mount -o remount,rw /dev/hdx')

    3). Automatically run Arno's IPtables-Firewall script, to setup 'ICS' (maquerading and NAT). ('/etc/rc.d/rc.iptables start')

    Some other things I haven't been able to do (yet?) include importing my 1000s of emails from Outlook Express 6, 'print' to my plotter in hpgl (no ideas on that one!) and scanning.

    (The list of things I can do is growing all the time, (like being able to install packages!!!) - but this is a long enough post already!

    Stuart.....)

  2. #2
    Member registered user
    Join Date
    Sep 2003
    Posts
    67
    If you are not going to make this a HD install, you are going to have to remaster knoppix with those options.

  3. #3
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145
    It is a hard-disc install, you'll scare a newbie (me) using big words like 'remaster'!!!!

    Thanks, Stu.....

  4. #4
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145
    Oh, another one I noticed, have 'cups' run automatically in a new session.

    Cheers, Stu.....

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: Making changes permanent - overriding boot auto-detectio

    Quote Originally Posted by stukennedyuk
    1). Enable DMA on for hardrives and CD/DVD-ROM drives ('/sbin/hdparm -qd1 /dev/hdx') and turn buffers on.

    3). Automatically run Arno's IPtables-Firewall script, to setup 'ICS' (maquerading and NAT). ('/etc/rc.d/rc.iptables start')
    Add these lines to /etc/init.d/bootmisc.sh:
    Code:
    # Added by me for DMA
    /sbin/hdparm -qd1 /dev/hdx
    /sbin/hdparm -qd1 /dev/hdx
    
    # Added by me for firewall
    if [ -r /etc/rc.d/rc.iptables ]; then
        . /etc/rc.d/rc.iptables
    fi
    2). Enable read-write on all mounted volumes ('mount -o remount,rw /dev/hdx')
    Post your /etc/fstab so I can see the permissions when mounted generally you would want rw in the line instead of ro. Not sure about the rest.

  6. #6
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145
    It seems to ignore my entries. bootmisc.sh has other stuff in it, so it must do something. When does bootmisc.sh get run? Is it early in the boot sequence, could these settings get overwritten by the autoconfiguration, just after?

    Stu.....

  7. #7
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by stukennedyuk
    It seems to ignore my entries. bootmisc.sh has other stuff in it, so it must do something. When does bootmisc.sh get run? Is it early in the boot sequence, could these settings get overwritten by the autoconfiguration, just after?

    Stu.....
    Auto-configuration?? How did you install with the knx-hdinstall or the new knoppix-installer if the new which mode debian or knoppix? AFAIK the bootmisc.sh is one of the last scripts run nothing should be overriding it.

  8. #8
    Junior Member registered user
    Join Date
    Oct 2003
    Posts
    17

    Scaring in remastering????


  9. #9
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353
    Quote Originally Posted by stukennedyuk
    It seems to ignore my entries...
    You need to make the changes as root. That should be the only thing keeping the changes from sticking.

  10. #10
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145
    Okay-dokey, I've done some reading. (Debian reference manual) It will be a while before I understand it though!

    This is how it works.....

    Linux boots by running 'init' - the config file for 'init' (/etc/initab) specifies that the first script to run should be /etc/init.d/rcS which runs all of the scripts in /etc/rcS.d/ ('d' for directory?) - in alphanumeric order. This is where Klaus has put his clever autoconfig script, S00knoppix-autoconfig - the one that checks what hardware is being used and writes the correct config entries.

    If you view this script, you can pick up bits that can be recognised by the messages appearing during boot, e.g. 'running from HD, regenerate....' and 'processor 0 is.....' and so on.

    At some point the scripts in the appropriate run level directory are run, e.g. /etc/rc5.d for run level (init level?) '5' - I think this is the best place for me to add a script that overrides the autodetected values. It seems a bit perverse to do it this way, autodetect then overwrite, but it should work? I'll try later.

    Just thought I'd share this with you!

    Stu.....

Similar Threads

  1. how to skip ide harddisk auto detection
    By adaptit in forum Hardware & Booting
    Replies: 1
    Last Post: 04-01-2005, 04:16 PM
  2. Making Settings Permanent
    By pelagic in forum General Support
    Replies: 6
    Last Post: 11-14-2004, 09:10 PM
  3. Hardware Auto-detection Questions
    By arkaine23 in forum Customising & Remastering
    Replies: 2
    Last Post: 09-03-2004, 05:10 PM
  4. Where are scripts with auto-detection ?
    By Pasq in forum Customising & Remastering
    Replies: 1
    Last Post: 05-22-2003, 10:50 PM
  5. Auto Detection of RAM Larger than 1GB
    By Mycroft1855 in forum Customising & Remastering
    Replies: 6
    Last Post: 03-20-2003, 10:58 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
  •  


DELL PowerEdge R730XD Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730XD Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4xRJ45

$267.00



Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$197.99



Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture

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

Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays

$159.99



Dell Poweredge R730xd 12 Bay LFF 2x SFF  2x E5-2680v3 2.5ghz H730p No Ram No HDD picture

Dell Poweredge R730xd 12 Bay LFF 2x SFF 2x E5-2680v3 2.5ghz H730p No Ram No HDD

$219.99



Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD picture

Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD

$139.99



Dell PowerEdge R720xd 26HDD 300gb  2.5-inch E5-2697  X 2CPU 384RAM 7.2 Tb HDD  picture

Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD 

$180.00



Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture

Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config

$489.99



DELL PowerEdge R430 8SFF 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R430 8SFF 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$226.00



DELL PowerEdge R630 8SFF Server 2x E5-2667v3 3.2GHz =16 Cores 128GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2667v3 3.2GHz =16 Cores 128GB H730 4xRJ45

$322.00