Hello dear guest!

Boot Land is a community driven site established since 2006 and focused on data recovery/backup boot disks, research of Windows 2000/XP/2003/Vista/7 install/deployment/antivirus tools, customizing Windows PE systems and even learning how to recover 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

5 Pages V   1 2 3 > »   
Reply to this topic
 grubinst.exe- write failed- Vista & NTFS bootsector
post Jun 13 2009, 01:33 PM
Post #1
ilko
Frequent Member   ***
Group: Advanced user

  Joined: 27-May 07
Posts: 231
Thank(s): 12


Bulgaria


Just got a chance to play a bit with such system, where grubinst.exe fails to write bootsector on NTFS formatted partition.
OS is Vista 32bit SP2.


CMD is run as administrator, writing grub4dos MBR to the same disk is successful, so is writing BS to FAT32 partition on the same disk:

QUOTE
C:\Users\mute\Desktop\files\grub4dos>grubinst -v -l (hd1)
Partition list
# id base leng
0 0C 3F 7AFFC1 (3936M)

C:\Users\mute\Desktop\files\grub4dos>grubinst -v (hd1,0)
Start sector: 0x3F
Image type: FAT32
Install mode

C:\Users\mute\Desktop\files\grub4dos>
Grub4dos bootsector is written indeed.

Changing "optimize for removal" / "optimize for performance" did not help.
I have never experienced such behavior on XP SP2/3.

Any help with this, please?


+Quote Post
post Jun 13 2009, 05:36 PM
Post #2
steve6375
Frequent Member   ***
Group: Developer

  Joined: 31-August 08 From: UK

Posts: 145
Thank(s): 53


United Kingdom


Run as Administrator ???


--------------------
Steve

Try RMPrepUSB for partitioning, formatting and making bootable your USB Flash Drive under Windows (supports FAT16/FAT32/NTFS, MSDOS/FreeDOS/XP/Vista, boot as Hard disk or floppy disk).
+Quote Post
post Jun 13 2009, 06:09 PM
Post #3
ilko
Frequent Member   ***
Group: Advanced user

  Joined: 27-May 07
Posts: 231
Thank(s): 12


Bulgaria


QUOTE (steve6375 @ Jun 13 2009, 10:36 AM) *
Run as Administrator ???

rolleyes.gif
QUOTE (ilko @ Jun 13 2009, 06:33 AM) *
...CMD is run as administrator...




+Quote Post
post Jun 13 2009, 06:42 PM
Post #4
steve6375
Frequent Member   ***
Group: Developer

  Joined: 31-August 08 From: UK

Posts: 145
Thank(s): 53


United Kingdom


QUOTE (ilko @ Jun 13 2009, 06:09 PM) *
rolleyes.gif

Is the system BIOS option for 'Virus Protect' enabled? This prevents write to the first track?


--------------------
Steve

Try RMPrepUSB for partitioning, formatting and making bootable your USB Flash Drive under Windows (supports FAT16/FAT32/NTFS, MSDOS/FreeDOS/XP/Vista, boot as Hard disk or floppy disk).
+Quote Post
post Jun 13 2009, 07:06 PM
Post #5
ilko
Frequent Member   ***
Group: Advanced user

  Joined: 27-May 07
Posts: 231
Thank(s): 12


Bulgaria


steve6375, I appreciate your replies, but I must quote myself again :

QUOTE (ilko @ Jun 13 2009, 06:33 AM) *
...writing grub4dos MBR to the same disk is successful, so is writing BS to FAT32 partition on the same disk:
....
Grub4dos bootsector is written indeed...

BIOS would not be relevant, it's something to do with NTFS BS and Vista/7, and grubinst failing to write the BS under those circumstances.
+Quote Post
post Jun 13 2009, 07:18 PM
Post #6
steve6375
Frequent Member   ***
Group: Developer

  Joined: 31-August 08 From: UK

Posts: 145
Thank(s): 53


United Kingdom


QUOTE (ilko @ Jun 13 2009, 07:06 PM) *
steve6375, I appreciate your replies, but I must quote myself again :


