Hello dear guest!

Boot Land is a community driven pc software site established since 2006 and focused on recovery/backup boot disks, research of Microsoft Windows 2000/XP/2003/Vista/7 install/deployment/lease/antivirus/antispam tools, customizing Microsoft Windows PE administration systems and even learning how to recover computer data from disaster situations!

How about joining our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register


24 Pages V   1 2 3 > » 

Add Grub4Dos to flash chip / boot ROM
Icecube
Posted on: Jun 20 2010, 09:28 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (Wonko the Sane @ Jun 20 2010, 09:14 PM) *
Quick check performed:
wee63.mbr is the "compilation" of:
  • wee63start
  • pre_stage2
  • preset_menu_used


So simply doing:
CODE
copy /b wee63start+pre_stage2+preset_menu_used test.mbr

should create again it from the parts, BUT, the already assembled wee63.mbr has a number (actually 12) 00's padding between pre_stage2 and preset_menu_used.

This is how tinybit generates the wee63.mbr:
CODE
wee63.mbr: pre_stage2 wee63start
    -rm -f wee63.mbr
    echo -n -e "\000\000\000\000\000\000\000\000\000\000\000\000" | cat wee63start pre_stage2 - > wee63.mbr
    if [ -f ./preset_menu_used ]; then echo -n -e "\000" | cat ./preset_menu_used - >> wee63.mbr;fi

It first removes the previous wee63.mbr:
CODE
-rm -f wee63.mbr

Then it adds "wee63start" and "pre_stage2" together, followed by 12 zeroes:
CODE
# The echo statement generates 12 zeros
# The dash '-' means "get content from standard input",
# which is the output of the echo command in this case.
# So "cat" pastes first 2 files together and then appends the 12 zeroes
echo -n -e "\000\000\000\000\000\000\000\000\000\000\000\000" | cat wee63start pre_stage2 - > wee63.mbr

If a file with the name "preset_menu_used" is found, append it to the end and add an additional zero:
CODE
if [ -f ./preset_menu_used ]; then echo -n -e "\000" | cat ./preset_menu_used - >> wee63.mbr;fi

QUOTE (Wonko the Sane @ Jun 20 2010, 09:14 PM) *
Is this "needed"?

Or the last two bytes in pre_stage2 hex 1ACE act as a signature/separator and the subsequent 00's are ignored?

The last part of wee63.mbr:
QUOTE
000078f0 ff ff ff ff 00 00 00 00 ff ff ff ff ff ff ff ff |................|
00007900 b0 02 1a ce 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00007910 65 63 68 6f 20 77 65 65 65 65 65 65 65 65 65 65 |echo weeeeeeeeee|
00007920 65 65 65 65 65 3a 29 0a 0a 00 |eeeee:)...|
0000792a

Part of asm.S:
QUOTE
/* use builtin preset_menu */

/* set the starting address of the preset_menu */

#if defined(HAVE_USCORE_USCORE_BSS_START_SYMBOL)
movl $ABS(__bss_start), %esi
#elif defined(HAVE_USCORE_EDATA_SYMBOL)
movl $ABS(_edata), %esi
#elif defined(HAVE_EDATA_SYMBOL)
movl $ABS(edata), %esi
#else
#error no bss starting address
#endif

cld
addl $16, %esi /* skip 4 bytes of B0 02 1A CE */
/* skip 4 bytes of reserved */
/* skip 4 bytes of reserved */
/* skip 4 bytes of zeroes */

movl $0x400, %ecx /* move 4KB of the menu ... */
movl $0x800, %edi /* ... to 0x800 */
repz movsl

3:
movl $0x0800, EXT_C(preset_menu) /* use new menu at 0x800 */

So, the answer is yes.
The 12 zeroes are needed.

@tinybit
make doesn't work for me, unless I replace echo with /bin/echo.
  Forum: Grub4dos · Post Preview: #102974 · Replies: 11 · Views: 398

QEMU: using -kernel -inird -append for quickly testing images with grub4dos or memdisk
Icecube
Posted on: Jun 19 2010, 09:47 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


With qemu you can easily boot a kernel and initrd and specify boot parameters, without building a hard disk, floppy disk or ISO image first.

