Re: make a usbkey bootable
- From: heavytull <heavytull@xxxxxxxxxxx>
- Date: Sun, 29 Apr 2007 00:08:36 +0200
<posted & mailed>
heavytull wrote:
I tried to make a USK key ext2 partition bootable with extlinux but
that didn't work.
actually this is to put slax on it.
I proceeded as follows:
made the partition with fdisk and wrote the fs with mkfs
the device is /dev/sda and the partition is /dev/sda1
I copied all files from cd to the mounted sda1
#cd /mnt/sda1
#mv boot/*.gz ./
#mv boot/splash* ./
#mv boot/vmlinuz ./
#mv syslinux.cfg extlinux.conf
i then vimed extlinux.conf and removed '/boot' of the path to access
initrd.gz at both lines in whch it appears.
#extlinux -i ./
cat mbr.bin >/dev/sda
this is derived from the method i found on the slax forum in which
they install on a FAT32 partition and which I tried for curiosity and
it didn't work.
and the rest of my method is derived from the extlinux.doc found in
the syslinux package.
Since i did exactly what was written in the extlinux.doc it should
work although i don't understand how it can work:
the file mbr.bin has to be written in the few first bytes of the hard
drive, but i don't understand how the system will reach the partition
on which to boot since i could have choosen sda4 or sda3 or sda2 as
well as sda1. I think the mbr has to link to the boot partition,
unless i get a menu at boot.
actually i just reminded that i have to set one partition as active with fdisk;
and it worked better;
EXTLINUX booted; but it couldn't find kernel image it said;
while at the root of the partition i put the kernel image and defined as that in
the extlinux.conf file.
--
heavytull
.
- References:
- make a usbkey bootable
- From: heavytull
- make a usbkey bootable
- Prev by Date: make a usbkey bootable
- Next by Date: Re: Bad picture taking session
- Previous by thread: make a usbkey bootable
- Index(es):
Relevant Pages
|