Professional Web Applications Themes

Lilo booting whitout vmlinuz ?? - Linux Setup, Configuration & Administration

Happy new year to everyone, I've installed Mandrake 9.1 on a VMWare virtual machine. Yesterday, while playing with /boot, I deleted the kernel (vmlinuz-2.4.21-0.13mdk), beliving it was an older version, while it was the current one (vmlinuz -> vmlinuz-2.4.21-0.13mdk). I did the same with config, initrd.img and System.map... A ls -l later I realized I did a really stupid thing and ed up my whole installation. I rebooted sure I had to reinstall/repair from Mandrake CD, but, instead, my system booted just fine. Can somebody explain this? Is the kernel stored elsewhere after invoking /sbin/lilo? Or am I just lucky ...

  1. #1

    Default Lilo booting whitout vmlinuz ??

    Happy new year to everyone,

    I've installed Mandrake 9.1 on a VMWare virtual machine.

    Yesterday, while playing with /boot, I deleted the kernel
    (vmlinuz-2.4.21-0.13mdk), beliving it was an older version, while it
    was the current one (vmlinuz -> vmlinuz-2.4.21-0.13mdk).
    I did the same with config, initrd.img and System.map...

    A ls -l later I realized I did a really stupid thing and ed up my
    whole installation. I rebooted sure I had to reinstall/repair from
    Mandrake CD, but, instead, my system booted just fine.

    Can somebody explain this?
    Is the kernel stored elsewhere after invoking /sbin/lilo?
    Or am I just lucky the deleted kernel disk sectors have not been
    overwritten yet?

    Kind regards,
    Corrado
    Corrado Guest

  2. #2

    Default Re: Lilo booting whitout vmlinuz ??

    Hello

    Corrado Labinaz (<it>) wrote:
     

    You are lucky. Lilo does not access the kernel image through the file
    system. As deleting the file does not remove it, lilo probably can
    still find it, until the sectors are overwritten. If the /boot
    directory is on your root file system together with directories like
    /home, /tmp and /var, that can easily happen. If your system is still
    working, reinstall the kernel image rpm and rerun lilo.

    best regards
    Andreas Janssen

    --
    Andreas Janssen
    com
    PGP-Key-ID: 0xDC801674
    Registered Linux User #267976
    Andreas Guest

  3. #3

    Default Re: Lilo booting whitout vmlinuz ??


    "Andreas Janssen" <com> wrote in message
    news:bte94q$u4j$04$t-online.com... 
    >
    > You are lucky. Lilo does not access the kernel image through the file
    > system. As deleting the file does not remove it, lilo probably can
    > still find it,[/ref]


    BTW, the location of where the kernel is , is stored in the file /boot/map.

    So lilo doesnt actually read the filesystem - it just reads the sectors
    directly to read /boot/map, and then from /boot/map it can find the sectors
    that store the kernel.

    and yep, rm'ing the image didnt overwrite the sectors of the kernel image
    file.
    So the kernel image as described by /boot/map was still there.


     


     


    Leon. Guest

  4. #4

    Default Re: Lilo booting whitout vmlinuz ??


    "Leon." <noemail.com> wrote in message
    news:3ffab7c2$rivernet.com.au... 
    > >
    > > You are lucky. Lilo does not access the kernel image through the file
    > > system. As deleting the file does not remove it, lilo probably can
    > > still find it,[/ref]
    >
    >
    > BTW, the location of where the kernel is , is stored in the file[/ref]
    /boot/map. 
    sectors 

    Heh. I ran into this once with an OS image being installed on a hard drive
    using "dd". The OS image builder had not actually been doing LILO, he'd been
    installing things on top of his dd'ed image, so he hadn't noticed that the
    new kernels didn't actually work.

    That... took a while to clean up when I figured out what was going on.


    Nico Guest

Similar Threads

  1. booting from cd rom in lilo
    By David in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: November 20th, 07:46 PM
  2. mistakenly deleted vmlinuz
    By Wolf-D. Perl in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: September 13th, 12:54 AM
  3. Booting 2nd HDD from Lilo
    By Darsin in forum Linux Setup, Configuration & Administration
    Replies: 5
    Last Post: August 15th, 07:33 AM
  4. #24952 [NEW]: PHP .3.2 + Postgresql 4.3.x whitout SSL insert 2 elements
    By sirber at myrealbox dot com in forum PHP Development
    Replies: 0
    Last Post: August 5th, 04:42 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139