From: Erik van der Kouwe Date: Wed, 4 Aug 2010 05:18:03 +0000 (+0000) Subject: This patch copies the ext2 server onto the initial ramdisk, the final X-Git-Tag: v3.1.8~107 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.log?a=commitdiff_plain;h=b43f3b6bfc6b131d33e4ab55ddb583b252da1f6f;p=minix.git This patch copies the ext2 server onto the initial ramdisk, the final patch to allow MINIX to boot from ext2. To create a setup with MINIX on ext2, follow these steps: - Assumptions: - there exists a primary partition c0dApB with a MINIX installation with GRUB support (/boot/image_latest exists on /dev/c0dApB) - there exists a free primary partition c0dCpD - Create an ext2 filesystem on c0dApB (from Linux, until Tthom has ported mke2fs) - Follow these steps (from a MINIX CD with ext2 support, another MINIX installation (not c0dApB) or Linux >= 2.6.35): mkdir /mnt/mfs /mnt/ext2 mount /dev/c0dApBs0 /mnt/mfs mount /dev/c0dApBs1 /mnt/mfs/home mount /dev/c0dApBs2 /mnt/mfs/usr mount /dev/c0dCpD /mnt/ext2 synctree -f /mnt/mfs /mnt/ext2 echo root=/dev/c0dCpD > /mnt/ext2/etc/fstab (note: no subpartitions used because that would confuse an unmodified bootloader) - Add the new MINIX installation to GRUB according to steps 7&8 in http://wiki.minix3.org/en/SummerOfCode2010/MultiBoot/HowTo --- diff --git a/drivers/ramdisk/Makefile b/drivers/ramdisk/Makefile index 4ea835d34..c4d7bd3db 100644 --- a/drivers/ramdisk/Makefile +++ b/drivers/ramdisk/Makefile @@ -1,7 +1,7 @@ # Makefile for ramdisk image PROGRAMS=at_wini bios_wini cdprobe dev2name floppy loadramdisk mount newroot \ - pci sh service sysenv mfs + pci sh service sysenv mfs ext2 EXTRA=system.conf passwd rs.single CPPFLAGS+= -I${MINIXSRCDIR}/servers -I${MINIXSRCDIR} @@ -103,6 +103,12 @@ mfs: ../../servers/mfs/mfs ../../servers/mfs/mfs: $(MAKE) -C ../../servers/mfs +ext2: ../../servers/ext2/ext2 + install -s ../../servers/ext2/$@ $@ + +../../servers/ext2/ext2: + $(MAKE) -C ../../servers/ext2 + system.conf: ../../etc/system.conf install -s ../../etc/$@ $@ diff --git a/drivers/ramdisk/proto b/drivers/ramdisk/proto index cef0f0c68..0e44d1a81 100644 --- a/drivers/ramdisk/proto +++ b/drivers/ramdisk/proto @@ -14,6 +14,7 @@ d--755 0 0 sbin d--755 0 0 at_wini ---755 0 0 at_wini bios_wini ---755 0 0 bios_wini + ext2 ---755 0 0 ext2 floppy ---755 0 0 floppy pci ---755 0 0 pci mfs ---755 0 0 mfs