Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17512 - The correct way to do Lilo bootdisks
Summary: The correct way to do Lilo bootdisks
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-14 09:37 UTC by Ingo -LaSombra- Hoffmann
Modified: 2003-03-19 16:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo -LaSombra- Hoffmann 2003-03-14 09:37:48 UTC
1. ln -sf /boot/System.map /
2. ln -sf /boot/bzImage /vmlinuz
3. mkboot

That's it :)
Simple as that, after mkboot you'll have a very functional Lilo bootdisk.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-16 13:29:17 UTC
Ok, so why dont you just do:

  # mkboot /boot/bzImage

?

I vote to close this, as the manpage say:

------------------------------------------------
SYNOPSYS
       mkboot [-r rootpartition] [-i] [kernel]

------------------------------------------------

meaning it should be obvious to supply the path of the kernel
if not the default.
Comment 2 Ingo -LaSombra- Hoffmann 2003-03-16 13:36:22 UTC
Because I tried this many times and it trashed my kernel and my System.map doing unnecessary symlinks. This way I showed worked smoothly.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-19 09:52:54 UTC
You do not need any special symlinks, etc.  Just make sure System.map and bzImage with lilo's stuff is in /boot.  Noting special.

------------------
workshop root # ls /boot/
System.map  boot  boot.0200  boot.b  bzImage
workshop root # mkboot /boot/bzImage 

Insert a floppy diskette into your boot drive, and press <Return>. 

Creating a lilo bootdisk...
+ mkdir /tmp/boot12489
+ mke2fs -q /dev/fd0
mke2fs 1.32 (09-Nov-2002)
+ mount -t ext2 /dev/fd0 /tmp/boot12489
+ cp /boot/boot.b /tmp/boot12489/boot.b
+ cp /boot/bzImage /tmp/boot12489/vmlinuz
+ cd /tmp/boot12489
+ cat
+ lilo -C lilo.conf
Warning: COMPACT may conflict with LBA32 on some systems
Added linux *
++ set +e
++ cd /
++ umount /dev/fd0
++ rmdir /tmp/boot12489
...Success.
workshop root # ls /boot/
System.map  boot  boot.0200  boot.b  bzImage
workshop root # ls /
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  space  tmp  usr  var
workshop root # mount /mnt/floppy/
ls /workshop root # ls /mnt/floppy/
boot.b  lilo.conf  lost+found  map  vmlinuz
workshop root # 
Comment 4 Ingo -LaSombra- Hoffmann 2003-03-19 16:14:09 UTC
Hmmmmm, strange... but ok as soon this hits the Install Documentation, don't you think? 
:-)