From owner-freebsd-hackers Fri Mar 9 3: 0:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id D133C37B719 for ; Fri, 9 Mar 2001 03:00:20 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id f29B0ZV27659; Fri, 9 Mar 2001 12:00:35 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Luigi Rizzo Cc: Josef Karthauser , hackers@FreeBSD.ORG Subject: Re: howto access an oddly shaped partition on a floppy ? In-Reply-To: Your message of "Fri, 09 Mar 2001 11:58:55 +0100." <200103091058.LAA48632@info.iet.unipi.it> Date: Fri, 09 Mar 2001 12:00:35 +0100 Message-ID: <27657.984135635@critter> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200103091058.LAA48632@info.iet.unipi.it>, Luigi Rizzo writes: >> What about having the first few tracks, ie. the boot area, 18 sectors, >> and the rest of the disk 21 sectors, and have the boot code/kernel do >> the right thing? Isn't this easier? > >It has all sorts of problems: neither the bios nor the disklabel >nor the kernel can handle variable length tracks, plus the bootloader >(boot2 and /boot/loader) still uses the bios, so the whole area >containing the kernel would need to be 18 sectors, and the kernel >on picobsd is almost as large as the whole disk... It would be possible to teach the floppy driver that cyl 0-9 has 18 sectors while cyl10-81 has 21. A small matter of hacking... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message