Re: Is the linux bootsector able to boot from an HDD?

From: H. Peter Anvin (hpa@transmeta.com)
Date: Tue May 23 2000 - 20:39:01 EST


Followup to: <E12s0dv-00002K-00@DervishD>
By author: =?ISO-8859-1?Q?Ra=FAl?= =?ISO-8859-1?Q?N=FA=F1ez?= de Arenas
         Coronado <raul.nunez@victelehome.es>
In newsgroup: linux.dev.kernel
>
> Hello everybody :))
>
> I want to boot linux in an special way: a common MBR (the one
> shipped with debian, very simple) booting a primary partition.
>
> This partition is unformatted and the kernel is dumped on it
> through 'dd if=vmlinuz of=/dev/hda1'. If I do the same on a floppy
> the kernel boots OK, but in the HDD it only prints '8000' in an
> endless loop.
>
> I've taken a look to 'arch/i386/boot/bootsect.S', and it seems
> that the linux bootsector is only able to boot from a floppy (I've
> seen something about assuming the setup code resides on head=0,
> track=0, etc...). Is this true or am I doing something wrong?
>

Yup, that's true. You need a boot loader, e.g. LILO or SYSLINUX, on
your partition.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:25 EST