BIOS would not be relevant, it's something to do with NTFS BS and Vista/7, and grubinst failing to write the BS under those circumstances.


Vista locks the volume for absolute sector writes, but usually it is the FS area and not the VBR. So Vista will not let you write to any sector which has a mounted volume - but I am a sure that that the boot sectors would be writeable (at least in Vista SP1).

You could try a hard disk sector editor and read a sector and then write it back again.

??
S


--------------------
Steve

Try RMPrepUSB for partitioning, formatting and making bootable your USB Flash Drive under Windows (supports FAT16/FAT32/NTFS, MSDOS/FreeDOS/XP/Vista, boot as Hard disk or floppy disk).
+Quote Post
post Jun 13 2009, 08:06 PM
Post #7
ilko
Frequent Member   ***
Group: Advanced user

  Joined: 27-May 07
Posts: 231
Thank(s): 12


Bulgaria


QUOTE (steve6375 @ Jun 13 2009, 12:18 PM) *
...You could try a hard disk sector editor and read a sector and then write it back again.
Since FAT32 works just fine on the same system I would not play with disk editor.

I use grubinst in WinSetupFromUSB to put grub4dos bootsector. Only some people report issues like this, and today I managed to get remote access to one of those installations to gather the data above.

I hope Bean123, the author of grubinst, will have a solution, and also hope it might help him in case fbinst uses similar approach when writing to USB sticks.
+Quote Post
post Jun 13 2009, 08:42 PM
Post #8
steve6375
Frequent Member   ***
Group: Developer

  Joined: 31-August 08 From: UK

Posts: 145
Thank(s): 53


United Kingdom


If you use a disk editor to read then write sector 0 under Vista it will work. If you use a disk editor to do the same to sector 50000 it will fail if that sector is part of the mounted OS volume.
If you tried sector 3f (63) and then say sector 7f, etc. you might find out just where Vista starts to deny write access. It could be that when formatted as NTFS, the sector(s) that grubinst tries to write to is protected, but when formatted as FAT32 - the same sector is writeable.



--------------------
Steve

Try RMPrepUSB for partitioning, formatting and making bootable your USB Flash Drive under Windows (supports FAT16/FAT32/NTFS, MSDOS/FreeDOS/XP/Vista, boot as Hard disk or floppy disk).
+Quote Post
post Jun 14 2009, 07:58 AM
Post #9
tsetya
Member   **
Group: Members

  Joined: 1-April 09
Posts: 34
Thank(s): 4


Indonesia


i had same experienced, using grubinst to install grub4dos to NTFS partition boot sector failed if there is vista partition on the disk.
then using grub4dos toolbox to install to the same partition with no problem.
+Quote Post
post Jun 14 2009, 12:46 PM
Post #10
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,224
Thank(s): 547


Italy


@ilko

Read this:
http://www.boot-land.net/forums/index.php?showtopic=7328

It seems like bootlace.com can be used now under NT based systems.

jaclaz


--------------------
+Quote Post

5 Pages V   1 2 3 > » 
Reply to this topic
2 User(s) are reading this topic ()


  

Collapse

  Topic Replies Topic Starter Views Last Action
No new Pinned: Topic has attachmentsVistaPE Leopard Beta II
Agust 31,2009
126 Max_Real Qnx 19,884 7th February 2010 - 04:13 PM
Last post by: Max_Real Qnx
No New Posts VistaPE - Safely remove USB device?
5 blued 225 7th February 2010 - 12:24 PM
Last post by: Wonko the Sane
No New Posts VistaPE with Java Runtime Environment
4 Nesim Nerse 205 5th February 2010 - 09:22 PM
Last post by: WetHat
No New Posts Pinned: Topic has attachmentsVistaPE Script on Win7PE Project Post here ONLY reports of working setups!
This topic was created to identify VistaPE Script running on Win7PE
5 ludovici 7,718 29th January 2010 - 09:47 PM
Last post by: PaPeuser
No new Pinned: Topic has attachmentsVistaPE updated package RC1a
100 JonF 15,426 29th January 2010 - 06:31 AM
Last post by: dera