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
This commit is contained in:
Erik van der Kouwe 2010-08-04 05:18:03 +00:00
parent 4eb7340395
commit b43f3b6bfc
2 changed files with 8 additions and 1 deletions

View file

@ -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/$@ $@

View file

@ -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