Re: boot ext2 on vfat

mammique <[email protected]>
Newsgroups gmane.linux.debian.knoppix
Message-ID <1080174115.13164.53.camel@PlasticBertrand>
Le mer 24/03/2004 à 10:44, Digital Infra, Inc. a écrit :
> Hello.
> 
>  Media Lab, Inc. (Tokyo) did same stuff already.
>  I think you should try this first.
>  It can boot from c:/NTFS/loop/diskimage with NTLDR.
>  If you use XP/2K, and understand Japanese (No way!), Download this.
>  ftp://www.mlb.co.jp/pub/linux/mld7/mld7hwtest.exe
> 
>               Okajima, Jun.
>               President, Digital Infra, Inc. Tokyo, Japan.
>               http://www.digitalinfra.co.jp/
>               http://www.colinux.org/
> 

Great, il seems that it's technicaly ok and available, then it should be
usable and stable for real use. If i find time i'll try do do it.

Thanks ! 

> >Hi mammique,
> >
> >On Thu, Mar 18, 2004 at 21:02:54 +0100, mammique wrote:
> >
> >> i'd like to know if it's possible, if anybody thought/tried, to boot
> >> from a virtual ext2 partition (containing the system) wich is file on
> >> vfat ? The file could be created from a knoppix-cd during HD
> >
> >It is possible. I just did a quick and dirty hack on an older version
> >of knx-hdinstall. I hardcoded the parts for creating and mounting
> >the ext2 container file (knx.img). After the file copying step, you must
> >change the rootfs fstab entry to:
> >/dev/loop0  /  ext2  defaults,errors=remount-ro  0  1
> >
> >The tricky part is the initial ramdisk. It must mount the vfat
> >partition first, then assign the ext2 container file to /dev/loop0
> >and tell the kernel to use /dev/loop0 as root device:
> >
> >#!/bin/sh
> ># this is /linuxrc
> >insmod /modules/loop.o
> >mount -t vfat /dev/hda1 /mnt/dosfs
> ># use knx.img for loop0
> >losetup /dev/loop0 /mnt/dosfs/knx.img
> >mount -t proc proc /proc
> ># 1792 = 7*256+0 = loop0
> >echo 1792 > /proc/sys/kernel/real-root-dev
> >umount /proc
> >
> >Kernel and initrd must be loaded off the vfat partition by loadlin.exe
> >running in real dos mode. Note that this is only possible when using
> >Win95/98/ME.
> >
> >WinNT/2k/XP do not have real dos mode, so loadlin.exe cannot run.
> >
> >bye,
> >  Chris
> >-- 
> >Christian Perle                                    chris AT linuxinfotag.de
> >Grunaer Str. 31                                    http://silmor.de/~chris/
> >01069 Dresden                   LinuxGuitarKitesBicyclesBeerPizzaRaytracing
> >_______________________________________________
> >debian-knoppix mailing list
> >[email protected]
> >http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix
> >
> _______________________________________________
> debian-knoppix mailing list
> [email protected]
> http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix
-- 
mammique <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.