Results 1 to 6 of 6

Thread: editing boot.img and miniroot.gz kernel panic

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    7

    editing boot.img and miniroot.gz kernel panic

    Hi

    I want to have knoppix start of a usb flashdrive.

    When linuxrc is looking for the KNOPPIX filesystem it fails to detect it in the /KNOPPIX/ folder on the flashdrive

    I tried to edit the linuxrc located in the miniroot.gz to just have it look in /dev/sda1.

    I am using grub and have grub call the boot.img which allows me to boot the same way I boot off of the CD.

    I edited the linuxrc file using the loop mount method for both boot.img and miniroot.gz

    However when trying to boot using the modified linuxrc I am getting the follwing error:

    Code:
    Kernel panic: VFS: Unable to mount root fs on 03:01
    I am wondering if it has to do that I am screwing up the boot.img file by editing inside the loop?

    Are there any other ways of doing this?

    Thanks

    AR

  2. #2
    Junior Member
    Join Date
    Oct 2004
    Posts
    7
    Ok, I modified my boot sequence and have grub call the kernel and minirt.gz instead of the cds boot.img

    I edited the linuxrc in minirt.gz using the loop mount method and am now getting the following error:
    Code:
    Kernel panic: VFS: Unable to mount root fs on unknown-block
    Not sure why?

    Anybody any ideas?

    Thanks

    AR

  3. #3
    Junior Member
    Join Date
    Apr 2008
    Posts
    3

    Kernel panic after touching minirt.gz

    Hi!

    I run into similar trouble like the previous poster.

    I tried to remaster the Knoppix-5.1 CD, following the instruction at http://www.knoppix.net/wiki/Knoppix_Remastering_Howto

    using the original /cdrom/KNOPPIX/KNOPPIX file and the original /cdrom/boot/isolinux/minirt.gz I can create a new bootable CD image. but as soon as I change anything in minirt.gz, the resulting CD stops after loading the kernel with a panic: "unable to mount root fs at unknown-block (1,3)"

    I did the following to modify minirt.gz (everything in my remaster-copy of boot/isolinux):
    - gzip -d minirt.gz
    - losetup /dev/loop2 minirt
    - mount /dev/loop2 /mnt2
    - ... some editing of linuxrc
    - sync
    - unmount /mnt2
    - losetup -d /dev/loop2
    - gzip minirt

    next, created the bootable iso image as shown on the wiki: "mkisofs -pad -l -r -J -v -V "KNOPPIX" -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o ${destfile} ${masterdir}"

    What else is required to produce a ramdisk, which can be loaded by isolinux + kernel?

    Thanks.

  4. #4
    Junior Member
    Join Date
    Apr 2008
    Posts
    3
    Sorry for following up on myself, but some more insight:

    By booting with "vga=normal loglevvel=9" I got the following more statements from the booting kernel:
    Code:
    RAMDISK: compressed image found at block 0
    EXT2-fs warning: checktime reached, running e2fsck is recommended
    VFS: mounted root (ext2 filesystem)
    No filesystem could mount root, tried: reiserfs ext3 ext2 msdos vfat iso9660 fuseblk
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,3)
    The third and fourth lines seem to contradict each other. Can anyone shed some light on what is going on here?

    Does this mean, that my modified linuxrc is not executable / dies prematurely?
    Or does it never get to the point of running linuxrc? I guess the last, because there is no output of linuxrc at all. But still I have no clue whats is wrong.


    BjoKa

  5. #5
    Junior Member
    Join Date
    Apr 2008
    Posts
    1

    Solution found.

    I was havin' the same issue. I found a solution else where on the board:

    http://www.knoppix.net/forum/viewtopic.php?p=113378

    It seems that if you edit the file using nano, it'll try to convert it automagically between different formats. Solved my issue. Hope it helps you too!

  6. #6
    Junior Member
    Join Date
    Apr 2008
    Posts
    3
    Thanks very much, that solved my problem!

    For some reason, nano had changed all "\n" to "\r", which prevented the execution of linuxrc.
    But be careful:
    Using tr to change things back failed, because there is one line, which is supposed to have an embedded "\r" in a variable definition. Changing this one into "\n" creates another syntax error.

Similar Threads

  1. dual boot windows xp and knoppix - facing kernel panic error
    By javaneo in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 01-07-2006, 06:13 PM
  2. Kernel panic on boot with loadlin
    By Taldor in forum General Support
    Replies: 10
    Last Post: 08-18-2004, 08:46 PM
  3. Boot error and kernel panic after 3.4 install
    By dinacre in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 07-13-2004, 11:15 PM
  4. Errors and kernel panic during boot (2.6 Kernel)
    By gitarzysta in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 06-03-2004, 08:36 PM
  5. Kernel Panic:.... On boot - newbie
    By BoyBlitz in forum General Support
    Replies: 1
    Last Post: 04-05-2004, 01:45 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
  •  


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 8 Micron 8GB 2Rx8 PC4-2666V-RE2-11 ECC REG Server Ram MTA18ASF1G72PDZ-2G6 picture

Lot Of 8 Micron 8GB 2Rx8 PC4-2666V-RE2-11 ECC REG Server Ram MTA18ASF1G72PDZ-2G6

$210.00



LOT OF 2  Micron 16GB 2Rx8 PC4-2666V-EE1-11 P/N: MTA18ASF2G72AZ-2G6D1ZG picture

LOT OF 2 Micron 16GB 2Rx8 PC4-2666V-EE1-11 P/N: MTA18ASF2G72AZ-2G6D1ZG

$199.95



LOT OF 4  Samsung 16GB DDR4-2666 ECC UDIMM 2Rx8 PC4-21300 M391A2K43BB1-CTDQ picture

LOT OF 4 Samsung 16GB DDR4-2666 ECC UDIMM 2Rx8 PC4-21300 M391A2K43BB1-CTDQ

$469.95



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



SK Hynix 32GB Server Memory 2Rx4 PC4-2400T-R81-11 HMA84GR7MFR4N-UH Server RAM picture

SK Hynix 32GB Server Memory 2Rx4 PC4-2400T-R81-11 HMA84GR7MFR4N-UH Server RAM

$169.99



USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot picture

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot

$3.75



128GB (4x32GB) SK hynix DDR4 PC4-2666V RDIMM ECC Server Ram HMA84GR7CJR4N-VK picture

128GB (4x32GB) SK hynix DDR4 PC4-2666V RDIMM ECC Server Ram HMA84GR7CJR4N-VK

$799.00



Micron MTA18ASF2G72XF1Z-2G9WP1ABVGD 16GB 1Rx4 NN4-2933Y DDR4 ECC NVDIMM picture

Micron MTA18ASF2G72XF1Z-2G9WP1ABVGD 16GB 1Rx4 NN4-2933Y DDR4 ECC NVDIMM

$74.50



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

$573.98