Jump to content











Photo
- - - - -

help with grubinst.exe


  • Please log in to reply
29 replies to this topic

#26 Bean123

Bean123

    Member

  • Members
  • 30 posts

Posted 02 July 2008 - 08:53 AM

I played a bit more with this. The problem must lie in windows caching, switched USB drive to "optimize for performance" and the tasks

-backup BS
-install syslinux BS
-get the syslinux BS and copy it to the same drive
-write back original BS

using grubinst.exe became impossible, even with the help of touchdrv.exe, which works brilliant when only grub4dos BS is installed, thanks.
Run in all kind of variants, before each line, just after writes, just after grubinst.exe writes, with 5-10 second pauses etc. File copy was moved at the end- no joy. The original BS was not written back.

So here came the light:

syslinux.exe -f j: j:\syslin.dat
Syslinux 3.63.
This writes the syslinux BS to syslin.dat. BS in drive J: is not touched. If file is omitted, then BS will go to the partition. This is not in SysLinux documentation, neither in their site, nor in the docs, coming with the package, which I checked so many times for something similar. Downloaded the latest 3.70- still not a word that it can write it's BS to a file, instead to a partition.


Perhaps I can add a new function to grubinst. Instead of writing directly to disk, it saves the bs to an output file. Then, you can use external tool to save the bs to specific drive whenever you feel right. This should fix the problem with syslinux.

#27 ilko

ilko

    Silver Member

  • Advanced user
  • 500 posts
  •  
    Bulgaria

Posted 02 July 2008 - 11:19 PM

That would be nice.
Is it possible to add feature to write the bootsector(grub4dos or other one from file) to a windows drive, X: , rather than to a physical disk ?
This also may overcome the issues.

#28 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 03 July 2008 - 07:40 AM

@ilko

Maybe these can be of use/of interest:
http://support.micro...kb/332023/en-us
http://support.micro...kb/811392/en-us

SYNC:
http://technet.micro...438(en-us).aspx

jaclaz

#29 ilko

ilko

    Silver Member

  • Advanced user
  • 500 posts
  •  
    Bulgaria

Posted 03 July 2008 - 05:17 PM

Sure they are :)
Sync looks quite promising and exactly what may solve the delayed writes. Going to play with it a bit.
Thanks.

#30 steve6375

steve6375

    Platinum Member

  • Developer
  • 6996 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 11 December 2010 - 06:38 PM

You can install grub4dos to an NTFS partition under Vista/Win7 like this:

LockDismount.exe -force 1 grubinst --install-partition=0 (hd1) & touchdrv h:
Locking volume H: ...OK
Dismounting volume H: ...OK
Successfully locked and/or dismounted all volumes on PhysicalDrive1
Executing grubinst --install-partition=0 (hd1)...
Exit Code: 0
Unlocking all volumes...OK

LockDismount is from another post




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users