Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, I am setting up new machine from scratch to use Linux, which I will bootstrap myself - i.e. no distribution used. I am trying to learn Linux, but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Amn
    Amn is offline
    Just Joined!
    Join Date
    Aug 2007
    Posts
    24

    Question Can I boot Linux without GRUB/Lilo/other (single disk/single OS setup)


    Hi all,

    I am setting up new machine from scratch to use Linux, which I will bootstrap myself - i.e. no distribution used. I am trying to learn Linux, but have experience with hardware and am a C/C++ programmer, plus I have read a fair share of Linux material.

    I want the system to boot silently straight to desktop/shell, without any menus, since I only will be having a single harddrive and a single OS - Linux.

    Can one boot the system without a bootloader such as GRUB or Lilo? Can i put the kernel image somewhere on the drive and trust that it will bootstrap the OS? If, so how can it be done?

    IF, and only IF it cannot be done, can one configure GRUB or Lilo to boot non-interactively?

    The machine is a new Thinkpad T61 2007 model, the drive is a SATA 100Gb Seagate drive.

    Thanks.

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    It can be done. People used to put the kernel raw onto
    floppy disk without format, and it would load on boot.
    You need some code in the MBR that points to your kernel
    image. If you know assembly language and BIOS calls
    it would be no big problem, but LILO or GRUB could
    be set up non interactive and boot the linux kernel with
    no menus or options.

    http://www.doc.ic.ac.uk/lab/labman/l...man.cgi?LILO(8)

    GRUB Manual: Table of Contents

  3. #3
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Add the string "hiddenmenu" anywhere on your grub.conf or menu.lst file
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  4. #4
    Amn
    Amn is offline
    Just Joined!
    Join Date
    Aug 2007
    Posts
    24

    Smile

    Thanks guys, I am guessing GRUB/Lilo noninteractive boot would be fast enough.

    I do not wish to do the assembly code I could, but i dont see it is worth it in my case...

  5. #5
    Amn
    Amn is offline
    Just Joined!
    Join Date
    Aug 2007
    Posts
    24
    I forgot to ask, do I need to make a partition of < 1024 cylinders, or the limitation does no longer apply ? Not sure yet whether i will use GRUB or Lilo, but I am sure a BIOS of 2007 laptop model handles whatever earlier BIOS models couldnt regarding the boot process.

  6. #6
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    No, use a partition with whatever size you want
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

Posting Permissions

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