kxylxp / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

bootloader created with bootlace.com does not load grldr from ext4 partition #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
grldr already has ext4 support, but it can't be loaded from an ext4 partition. 
Any chance to squeeze ext4 support also in there?

Original issue reported on code.google.com by svo...@gmail.com on 29 Aug 2010 at 8:53

GoogleCodeExporter commented 8 years ago
I got the error in VirtualBox of boot from EXT4 filesystem:

Try (hd0,0): EXT2: FATAL: int13_harddisk: functiona 42. Can't use 64bits lba.  

Is this the same error?

Original comment by dlin...@gmail.com on 31 Aug 2010 at 6:05

GoogleCodeExporter commented 8 years ago
No, what I'm getting with 3 partitions, 1 & 2 are ext4, 3 is ext3 (all 
containing grldr and menu.lst) is:
Try (hd0,0): EXT2: I/O error
Try (hd0,0): EXT2: I/O error
Try (hd0,0): EXT2: <here he finds the grldr and starts booting...>

Original comment by svo...@gmail.com on 31 Aug 2010 at 5:06

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Ext4 is quite different from EXT2/3. The current 18-sector MBR boot code cannot 
support ext4 as a new file system.

Another project call "wee" can load boot files from EXT4 partitions. The boot 
code of "wee" occupies 63 sectors. But "wee" only support LBA disks(where LBA 
means EBIOS), so if your USB BIOS does not support LBA(i.e., only have oldish 
CHS support), you cannot access your USB storage devices by using "wee".

"wee" is downloadable here: http://nufans.net/grub4dos/wee/

Original comment by tinyb...@gmail.com on 3 Sep 2010 at 1:56

GoogleCodeExporter commented 8 years ago
Yep, replacing the bootloader written by bootlace.com with wee did the trick. 
To get a similar behavior, I defined the script:
find --set-root /grldr
/grldr

And it gets me to what I want: starting up grub4dos as a bootloader that runs 
grub2, ntldr or any other bootloader from my computer. Thanks!

Though setting it up is still a bit complicated. To get it done, I hacked a 
small C tool to accomplish that, which I attached.

Original comment by svo...@gmail.com on 4 Sep 2010 at 1:01

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you very much for your code. Can you add a license agreement for it(i.e., 
a copyright notice)? Somebody might want to re-use your code.

Original comment by tinyb...@gmail.com on 4 Sep 2010 at 11:47

GoogleCodeExporter commented 8 years ago
Ah, ok. I forgot to add it's public domain and free as in both free beer and 
free speech. Here is an updated version with copying notice and legal 
disclaimer.

Original comment by svo...@gmail.com on 5 Sep 2010 at 12:28

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you. I will build a wee63setup command for grub4dos/"wee" base on your 
code, if I can.

Original comment by tinyb...@gmail.com on 5 Sep 2010 at 9:39

GoogleCodeExporter commented 8 years ago

Original comment by chenall.cn on 1 Dec 2010 at 9:54

GoogleCodeExporter commented 8 years ago
Find source code of the latest WEE here:

http://code.google.com/p/grubutils/source/browse/#svn%2Fgrubutils%2Fwee%253Fstat
e%253Dclosed

And the latest binary build of WEE here:

http://code.google.com/p/grubutils/downloads/list

Original comment by tinyb...@gmail.com on 10 Aug 2011 at 3:34