Users online right now: 646 - Login  » search  » forum index

mkboot - generic boot loader installer

xpt
wrote 1 year ago


reply
Hi,

Please check out this generic boot loader installer:


mkboot $ $Revision: 1.1 $

mkboot - generic boot loader installer.

Usage: mkboot [options]

Examples:

mkboot -h
# use grub boot loader and install to local partition
mkboot -b grub
# default Slax boot installer bootinst.sh behavior
mkboot -b syslinux --initmbr --slmbr --active --clear

Installation options:

-b, --boot=ldr boot loader [syslinux|grub|grub4dos] (mandatory)
-m, --tombr toggle installing to MBR (on) or partition (off)
(default=off)
-a, --active toggle activating current partition (default=off)
-i, --initmbr toggle initialzing MBR (default=off)
--slmbr toggle using MBR from syslinux (on) or lilo (off)
(default=off)

Distro specific options:

--distro=n distro name (mandatory)
--lilo=p where is lilo (mandatory)
--syslin=p where is syslinux (mandatory)

Other options:

--clear toggle clearing screen between steps (default=off)
-h, --help show this help

As the rule of thumb, the script will by default disturb as little as possible
unless explicitly told to do so.


The svn is at http://live-developers.svn.sourceforge.net/viewvc/live-developers/boot/MkBoot/trunk/
I'll publish the package soon.

Please comment it here.

Thanks
 
xpt
wrote 1 year ago


reply
xpt wrote:
I'll publish the package soon.


Done. pls check out
https://sourceforge.net/project/showfiles.php?group_id=204283&package_id=268756

thx
 
xpt
wrote 1 year ago


reply
Doc published at
http://live-developers.sourceforge.net/tools/mkboot/
 
tonio
wrote 1 year ago


reply
@xpt,

I have copied Slax 6.0.3 to a 256 MB usb drive formatted with XFS and ran ./liloinstall.sh and it complains about some memory. Will your mkboot - generic bootloader installer help me boot slax from usb drive and how do I do it if it does?

Thanks :)
 
tonio
wrote 1 year ago


reply
I have all the files in usb drive XFS filesystem

root@slax:/mnt/sdb1/boot# fdisk -l

Disk /dev/sda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4862 39053983+ 7 HPFS/NTFS

Disk /dev/sdb: 256 MB, 256900608 bytes
255 heads, 63 sectors/track, 31 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 31 248976 83 Linux
root@slax:/mnt/sdb1/boot#



I ran ./liloinstall.sh

[Së8àtÓ^Æ6VâÄ^ Ûu1À_^YÃ[Ø-$±6öñùëîboot: Loading BIOS data check successful
bypassed

Error 0xNo such image. [Tab] shows a list.
O - Timestamp mismatch
O - Descriptor checksum error
O - Keytable read/checksum error
Kernel and Initrd memory conflict
O - Signature not found

vga/mem= requires a numeric value

Map file write; BIOS error code = 0x
Map file: WRITE PROTECT
EBDA is big; kernel setup stack overlaps LILO second stage
WARNING: Booting in Virtual environment
Do you wish to continue? [y/n]
*Interrupted*

Unexpected EOF
Password: Sorry.

Valid vga values are ASK, NORMAL, EXTENDED or a decimal number.

Invalid hexadecimal number. - Ignoring remaining items.

Keyboard buffer is full. - Ignoring remaining items.

Block move error 0x
Initial ramdisk loads below 4Mb; kernel overwrite is possible.
O 22.7.1ÿauto BOOT_IMAGE ÊÙV

running

root@slax:/mnt/sdb1/boot# ./bootinst.sh
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Welcome to Slax boot installer
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This installer will setup disk /dev/sdb1 to boot only Slax.

Warning! Master boot record (MBR) of /dev/sdb will be overwritten.
If you use /dev/sdb to boot any existing operating system, it will not work
anymore. Only Slax will boot from this device. Be careful!

Press any key to continue, or Ctrl+C to abort...

*** removed extra space ***

Flushing filesystem buffers, this may take a while...
Setting up MBR on /dev/sdb...
The Master Boot Record of /dev/sdb has been updated.
Activating partition /dev/sdb1...
No partition table modifications are needed.
Updating MBR on /dev/sdb...
Setting up boot record for /dev/sdb1...
/dev/sdb1: this doesn't look like a valid FAT filesystem
root@slax:/mnt/sdb1/boot#



I will try another trick, maybe syslinux can help here.
 
tonio
wrote 1 year ago


reply
It boots now. No problem. Thanks :)
 
mrdeming
wrote 1 year ago


reply
Hello, is it possible to boot an ISO using a bootloader?
 
jcsoh
wrote 1 year ago


reply
@mrdeming

Yes. from Slax 's documentation

http://www.slax.org/documentation_boot_cheatcodes.php

from=/dev/hda1/Slax.iso
from=path/to/Slax.iso
 

  » search  » forum index

Post your reply

Your name (Login):

Message:

These HTML tags are allowed: <quote>, <b>, <u>, <i>, <pre>, <code>, <small>, <h1>, <h2>, <h3>, <li>



Slax is now officially on FaceBook. Do you like Slax? Show yourself, become a fan just right now!