Results 1 to 5 of 5

Thread: Strange boot scenario

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    3

    Strange boot scenario

    I have a laptop with no internal CD/DVD ROM, however I have a USB CDROM. The problem is that the BIOS does not recognize the USB devices as bootable. I have (some Linux) and grub on the hard drive. What I would like to do is load the Knoppix kernel from the hard drive then get the rest of Knoppix from the CDROM. It seems like there should be a combination of grub command line arguments that will tell kernel how to locate the operating system.

    I copied the kernel from the KNOPPIX 6.4 over to (hd0,0). I was able to boot up the kernel and get a half-working busybox system running. from there using dmegs I was able to tell that the kernel recognized the USB CDROM as /dev/sr0 without no modules loaded into the kernel. However I was not able to get any farther than that. Any suggestions on how I can proceed?

  2. #2
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by TheLexx View Post
    Any suggestions on how I can proceed?
    Not sure if it will work, but you can try using the cheatcode fromhd=/dev/sr0, add that to your grub menu kernel line.

  3. #3
    Junior Member
    Join Date
    Jul 2011
    Posts
    3
    I tried several things and it seemed to continually mount the root directory onto /dev/ root which was soft linked to /dev/sda1 after reading http://www.knoppix.net/wiki/Cheat_Codes I tried adding some other cheetcodes. here are a few of the grub combinations I used

    kernel (hd0,0)/knoppix-6.4-linux fromhd=/dev/sr0
    kernel (hd0,0)/knoppix-6.4-linux fromhd=/dev/sr0 knoppix_name=KNOPPIX
    kernel (hd0,0)/knoppix-6.4-linux boot=/dev/sr0

    Some of these would make the cdrom light flash for a while, but there would ultimately fix / to the wrong device.

    I then tried adding root=/dev/sr0 to the above commands. but this only resulted in a kernel panic because it could not find init.

  4. #4
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by TheLexx View Post
    kernel (hd0,0)/knoppix-6.4-linux fromhd=/dev/sr0
    kernel (hd0,0)/knoppix-6.4-linux fromhd=/dev/sr0 knoppix_name=KNOPPIX
    kernel (hd0,0)/knoppix-6.4-linux boot=/dev/sr0
    I think your menu.lst is too simple to be useful. You should take the syslinux.cfg from the CDROM/DVD and translate it to menu.lst and ***THEN*** add the fromhd=/dev/sr0.

    The original syslinux.cfg is something like this :-
    Code:
    LABEL knoppix
    KERNEL linux
    APPEND ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off video=vga16fb:off initrd=minirt.gz nomce loglevel=1 tz=localtime
    The translated menu.lst is something like this ( I did not do the exact translation, the sample below is copied from my system ) :-
    Code:
    title Knoppix on Internal HD (testing)
            kernel /boot/syslinux/linux video=vga16fb:off lang=us apm=power-off nosound nomce loglevel=0 quiet dma noeject
            initrd /boot/syslinux/minirt.gz
            boot
    And then you can add fromhd=/dev/sr0 to the kernel line.

  5. #5
    Junior Member
    Join Date
    Jul 2011
    Posts
    3
    ---SOLVE---
    Copy both the kernel AND minirt.gz to a media that is accessible to grub.

    I was talking to some people in ##Linux chatroom. I was inquiring on how I could start the CDROM manually. There replay was to look info on what is technically called an "initrd pivot". Once I had a grasp what the purpose of minirt.gz was, the pieces fell together in my mind.

    Once the kernel and minirt.gz are a grub accessible media, I need a minimum of three lines. The 'kernel' line that tells grub where I put the kernel. A second 'initrd' line tells where I put 'minirt.gz'. When grub gets to the boot line, it starts the kernel up and hands it minirt.gz. minirt.gz is packed with intelligent startup scripts. The (minirt.gz)s that comes with Knoppix 5.1 and Knoppix 4.6 are both pretty smart they were both able to find the operating system on the USB CDROM with no farther instructions. Although it is possible that setting 'fromhd=/dev/sr0' could speed things up a few seconds, by avoiding a hunt for the OS.

    All the other cheat sheet info is good for setting hardware and the graphics mode. I built something after reading http://www.knoppix.net/wiki/Cheat_Codes

    The solution given by kl522 is good, provided that the kernel and initrd lines point to the location where I copied them to. Before I understood what initrd was, I would have tried to point to it's location on the USB-CDROM. Which would not have worked, because grub can't see the USB-CDROM.

Tags for this Thread

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



Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC picture

Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC

$49.99



128GB USB 14-in-1 MacOS bootable Installer repair recovery tech support service picture

128GB USB 14-in-1 MacOS bootable Installer repair recovery tech support service

$39.99



Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet picture

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet

$147.00



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



USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB picture

USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB

$8.47



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$269.10



Lot 5/10pcs USB Flash Drive Memory Stick 1MB-64GB Pendrive Thumb Drive 8GB 32GB picture

Lot 5/10pcs USB Flash Drive Memory Stick 1MB-64GB Pendrive Thumb Drive 8GB 32GB

$236.00



FLASHFORGE 3D Printer AD5X Multi-Color IFS Auto Refill High Speed Printing US picture

FLASHFORGE 3D Printer AD5X Multi-Color IFS Auto Refill High Speed Printing US

$349.00



Windows 11 Pro Install/Recovery/Repair USB Flash Drive picture

Windows 11 Pro Install/Recovery/Repair USB Flash Drive

$35.00