Message board for the users of flat assembler.
> MenuetOS > load image from partition other than the primary
I have linux and winXP in my hard disk.
I use grub to boot them. I want to boot menuetos from the hard disk.
I have also added a entry for menuetos.
I am able to load the kernel KERNEL.MNT from my /dev/hda2 (F: drive)
but the kernel does not load the ram image from the fat32 partition.
The problem now is , i don't have a primary fat32 partition. That is, the
first partition in my hard disk is not a fat32 partition. I have ext2 partition as the first partition with linux installed in it.
here is my partition table
/dev/hda1 linux partition (red hat) boot
/dev/hda2 fat32 f: drive
/dev/hda3 fat32 (winxp) boot c: drive
/dev/hda4 fat32 d: drive
/dev/hda2 was once my linux swap (512 mb)
i formatted it in to a fat32 partition to install menuetos in it.
i also don't know why xp addresses it (/dev/hda2) as my f: drive
e: -- my cd rom drive
Is there any other way to install menuetos in my f:
|29 Mar 2004, 19:34||
It's possible, but you will need to reassemble the kernel.
In kernel.asm you will find:
... ; READ RAMDISK IMAGE FROM HD cmp [boot_dev],1 jne no_sys_on_hd mov [fat32part],1 ; Partition mov [hdbase],0x1f0 ; Controller base mov [hdpos],1 ; mov [0xfe10],dword 0 ; entries in hd cache mov [0x800000+1474560/1024],dword 0xffffffff mov ecx,41 hdbootl1: mov eax,hdsysimage mov ebx,12 mov edx,1 mov esi,0x90000 pusha call read_hd_file ...
changing the mov [fat32part],1 to mov [fat32part],2 worked for me.
|30 Mar 2004, 05:13||
can we replace cmp [boot_dev],1 with
and have another question in bootcode.inc
call printplan "Choose partition to read image from"
this assumes you make a address 'boot_partition' in kernal.asm
so that if you choose to boot from HDD you can choose which partition too ^_^
(just and idea.. doesnt seem too hard)
|30 Mar 2004, 15:44||
Must the Image file be in the root directory?
I'd like load it from "C:\boot\menuet.img"
So write a complete solution for this problem
|30 Mar 2004, 16:11||
kinda demanding arent we? this is GPL.
|31 Mar 2004, 06:15||
sorry, i can't say english very well
I mean suggestion.
|01 Apr 2004, 08:32||
No problem.. things like that happen... ill see what i can do.
|02 Apr 2004, 04:30||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar.
Powered by rwasa.