[lkml]   [2003]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [UPDATED PATCH] Removal of boot sector code
On 29 Jan 2003 19:12:31 -0800, H. Peter Anvin wrote:
>I have updated the boot sector removal code so that it now:
>a) Supports "make zdisk", "make bzdisk" and "make fdimage"
> (Requires mtools and syslinux, but will work as a non-root user
> as long as you have your floppy in /etc/fstab or syslinux setuid
> root.)
> There is also "make fdimage288" to create a 2.88 MB floppy image.

This works reasonably well for me, but it does require
MS-DOS fs support in the kernel, and having a /dev/fd0 entry
in /etc/fstab with "user" permissions (for some reason, "owner"
doesn't work).

I'd like to use my own recipe for "make bzdisk", to avoid these
restrictions. What about having "make bzdisk" optionally invoke
and external script, similarly to how "make install" works?

>The boot sector was very cool in 1992, but in 2003 it has outlived its
>usefulness, and it no longer supports what Linux boot loaders need,
>especially not with the 1 MB limit and the lack of support for
>non-legacy floppy devices (the geometry detection hack fails on
>those.) Even a relatively simple 2.5 build exceeds that size for me,
>and with this patch "make bzdisk" actually works, whereas the original
>boot sector doesn't.

Indeed. Another reason is that gcc-3.2 generates (for me anyway)
much larger kernel images than gcc-2.95.3.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.028 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site