Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Minimal Linux with Grub

    Hello everyone.
    My question is, I have set up a minimal linux system for booting into a shell.
    I used a small harddisk and have instaled grub as the bootloader. The device is /dev/hdc and the partition used is /dev/hdc1. It is the only harddrive on the system, so for grub it will be (hd0,0). I installed the vmlinuz kernel in the directory /boot/vmlinuz on the harddrive. Also I installed the shell into /bin/sh on the harddrive. The filesystem is ext2.
    Well... booting works fine into grub. Then I enter the following commands root (hd0,0)
    kernel /boot/vmlinuz root=/dev/hdc1 init=/bin/sh vga=788

    It loads the kernel and it also seems to start until it reaches the point where it saied Kernel panic: No init found. Try passing init= option to kernel.

    Well. I thougth I did in grub. But it seems I am doing something wrong here. I would appreciate tips, hints of help. Thank you in advance.

  2. #2
    Just Joined!
    Join Date
    May 2004
    Oxford, UK
    try making a symbolic link to /bin/sh so that when kenel boots and runs /sbin/init it will actually run /bin/sh

    ln -s /bin/sh /sbin/init

Posting Permissions

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