Topic: MountPEmedia / CdDrive - X: - Y:  (Read 3126 times)

MountPEmedia / CdDrive - X: - Y:
« on: October 10, 2012, 04:14:20 AM »

ChrisR

  • Win7PE SE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 1644
Make your build and directly use your final ISO created by copying it to the root of your drive (Usb, Disk whatever) (do not change the name of the iso).
And get your ISO boot via grub4dos, isolinux, etc. with following menu:

Grub4Dos menu example:

Code: [Select]
iftitle [find /ISO/Win7PE_x86.ISO] Find and Load Win7PESE x86 ISO
find --set-root --ignore-floppies /ISO/Win7PE_x86.ISO
map (hd0) (hd1)
map (hd1) (hd0)
map /ISO/Win7PE_x86.ISO (0xff)
map --hookroot (0xff)
chainloader (0xff)/BOOTMGR

When booting from a USB device (e.g. flash drive, or external hard drive), to change the disks order.
You need to add the following lines for the detection of the host operating system, especially for running System Recovery.

Code: [Select]
map (hd0) (hd1)
map (hd1) (hd0)

It is useless if you start your ISO from a CD/DVD (ISO Written) or from your main hard drive (ISO extracted)


Imdisk is required: In order to function and to have the ISO files available, Imdisk is required, enable the script when building (with or without RamDisk).

At Startup, if Imdisk and ISO file are available, the ISO will automatically mount to a drive (Win7PESE Default Y: , Gena Default V:)
with Files, Apps inside your ISO accessible and shortcuts available.


Win7PESE Notes:

The ISO name is defined in "Create ISO" script with the options "Use Custom Iso FileName:" and "Add 'Source Architecture' To Iso Filename".
To indicate the location of your ISO, used the option "Boot from an ISO file: Subfolder (Blank for root)" (ex: ISO for \ISO\Win7PE_x64.iso).

You can create your USB key, external Disk, by using the script "Copy to USB-Device" and by enabling the option "Use .ISO boot" or by using another tool of your choice..

The "OtherOS" (script) can not be loaded from grub4dos or isolinux. You can disable them.

If you changed Iso file name or path, use "Win7PESE.ini" to specify your personal .Iso name and location and put it to the root of your media.
(solution for without rebuilding your project with your custom isoname/subfolder settings).
The default Win7PESE.ini is created when building, in ISO directory.

Win7PESE.ini
Code: [Select]
[ISOINFO]
IsoName=Images\Win7PE_x64.ISO

For Non ISO Boot, the Flag File CdUsb.Y is used in Win7PESE to detect your media and change the drive letter (Win7PESE Default Y:).

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

With the ISO Boot, your UFD should look like, for example :

   [Boot] (Gfx-Boot.gfx)
   [ISO]
     | Win7PE_x86.iso
     | RescueCD.iso
   grldr
   menu.lst
   Win7PESE.ini (optional)


While a Non ISO Boot, your UFD would look like:

   [Boot] (bcd, ...)
   [Programs]
     | MyApps (Run From CD/USB)
   [sources]
     | boot.wim
   BOOTMGR
   CdUsb.Y
   grldr
   menu.lst


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

MountPEmedia.exe usage:
Code: [Select]
[-ini Inifile]   ex: MountPEmedia.exe -ini x:\Windows\System32\MountPEmedia.ini.
   otherwise search: "ProgramName Without Extenssion"ini in Working Dir then System Dir.
   [-h | /h]   Help

(*) Requires Imdisk installed to mount ISO file.


MountPEmedia.ini, example for Win7PESE:
Code: [Select]
[Settings]
ProjectName=Win7PESE
MountDrive=Y:
SearchFlagFile=Yes
FlagFileName=CdUSB.Y
SearchExternalIniFile=Yes
ExternalIniFileName=Win7PESE.ini
DesktopWarningLabel=Win7PESE Warning

[IsoInfo]IsoName=\Images\Win7PE_X64.iso

[onerror]
...


I hope above info useful,
:cheers:
« Last Edit: October 15, 2012, 08:12:25 AM by ChrisR »

MountPEmedia (plugin for Gena)
« Reply #1 on: October 10, 2012, 09:45:51 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 3990
Gena Info:
Same tool (MountPEmedia.exe) used on Gena, available with a plugin, (also see "WinVBlock Note:" at the end of this post)
Gena\Finals\1 Optimizations\'MountPEmedia'
ila_rendered

Make your build and directly use your final ISO created by copying it to the root of your drive (Usb, Disk whatever) (do not change the name of the iso).
And get your ISO boot via grub4dos, isolinux, etc.
Relevant grub4dos menu.lst info exists on Gena\WriteMedia\'Tutorial Gena Disk Boot'

If you plan to use different iso filename, use relevant option on 'MountPEmedia'


You will find this option very useful on Gena with ISO boot via grub4dos, isolinux, etc.
Generally with WimBoot and BootDI builds where (IF) you need files inside .iso (via adding them custom or RunFromCD or WimPack ....)


ps: Use latest versions of Gena\Finals\2 Create Image\* plugins


WinVBlock Note:
WinVBlock v0.0.1.8-Dev do same task at driver level,
Using both MountPEmedia and WinVBlock together does not harm,
only you may be asked which one to be used at early boot IF required :>

:ymca:
« Last Edit: October 16, 2012, 06:04:24 PM by Galapo »

Re: MountPEmedia
« Reply #2 on: October 12, 2012, 11:53:41 AM »

ChrisR

  • Win7PE SE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 1644
Scripts related for Win7PESE have been updated on the w7pese server and an update of the project, package is expected soon.

:cheers:

Re: MountPEmedia / CdDrive - X: - Y:
« Reply #3 on: December 13, 2013, 09:52:18 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 3990
There have been again reports about Desktop Warning:

http://theoven.org/index.php?topic=786
http://theoven.org/index.php?topic=798
http://theoven.org/index.php?topic=787

It is NOT News ,

When boot media could not be found during boot, A Warning appears at desktop.  :thumbsup:
Which simply warns  :thumbsup: about the well known situation.
When boot media could not be found, Naturally applications on boot media can not be operational.
These are Programs on such boot media. --> Things out of boot image (ex: boot.wim)



Known Reasons:
at a given time on bootup:
* usb stick/disk not mounted
* cd-drive not mounted (ex: sata cd/dvd  on laptops)
* pxe boot


Solutions:
* If possible boot from usb instead of internal cd/dvd (probably sata),
"MountPEmedia / CdDrive - X: - Y: " plugin organised to serve such goals, well explained at current topic initial post.

* If trouble is about your cd/dvd media boot,
check bios for cd/dvd settings , and see if it is possible to change sata to eide.

* If trouble is about your cd/dvd media boot,
try adding your cd/dvd drivers (a driver add plugin maybe available  :wink:)



* Run all from RAM
NT6 ----> "CdDrive - X: - Y:" -> Enable checkbox "Run all programs from RAM"
This is the easiest solution  :thumbsup: :thumbsup: :thumbsup: :thumbsup:

If Easiest , there is a "BUT"
check here for list of advantages/disadvantages for Run from Ram.
http://theoven.org/index.php?topic=452.0






***
Although old fashioned,
 A solution for not detected cd/dvd media (I guess sata, and frequently laptops) was not produced yet,
  If you figure out, let us know.  :thumbsup:


:turtle:

 

Powered by EzPortal