Re: make a usbkey bootable



<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
.



Relevant Pages

  • RE: RE grub-install command
    ... Try boot specifying the hdd in the boot selector ... I m able to view my boot partition in fdisk.. ... Subject: RE grub-install command ...
    (RedHat)
  • Re: Parition Table problem.
    ... > I> None of the 3 different operating systems will boot. ... > how partition tables work so you should be OK as long as you keep a clear ... considered faulty by fdisk - I fixed that by deleting it. ... reinstalling operating systems is a lot of work regardless. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: FDISK FOOL
    ... After I ran the dreaded fdisk thingy, ... That's because there is no partition after running FDISK, ... Normally this is done from the XP boot disk, ... and Win9x boot diskettes cannot read NTFS-formatted partitions. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: xpp home wont boot from HD
    ... there was a small partition in front. ... Anyway, if such a partition exists, then fixing the MBR might simply make it the boot partition. ... Thus, try running FDISK to see what partitions you have, and maybe that will lead to some insight. ... See the following for bootable floppy images, include a special FDISK for disks> 64 Gig. ...
    (microsoft.public.windowsxp.basics)
  • Re: Drivers for HP Notebook N3438
    ... > Fdisk /MBR does that for you in a proper way. ... MBR boot code. ... It doesn't touch the 'partition' information... ...
    (comp.os.msdos.misc)