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


 How to relocate the grldr file
post Mar 4 2010, 07:50 AM
Post #1
chami
  
Group: Members

  Joined: 4-March 10
Posts: 5
Thank(s): 0


France


Hi,

Is it possible to relocate the file grldr of grub4dox and put it in to /boot/grub directory instead of / ? and how ?

I'am using an USB key

Thanks for your answers


+Quote Post
 
Start new topic
Replies (1 - 6)
post Mar 4 2010, 08:39 AM
Post #2
Icecube
Silver Member   ****
Group: Advanced user

  Joined: 7-September 08
Posts: 577
Thank(s): 146


Belgium


grldr must be in root, if you want that it gets detected by the grub4dos boot code.

If you want grldr in /boot/grub, try:
  • Make a subdir \boot\syslinux on your USB stick.
  • Install SYSLINUX on your USB stick (supports FAT12/FAT16/FAT32 only). (Replace X: with the correct drive letter)

    CODE
    syslinux.exe -ma -d /boot/syslinux X:
  • Contents of \boot\syslinux\syslinux.cfg:
    CODE
    DEFAULT grub4dos

    LABEL grub4dos
    COM32 chain.c32
    APPEND file=/boot/grub/grldr
  • Add chain.c32 (of Syslinux) to \boot\syslinux.


--------------------
Use Parted Magic for handling all partitioning task. Download Parted Magic 4.10.
Parted Magic and grub4dos iso emulation

Ultimate Boot CD V5 forum for features and suggestions. Download Ultimate Boot CD v5.0 RC2 with grub4dos support.

The Syslinux Project: Stable releases: download link. Last test builds: download link.
ISO booting capable MEMDISK
+Quote Post
post Mar 4 2010, 09:12 AM
Post #3
chami
  
Group: Members

  Joined: 4-March 10
Posts: 5
Thank(s): 0


France


Hi Icecude,

It work really fine, thanks a lot for your quick answer

Regards
+Quote Post
post Jun 4 2010, 02:13 PM
Post #4
tefole
Newbie   *
Group: Members

  Joined: 1-March 10
Posts: 12
Thank(s): 0


For my flashdisk beautification project, /me is looking for possibilities to cleaning up the root.
per bootlace and the other known tools, its possible to change name of the grldr (max 8bytes).

e.g. its not possible to move the grldr to
/system/newgrl
right.
On a CD-Rom u can include the grldr as bootsector and from there, u'll can load the menu from /system/menu.lst. For that u'll have to edit the integrated menu file in grldr.

Question:
i analysed the source (\stage2\grldrstart.S) a little bit (hardcode ASM, but well commented biggrin.gif), but what a suprise: i have no idea, how to change the grldr-scanning routine smile.gif
I think the solution is to include One or some more few lines to scan for one specific and addittional subdir.

Where and how we could do this in the source?
@chenall, tinybit and the others: ur allowed to feel be in demand rolleyes.gif
+Quote Post
post Jun 13 2010, 10:25 AM
Post #5
tinybit
Frequent Member   ***
Group: Developer

  Joined: 14-August 07
Posts: 462
Thank(s): 63


China


Not possible at this moment.

grldrstart.S only search grldr in the root dir "/" of partitions/drives.

+Quote Post
post Today, 07:09 AM
Post #6
KAOZ23
  
Group: Members

  Joined: 12-March 10
Posts: 6
Thank(s): 0


Spain


I ve modified grub4dos grldr path, via hex-editing grldr. It wasn t so hard. You can see it in this post:

http://www.boot-land.net/forums/index.php?showtopic=11561

open grldr in hexeditor, search for "/boot/" string, find a line with hardcoded path /, /boot/, /boot/grub/ ...
only add, for example /grub4dos/
This works for me
+Quote Post
post Today, 05:24 PM
Post #7
Wonko the Sane
Gold Member   *****
Group: Advanced user

  Joined: 8-January 10 From: The Outside of the Asylum

Posts: 1,438
Thank(s): 155


Italy


QUOTE (KAOZ23 @ Jun 16 2010, 09:09 AM) *
I ve modified grub4dos grldr path, via hex-editing grldr. It wasn t so hard. You can see it in this post:

http://www.boot-land.net/forums/index.php?showtopic=11561

open grldr in hexeditor, search for "/boot/" string, find a line with hardcoded path /, /boot/, /boot/grub/ ...
only add, for example /grub4dos/
This works for me

It seems to me like you modified the embedded menu.lst, i.e. where grldr ONCE LOADED FROM ROOT looks for menu.lst. dubbio.gif

I.e. NOT actually what OP asked which is to modify the grldr.mbr or, more exactly, as tinybit stated the grldrstart.S code, in order to be able to put grldr NOT in ROOT. happy22.gif

Short, EXTREMELY "simplified" sum up of grub4dos booting:
  1. first sectors of grldr are loaded and executed.
  2. grldr search "for itself" in ROOT of drive ONLY
  3. it loads it's "embedded menu.lst" which loads the actual menu.lst, see here:
    http://www.boot-land.net/forums/index.php?...c=6775&st=3
    http://www.boot-land.net/forums/index.php?...c=6775&st=5
    http://www.boot-land.net/forums/index.php?...=9696&st=33



cheers.gif
Wonko


--------------------

Light Blue Ribbon Campaign for Freedom of Skin

But ... then, why?
+Quote Post

Reply to this topic
2 User(s) are reading this topic ()



Collapse

  Topic Replies Topic Starter Views Last Action
No new Goto first unread Topic has attachmentsThe USB-Stick Benchmark Thread
16 MedEvil 554 Today, 07:32 PM
Last post by: steve6375
No New Posts How to manually load HDD controller (SATA or IDE or SCSI) drivers into offline Windows 7
driver injection to offline system
1 link0808987654 70 Today, 01:24 PM
Last post by: karyonix
No new File-system redirection
20 target_practice 1,199 13th June 2010 - 11:52 PM
Last post by: Galapo
No New Posts How to make use 2 images at once
1 xpt 106 13th June 2010 - 02:18 PM
Last post by: Icecube
No New Posts How to virtualize a domain controller | Chrome OS runs legacy PC apps | 56% of companies will buy iPads
0 Michael Pietroforte 79 11th June 2010 - 09:49 PM
Last post by: Michael Pietroforte





    

Display Mode: Switch to: Standard · Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum