From owner-freebsd-hackers Sat Jul 20 6:47:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6755D37B400 for ; Sat, 20 Jul 2002 06:47:50 -0700 (PDT) Received: from memphis.mephi.ru (memphis.mephi.ru [194.67.67.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4395543E31 for ; Sat, 20 Jul 2002 06:47:49 -0700 (PDT) (envelope-from timon@memphis.mephi.ru) Received: (from timon@localhost) by memphis.mephi.ru (8.11.6/8.11.6) id g6KDlkq36327 for freebsd-hackers@freebsd.org; Sat, 20 Jul 2002 17:47:46 +0400 (MSD) (envelope-from timon) Date: Sat, 20 Jul 2002 17:47:45 +0400 From: "Artem 'Zazoobr' Ignatjev" To: freebsd-hackers@freebsd.org Subject: Booting FreeBSD from extended partitions Message-ID: <20020720174745.A33016@memphis.mephi.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, people of freebsd-hackers@, I'm currently trying to make FreeBSD boot from extended partitions (of course, with help of boot mgr - in my case that's WinNT loader), and not without any progress: After patching /boot/loader to understand EXT_X partition type, I'm able to boot from /dev/ad4s9. Now I'm trying to make boot1 traverse through that big number of nested extendeds, feeding boot2 with the correct slice number, but my not so big knowledge about asm programming (especially AT&T) made me unable to do this correctly - now my version of boot1 takes a bit more than sector length (548 bytes instead of 512). Another way, which seems to me too ugly (but I'm forced to use it for now) is to make boot1 recognize extended slices like a freebsd ones, and place patched code of boot2 in free space of first extended slice, which looks for freebsd slice itself. If someone is interested, I can place my code somewhere on the net to see whether one may optimize it more than I can. p.s. I've also wrote a patch for fdisk which allowed it to see all partitions of disk, but it didn't attract attention of anyone from commiters, though. Sinceherely yours, Artem 'Zazoobr' Ignatjev. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message