We can use this to quickly test if we can boot a certain floppy/hard disk or ISO image with grub4dos (grub.exe) or MEMDISK.

Quickly testing an ISO with grub4dos.
For linux use:
CODE
qemu -kernel grub.exe -initrd myiso.iso -append '--config-file="map (rd) (hd32); map --hook; root (hd32); chainloader (hd32);"'

For Windows (note the usage of ^" inside the --config-file statement to escape "):
CODE
qemu -kernel grub.exe -initrd myiso.iso -append "--config-file=^"map (rd) (hd32); map --hook; root (hd32); chainloader (hd32);^""


Or when you want to quickly test, if you can boot the iso with MEMDISK, use:
CODE
qemu -kernel memdisk -initrd myiso.iso -append "iso"

Or, when your ISO requires the 'raw' parameter (Windows based ISO's):
CODE
qemu -kernel memdisk -initrd myiso.iso -append "iso raw"

You can adapt the parameters, you want to pass to grub4dos and MEMDISK to your likings, of course.

Thanks go to Sha0, who had a hard time to get my linux qemu command line for grub4dos working on Windows, due to the need to escape " as ^".
  Forum: PC emulators · Post Preview: #102849 · Replies: 0 · Views: 74

Rooting a folder
Icecube
Posted on: Jun 19 2010, 10:59 AM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (Wonko the Sane @ Jun 19 2010, 11:22 AM) *
@all
You can "root" to a folder allright:
README_GRUB4DOS.txt:

though I cannot see the reason in the context of this thread why that would be needed. dubbio.gif

But using the "root' to a folder, only applies to grub4dos itself.
It won't force DOS to see that directory as the root dir of that partition/drive.
  Forum: Grub4dos · Post Preview: #102787 · Replies: 8 · Views: 195

Certificate expired warning
Icecube
Posted on: Jun 18 2010, 06:47 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


Which part of Boot-Land uses HTTPS?
Without HTTPS, you never can get a message about a expired certificate. Normal HTTP connections don't use a cerificate to confirm that they are connected to the "real" site.
  Forum: Site feedback · Post Preview: #102727 · Replies: 15 · Views: 255

Icecube
Posted on: Jun 15 2010, 09:47 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


Support for the use of full commands (allow spaces) instead of labels only:
CODE
LABEL plopcheck
    COM32 ifplop.c32
    APPEND menu.c32 another.cfg -- plpbt.bin hiddenusb usb1=2

To pass 'hiddenusb usb1=2' to PLoP you need v5.0.11-test2 or later:
http://www.boot-land.net/forums/index.php?...iew=getlastpost

Source code: http://git.zytor.com/?p=users/sha0/syslinu...fed132301257dfc
Attached File(s)
Attached File  ifplop.c32.zip ( 1.36K ) Number of downloads: 2
 
  Forum: The Syslinux Project · Post Preview: #102445 · Replies: 1 · Views: 147

Boot-loader for INT 0x13 mapping non-contiguous files
Icecube
Posted on: Jun 15 2010, 02:33 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


@ supaJ
Did you try VBOOT like I suggested on your other tread?
http://www.vmlite.com/index.php/forums/9-v...the-xp-vhd-file
QUOTE
VBoot allows you to boot a physical computer from a single virtual disk file in VHD format. Each file contains a single operating system. It supports Windows 2000, Windows XP, Vista, Windows 7, 2003 Server, 2008 Server and Linux 2.6, 32- and 64-bit. VBoot makes multiple boots extremly simple. You just simply copy a single file to a physical computer, and it can boot to the OS contained inside that file. VBoot provides native XP VHD boot, Vista VHD boot, Windows 7 VHD boot, Linux VHD boot, 2003 server VHD boot and 2008 server VHD boot.

You can use our MyOldPCs software to convert your XP machine to a VHD file, you can either run the VHD file as a virtual machine using VMLite Workstation, or use this same VHD file to boot your new physical PC directly to achieve even better performance.

http://www.vmlite.com/index.php/products/vboot

Also take a look at the screenshot page:
QUOTE
2, VBoot Loader is based on GRUB2, and you can add VHD boot entries to the grub.cfg file. Shown below is a screenshot of the VMLite Boot Loader.

http://www.vmlite.com/index.php/products/vboot/screenshots
  Forum: Grub4dos · Post Preview: #102425 · Replies: 8 · Views: 378

PLoP (plpbt.bin) supports passing arguments now
Icecube
Posted on: Jun 15 2010, 07:44 AM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


CODE
title Boot PLoP silently with USB1.1
kernel /plpbt.bin hiddenusb usb1=1
  Forum: Boot from USB / Boot anywhere · Post Preview: #102396 · Replies: 4 · Views: 241

Install grub4dos from within grub4dos
Icecube
Posted on: Jun 15 2010, 07:25 AM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


No, installing grub4dos from within grub4dos isn't supported.
  Forum: Grub4dos · Post Preview: #102393 · Replies: 1 · Views: 151

PLoP (plpbt.bin) supports passing arguments now
Icecube
Posted on: Jun 15 2010, 07:17 AM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (maanu @ Jun 15 2010, 08:58 AM) *
What will be the real life usage of it and in what cases ?

It is useful when you want to run plpbt.bin from another bootloader (Syslinux, Grub4dos, Grub, Grub2, ...) and you need a specific PLoP setting for some PCs (and you don't want to use plpcfgbt)

For example, the graphical interface doesn't work on one of my PCs (red lines on my screen).

syslinux.cfg
CODE
UI menu.c32

LABEL plop
MENU LABEL PLoP
LINUX plpbt.bin

LABEL ploptextmode
MENU LABEL PLoP (text mode)
LINUX plpbt.bin
APPEND vm=text

With this config file, I can choose to boot PLoP with or without the graphical mode, while still using one plpbt.bin file.

You can use the same principle when you have PCs where PLoP only works when you set the USB1 setting and others where you can use the USB2 setting.
  Forum: Boot from USB / Boot anywhere · Post Preview: #102392 · Replies: 4 · Views: 241

PLoP (plpbt.bin) supports passing arguments now
Icecube
Posted on: Jun 14 2010, 09:40 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


PLoP (plpbt.bin) supports passing arguments now.
QUOTE
Mon 14/Jun/2010

I added a new feature to the plpbt.bin 5.0.11-test2 version. Icecube had the idea and now you can set a few parameters with the Linux Kernel Command Line. Use it with "append" in lilo, syslinux and grub.

Parameters:
hiddenusb is the short version of "stm=hidden cnt=on cntval=1 dbt=usb"
usb1=1, usb1=2, vm=text, fnt=bios see plpcfgbt
others currently not supported.

http://www.plop.at/en/bootmngrusblog.html
  Forum: Boot from USB / Boot anywhere · Post Preview: #102372 · Replies: 4 · Views: 241

Is it possible to boot Isolinux from grub4dos ?
Icecube
Posted on: Jun 14 2010, 02:46 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (weifa @ Jun 14 2010, 03:42 PM) *
Acually i wanted to do the opposite grub4dos ->isolinux.
I read a post from Icecube how to do this exactly with a boot sector file .. but I cant find it right now in the forum.

http://www.boot-land.net/forums/index.php?...rt=#entry101351
  Forum: Grub4dos · Post Preview: #102351 · Replies: 12 · Views: 565

MEMDISK Driver for Linux
Icecube
Posted on: Jun 13 2010, 10:06 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


Small distro's would be the best.

Parted Magic 4.10
CODE
$ uname -r
2.6.32.11-pmagic

http://partedmagic.com/download.html

It normally has the last kernel available.
Patrick Verner wants to get rid of the iso booting stuff (search the iso on a partition, mount it, read sqfs), so he might be interested in this approach.
  Forum: FileDisks/RamDisks: Firadisk, etc. · Post Preview: #102308 · Replies: 6 · Views: 204

Chainload grldr or ntldr from Grub2
Icecube
Posted on: Jun 13 2010, 09:04 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (Sha0 @ Jun 13 2010, 09:39 PM) *
You can't map a loop device to an INT 13h HDD number in GRUB2, for later use by GRUB4DOS?

AFAIK, grub2 doesn't use INT 13h mappings (probably because they support multiple architectures).
You have a loop device to which you can mount an image to read files from this image (read kernel and initrd from ISO)

I think supaJ is using this:
http://www.vmlite.com/index.php/forums/9-v...the-xp-vhd-file?

They wrote a module for grub2 which can read and boot a vhd file.
  Forum: Grub4dos · Post Preview: #102301 · Replies: 19 · Views: 388

Chainload grldr or ntldr from Grub2
Icecube
Posted on: Jun 13 2010, 09:02 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (Sha0 @ Jun 13 2010, 09:39 PM) *
You can't map a loop device to an INT 13h HDD number in GRUB2, for later use by GRUB4DOS?

AFAIK, grub2 doesn't use INT 13h mappings (probably because they support multiple architectures).
You have a loop device to which you can mount an image to read files from this image (read kernel and initrd from ISO)

I think supaJ is using this:
http://www.vmlite.com/index.php/forums/9-v...the-xp-vhd-file?

They wrote a module for grub2 which can read and boot a vhd file.
  Forum: Grub4dos · Post Preview: #102299 · Replies: 19 · Views: 388

Chainload grldr or ntldr from Grub2
Icecube
Posted on: Jun 13 2010, 09:01 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (Sha0 @ Jun 13 2010, 09:39 PM) *
You can't map a loop device to an INT 13h HDD number in GRUB2, for later use by GRUB4DOS?

AFAIK, grub2 doesn't use INT 13h mappings (probably because they support multiple architectures).
You have a loop device to which you can mount an image to read files from this image (read kernel and initrd from ISO)

I think supaJ is using this:
http://www.vmlite.com/index.php/forums/9-v...the-xp-vhd-file?

They wrote a module for grub2 which can read and boot a vhd file.
  Forum: Grub4dos · Post Preview: #102298 · Replies: 19 · Views: 388

Chainload grldr or ntldr from Grub2
Icecube
Posted on: Jun 13 2010, 08:38 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (supaJ @ Jun 13 2010, 09:11 PM) *
It is reported as having worked on this Chinese website.

I don't see grub.exe anywhere on that page unsure.gif .

QUOTE (supaJ @ Jun 13 2010, 09:14 PM) *
I can't. I've tried but for some reason it does not work.

grub2 doesn't use an append line (is Syslinux syntax). Try:
CODE
linux16 grub.exe --config-file="root (hd0,0);chainloader /ntldr"


QUOTE (maanu @ Jun 13 2010, 10:08 PM) *
is it because grub2 by default loaded as 32bit , but the grub.exe is 16bit so it downgrades itself ?

grub2 is runs 32 protected mode code (at least I think).
They had the 'great' idea to skip the 16 bit part of the linux kernel and just jump directly to the 32 bit part (to avoid switching from 32 bit protected mode, to 16 real mode, to go back to 32 protected mode). I recently heard, that they told the kernel developers, that they had to fix the kernel, because there hack didn't work anymore.

linux16 will use the old way of booting linux kernels (back to 16 bit real mode), like all sane boot loaders do. You need linux16 for every tool that looks like a linux kernel (some magic bytes), but that isn't a real linux kernel: like MEMDISK, plpbt.bin (PLoP bootloader), memtest64+.bin, grub.exe, ...
  Forum: Grub4dos · Post Preview: #102294 · Replies: 19 · Views: 388

Icecube
Posted on: Jun 13 2010, 07:11 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


Like I mentioned some time ago, Syslinux-4.00 will support setting a directory of your liking as "home" dir. It will first look for its syslinux.cfg file in this subdir.
CODE
syslinux.exe -d /some/dir/of/your/choice X:

Place your syslinux.cfg in X:\some\dir\of\your\choice\ (the COM32 modules too, if you need them).

You can download a compiled version from (or wait until syslinux-4.00-pre48):
http://ubcd.stopspazzing.com/downloads/sys...pre47-ifplop.7z
  Forum: USB FORMATTING utilities: RMprepUSB, fbinst, etc. · Post Preview: #102279 · Replies: 300 · Views: 113,710

Chainload grldr or ntldr from Grub2
Icecube
Posted on: Jun 13 2010, 06:57 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (supaJ @ Jun 13 2010, 08:28 PM) *
I know grub4dos can be chainloaded using 'linux grub.exe', but I'm interested in specifically chainloading grldr or ntldr.

It can not.
You need to use:
CODE
linux16 grub.exe
  Forum: Grub4dos · Post Preview: #102277 · Replies: 19 · Views: 388

How to make use 2 images at once
Icecube
Posted on: Jun 13 2010, 02:18 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


Read the grub4dos tutorial:
http://diddy.boot-land.net/grub4dos/Grub4dos.htm

It is very similar to the instructions explained in the Nested Mapping section:
http://diddy.boot-land.net/grub4dos/files/map.htm#2xMap
  Forum: Grub4dos · Post Preview: #102247 · Replies: 1 · Views: 145

USB BIOS 128GB size limit
Icecube
Posted on: Jun 13 2010, 01:03 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (steve6375 @ Jun 13 2010, 02:54 PM) *
Is this a BIOS limitiation or grub4dos? How can you tell?

It is a BIOS limitation.
I discovered it some months ago, while testing Syslinux-4.00-preXX.
The Syslinux-4.00 branch has EXT4 support.
Syslinux didn't fully boot. The partition on which I installed Syslinux started at 126GiB. I could display some files and directories with the "ls" command of grub4dos on that partition. But grub4dos couldn't display the files in a certain subdirectory. When using the "cat" command, grub4dos couldn't display the contents of some files which did show up in the output of "ls". I also tried to display and read files with grub2, but it also couldn't read all files.
First I was suspecting, filesystem implementation bugs in Syslinux, Grub4dos and grub2 (EXT4 is relatively new), but When I attached the USB drive to qemu, all bootloaders did work.
CODE
qemu -boot c -hda /dev/sdf
  Forum: Boot from USB / Boot anywhere · Post Preview: #102241 · Replies: 6 · Views: 370

USB BIOS 128GB size limit
Icecube
Posted on: Jun 13 2010, 12:41 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


Yes, it affects me too. My internal SATA drive also doesn't has the 128 GiB (137GB) limit.
Using PLoP for booting the USB drive solves the problem for me.
Elmar (developer of PLoP) told me that PLoP should support drives up to 2 Terabyte (MBR limit).
  Forum: Boot from USB / Boot anywhere · Post Preview: #102236 · Replies: 6 · Views: 370

Syslinux - normal boot from local hard drive?
Icecube
Posted on: Jun 13 2010, 10:29 AM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


Maybe it is fixed in grub2 that ships with Ubuntu 10.04 (which would be good news). I am still using 9.10.
  Forum: The Syslinux Project · Post Preview: #102225 · Replies: 10 · Views: 421

Syslinux - normal boot from local hard drive?
Icecube
Posted on: Jun 13 2010, 09:34 AM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


When you want to boot grub2 (installed in the MBR) with chain.c32, when you booted from USB, don't use "swap".
CODE
LABEL grub2_in_mbr
  COM32 chain.c32
  APPEND hd1

If you add "swap", grub2 will not boot completely (at least not on my PC), for some unknown reason==> bad grub2 whip.gif:
CODE
LABEL grub2_in_mbr
  COM32 chain.c32
  APPEND hd1 swap
  Forum: The Syslinux Project · Post Preview: #102221 · Replies: 10 · Views: 421

slef-contained Grub4dos installation
Icecube
Posted on: Jun 13 2010, 08:12 AM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


You can install from Linux directly:
http://diddy.boot-land.net/grub4dos/files/...inux.htm#linux4
  Forum: Grub4dos · Post Preview: #102216 · Replies: 2 · Views: 151

FiraDisk (0.0.1.24)
Icecube
Posted on: Jun 12 2010, 06:36 PM


Silver Member
****

Group: Advanced user
Posts: 581
Joined: 7-September 08
Member No.: 17,978


QUOTE (supaJ @ Jun 12 2010, 07:58 PM) *
Unfortunately Gujin bootloader cannot read NTFS partitions.

I never said, it could, but fortunately it can read ext2/3/4. cool.gif
  Forum: FileDisks/RamDisks: Firadisk, etc. · Post Preview: #102193 · Replies: 311 · Views: 72,027

24 Pages V   1 2 3 > » 

New Posts  New Replies
No New Posts  No New Replies
Hot topic  Hot Topic (New)
No new  Hot Topic (No New)
Poll  Poll (New)
No new votes  Poll (No New)
Closed  Locked Topic
Moved  Moved Topic