Greetings! I would like to know if its possible to dump the drops-demo-floppy.img to a primary partition of the hard disk and boot from it? I tried dumping the image to /dev/hdb3 using dd: dd if=drops-demo-floppy.img of=/dev/hdb3 bs=512 count=2880 The above worked fine. I tried to boot it from grub in the MBR using: root (hd0,3) chainloader +1 I get " root (hd0,3) Filesystem type unknown, partition type 0x83 chainloader +1 GRUB" Do we need any filesystem support in drops-demo-floppy.img for it? My GNU/Linux boot entry is: " root (hd0,2) kernel /boot/vmlinuz-2.4.27-2-386 root=/dev/hdb3 ro single initrd /boot/initrd-2.4.27-2-386 boot " My partitioning scheme is: /dev/hdb1 - fat32 (data) /dev/hdb2 - swap /dev/hdb3 - linux /dev/hdb4 - 1.44 drops image Any suggestions? Thanks, SK -- Shakthi Kannan, MS Software Engineer, Specsoft (Hexaware Technologies) [E]: shakthimaan@yahoo.com [M]: (91) 98407-87007 [W]: http://www.shakthimaan.com [L]: Chennai, India __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
On Mon Oct 03, 2005 at 10:57:21 -0700, Shakthi Kannan wrote:
I would like to know if its possible to dump the drops-demo-floppy.img to a primary partition of the hard disk and boot from it?
Umm, why not install GRUB properly in hdb4? Goes like this: mkfs.ext2 /dev/hdb4 mkdir /tmp/x mount /dev/hdb4 /tmp/x grub-install --root-directory=/tmp/x /dev/hdb4 et voilĂ , the chainloader should work. grub-install should of course be our version (patches are at http://os.inf.tu-dresden.de/~adam/grub/). Adam -- Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/
Hi, --- Adam Lackorzynski <adam@os.inf.tu-dresden.de> wrote:
Umm, why not install GRUB properly in hdb4? Goes like this:
mkfs.ext2 /dev/hdb4 mkdir /tmp/x mount /dev/hdb4 /tmp/x grub-install --root-directory=/tmp/x /dev/hdb4
Worked like a charm! Thanks Adam. Here is a brief HOWTO: fiasco-DROPS with grub on hard disk ----------------------------------- I first had to compile grub with the os1 patch exclusively for fiasco-DROPS. So, I downloaded grub-0.97.tar.gz (onto the testbed computer on the GNU/Linux partition) from: ftp://alpha.gnu.org/gnu/grub/ I downloaded the grub-0.97-os.1.diff.gz patch from: http://os.inf.tu-dresden.de/~adam/grub/0.97/ Extracted grub-0.97 and gunzipped the diff patch. Entered into the grub-0.97 sources and applied the patch using: $cd grub-0.97/ $patch -p0 < /path/to/patch Created a build directory, did configure, make and make install $mkdir build $./configure --prefix=/path/to/build $make $make install I created a primary partition on my testbed computer for fiasco-DROPS, made an ext2 filesystem on that, setup a mount point and installed grub to it. #mkfs.ext2 /dev/hdb4 #mkdir /mnt/fiasco #mount /dev/hdb4 /mnt/fiasco #grub-install --root-directory=/mnt/fiasco /dev/hdb4 I copied all the compiled modules into /mnt/fiasco/boot/fiasco. I added an entry in the grub in the MBR for this new fiasco-DROPS partition as: title Fiasco-DROPS root (hd0,3) chainloader +1 In the boot/grub installed to /dev/hdb4, I have a menu.lst file that contains the following: set P := (hd0,3)/l4/v2 set GRUB := (hd0,3)/boot/grub ... title The "hello" program kernel $(P)/bootstrap modaddr 0x01500000 module $(P)/fiasco $(FIASCOARGS) module $(P)/sigma0 module $(P)/roottask module $(P)/hello The hello thread iterates on bootup! SK -- Shakthi Kannan, MS Software Engineer, Specsoft (Hexaware Technologies) [E]: shakthimaan@yahoo.com [M]: (91) 98407-87007 [W]: http://www.shakthimaan.com [L]: Chennai, India __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
participants (2)
-
Adam Lackorzynski -
Shakthi Kannan