Jump to content











Photo
- - - - -

Make Grub4Dos search for BOOTMGR only in CD


  • Please log in to reply
12 replies to this topic

#1 Meyer!

Meyer!
  • Members
  • 9 posts
  •  
    Brazil

Posted 01 April 2012 - 12:31 AM

Can I make grub4dos just find the BOOTMGR on the CD? Without researching the HD's / USB's, only in CD?

The grub4dos is in the same CD that BOOTMGR ...

Edited by Meyer!, 01 April 2012 - 12:33 AM.


#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 3,971 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 01 April 2012 - 07:13 AM

find --set-root --devices=c /bootmgr

See Tutorial #21 on my site.

#3 karyonix

karyonix

    Frequent Member

  • Advanced user
  • 433 posts
  •  
    Thailand

Posted 01 April 2012 - 08:30 AM

Why find ?
Can't you just use relative part from root ?

#4 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1,030 posts
  •  
    Belgium

Posted 01 April 2012 - 01:14 PM

find --set-root --devices=c /bootmgr

See Tutorial #21 on my site.

IMHO, it is wrong to search for a file and set a new if you already are at the right root partition and drive.

#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 8,977 posts
  • Location:The Outside of the Asylum
  •  
    Italy

Posted 01 April 2012 - 01:19 PM

IMHO, it is wrong to search for a file and set a new if you already are at the right root partition and drive.

But as always there are compromises, what about something like:

ls /bootmgr || find --set-root /bootmgr

chainloader /bootmgr


:cheers:
Wonko

#6 steve6375

steve6375

    Platinum Member

  • Developer
  • 3,971 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 01 April 2012 - 02:23 PM

Read the original question!
The OP does not say they are booting from CD. He asks how to find /bootmgr on the CD and not on the HDD or USBs which is what I answered.
If the OP is booting from the same CD, then why would he need to exclude HDD and USB anyway?

#7 Meyer!

Meyer!
  • Members
  • 9 posts
  •  
    Brazil

Posted 01 April 2012 - 02:25 PM

Read the original question!
The OP does not say they are booting from CD. He asks how to find /bootmgr on the CD and not on the HDD or USBs which is what I answered.
If the OP is booting from the same CD, then why would he need to exclude HDD and USB anyway?

Now, the menu.lst is right for what I need?


timeout 0

default /default

title Boot Win7 Recovery CD/DVD

fallback 2

chainloader /bootmgr

savedefault --wait=0


It works in a virtual machine... This will boot right how I need into a real machine?

Sorry if my english is bad

Edited by Meyer!, 01 April 2012 - 02:28 PM.


#8 steve6375

steve6375

    Platinum Member

  • Developer
  • 3,971 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 01 April 2012 - 02:36 PM

The default device is the boot device. So if you are booting from a DVD then the default device for \bootmgr will be the DVD. If you are booting from a USB HDD, then /bootmgr will load from the USB HDD. If you are booting from a USB Flash drive then /bootmgr will load from the USB Flash drive. You don't need to find /bootmgr.

many people use

ls /bootmgr || find --set-root /bootmgr

chainloader /bootmgr


so it does not waste time searching for bootmgr if it is on the boot device (which it should be).

#9 Meyer!

Meyer!
  • Members
  • 9 posts
  •  
    Brazil

Posted 01 April 2012 - 02:37 PM

The default device is the boot device. So if you are booting from a DVD then the default device for bootmgr will be the DVD. If you are booting from a USB HDD, then /bootmgr will load from the USB HDD. If you are booting from a USB Flash drive then /bootmgr will load from the USB Flash drive. You don't need to find /bootmgr.

many people use

ls /bootmgr || find --set-root /bootmgr

chainloader /bootmgr


so it does not waste time searching for bootmgr if it is on the boot device (which it should be).

Thanks... I will try here... I'm trying to make a ISO of Windows 7 Recovery (it works :P)

#10 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 8,977 posts
  • Location:The Outside of the Asylum
  •  
    Italy

Posted 01 April 2012 - 04:39 PM

Read the original question!

I did, and - strangely enough - I suggested the same approach you later re-suggested once you re-read the orginal question (and OP cleared that he was attempting booting form CD/DVD).... :whistling:
Granted, I had to try using my crystal ball to get that the OP was actually trying to boot from CD/DVD, but since the stoopid glass paperholder was foggy as often is, I had to make a (educated) guess ;)

:cheers:
Wonko

#11 Meyer!

Meyer!
  • Members
  • 9 posts
  •  
    Brazil

Posted 01 April 2012 - 04:42 PM

I did, and - strangely enough - I suggested the same approach you later re-suggested once you re-read the orginal question (and OP cleared that he was attempting booting form CD/DVD).... :whistling:
Granted, I had to try using my crystal ball to get that the OP was actually trying to boot from CD/DVD, but since the stoopid glass paperholder was foggy as often is, I had to make a (educated) guess ;)

:cheers:
Wonko

Thanks for all... My poor English hinders, but I managed to solve my problem ...

#12 steve6375

steve6375

    Platinum Member

  • Developer
  • 3,971 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 02 April 2012 - 10:15 AM

I did, and - strangely enough - I suggested the same approach you later re-suggested once you re-read the orginal question (and OP cleared that he was attempting booting form CD/DVD).... :whistling:
Granted, I had to try using my crystal ball to get that the OP was actually trying to boot from CD/DVD, but since the stoopid glass paperholder was foggy as often is, I had to make a (educated) guess ;)
:cheers:
Wonko

Well, I read the original question and I answered the question accurately, what you did was to read between the lines of the question :book: !

#13 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 8,977 posts
  • Location:The Outside of the Asylum
  •  
    Italy

Posted 02 April 2012 - 11:26 AM

Well, I read the original question and I answered the question accurately, what you did was to read between the lines of the question :book: !

Yep :smiling9: just like Icecube :worship: did, sometimes it is simply needed ;):
Spoiler


:rofl:

:cheers:
Wonko




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users