Find the answer to your Linux question:
Results 1 to 3 of 3
Hey guys so I'm trying somthin out...... rootdev -s /dev/sda5 dd if=/dev/sda4 of=kernel_2.blob dump_kernel_config kernel_2.blob > kernel_2.cfg cp kernel_2.cfg kernel_debug.cfg Now, replace the contents of kernel_debug.cfg with the following: CODE: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2013
    Posts
    1

    Replace Contents in a Kernel...


    Hey guys
    so I'm trying somthin out......


    rootdev -s
    /dev/sda5
    dd if=/dev/sda4 of=kernel_2.blob
    dump_kernel_config kernel_2.blob > kernel_2.cfg
    cp kernel_2.cfg kernel_debug.cfg


    Now, replace the contents of kernel_debug.cfg with the following:

    CODE: SELECT ALL
    add_efi_memmap
    boot=local
    console=tty1
    disablevmx=off
    i915.modeset=1
    init=/sbin/init
    kern_guid=%U
    loglevel=7
    lsm.module_locking=0
    ro
    root=PARTUUID=%U/PARTNROFF=1
    rootwait
    tpm_tis.force=1
    tpm_tis.interrupts=0

    Essentially how do I replace the "CONTENTS OF THE KERNEL_DEBUG.CFG" do I use Bash >>>>>> OR is their some other way.......

  2. #2
    Linux Newbie nplusplus's Avatar
    Join Date
    Apr 2010
    Location
    Charlotte, NC, USA
    Posts
    106
    You could do:

    Code:
    $>cat > kernel_debug.cfg
    add_efi_memmap 
    boot=local 
    console=tty1 
    disablevmx=off 
    i915.modeset=1 
    init=/sbin/init 
    kern_guid=%U 
    loglevel=7 
    lsm.module_locking=0 
    ro 
    root=PARTUUID=%U/PARTNROFF=1 
    rootwait 
    tpm_tis.force=1 
    tpm_tis.interrupts=0
    ^D
    N

  3. #3
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by rayquaza View Post
    Now, replace the contents of kernel_debug.cfg with the following:
    i don't understand what you're trying to accomplish. you want to replace everything in the file with something else? why not just create a new file, put whatever you want in it, and rename it to whatever you want? Or am i missing something?

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •