Jump to content











Photo
* * * * * 3 votes

BOOTICE: a boot sector manipulation utility [v0.78 released!]


  • Please log in to reply
254 replies to this topic

#51 shamurshamur

shamurshamur

    Frequent Member

  • Developer
  • 322 posts
  •  
    India

Posted 13 November 2009 - 07:10 AM

when i tried to write grub4dos to PBR of windows 7 partition there's an error message:
Error write sector 63:Access is denied.

I tried to run the bootice as administrator but no success.

#52 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 13 November 2009 - 09:31 AM

when i tried to write grub4dos to PBR of windows 7 partition there's an error message:
Error write sector 63:Access is denied.

I tried to run the bootice as administrator but no success.


try from pe . if you we at NT6 based OS.

#53 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 13 November 2009 - 10:25 AM

Thank you pauly. bootice is getting better and better.

#54 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 13 November 2009 - 11:11 AM

Thank you pauly. bootice is getting better and better.


it seems you know that 0.7.0 version is out with command line support . im waiting for pauly to come and release here .

#55 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 13 November 2009 - 11:32 AM

it seems you know that 0.7.0 version is out with command line support . im waiting for pauly to come and release here .


Why do you wait? :-) In the first post v0.7.0 is downloadable.

#56 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 13 November 2009 - 11:54 AM

Why do you wait? :-) In the first post v0.7.0 is downloadable.


ooh . i am sorry . i thought it is only available at wuyou . i keep tracking original topic there and read their conversations silently :drunk:

#57 shamurshamur

shamurshamur

    Frequent Member

  • Developer
  • 322 posts
  •  
    India

Posted 13 November 2009 - 12:53 PM

try from pe . if you we at NT6 based OS.

i tried from pe. working fine.
Is there any way i can run it from windows 7 for writing PBR.?

#58 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 13 November 2009 - 01:27 PM

i tried from pe. working fine.
Is there any way i can run it from windows 7 for writing PBR.?


no

#59 was_JFX

was_JFX

    Frequent Member

  • Advanced user
  • 483 posts
  •  
    Germany

Posted 13 November 2009 - 06:50 PM

1. Add commandline parameters support!

Thanks a lot :drunk: It's perfect ;)

#60 Pauly

Pauly

    Newbie

  • Members
  • 18 posts
  • Location:Chengdu
  •  
    China

Posted 15 November 2009 - 07:19 AM

i tried from pe. working fine.
Is there any way i can run it from windows 7 for writing PBR.?


Vista/7/2008 will protect $BOOT of the partition it booted from, so, you can only change it within other systems.

#61 was_jaclaz

was_jaclaz

    Finder

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

Posted 15 November 2009 - 09:48 AM

Vista/7/2008 will protect $BOOT of the partition it booted from, so, you can only change it within other systems.


Maybe this applies also to PBR? :)
http://www.boot-land...?...=8200&st=39

but I guess that putting offline the volume you booted from isn't going to work :) unless, maybe if you have a boot volume and a separate system one (which is still advised ;)).

:drunk:

jaclaz

#62 Pauly

Pauly

    Newbie

  • Members
  • 18 posts
  • Location:Chengdu
  •  
    China

Posted 15 November 2009 - 10:38 AM

but I guess that putting offline the volume you booted from isn't going to work :drunk: unless, maybe if you have a boot volume and a separate system one (which is still advised ;)).

jaclaz


I've tried to hide the system volume and delete its drive letter C:, and then tried to write PBR, but ... still, I got "Access denied" message, ha, that's not the way...

#63 was_jaclaz

was_jaclaz

    Finder

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

Posted 15 November 2009 - 03:05 PM

I've tried to hide the system volume and delete its drive letter C:, and then tried to write PBR, but ... still, I got "Access denied" message, ha, that's not the way...

No, hiding won't work. ;)

Have you checked the functions listed in the MSDN article mentioned? :drunk:

http://msdn.microsof...y/cc835968.aspx

jaclaz

#64 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 15 November 2009 - 04:44 PM

@Pauly

I have some suggestions for your excellent bootice utility.

1) Extra functions.

The well-known mbrfix utility has functions that can be listed here:
MbrFix.exe	  Copyright (C) 2004-2009 Systemintegrasjon AS

				http://www.sysint.no

Usage:

MbrFix /drive <num> { command } { /yes } { /verbose }



Commands&#58;

MbrFix /?								  Display help page and license

MbrFix /drive <num> driveinfo			  Display drive information

MbrFix /drive <num> drivesize			  Returns size in MB as return value

MbrFix /drive <num> listpartitions		 Display partition information

MbrFix /drive <num> savembr <file>		 Save MBR and partitions to file

MbrFix /drive <num> restorembr <file>	  Restore MBR and partitions from file

MbrFix /drive <num> fixmbr {/vista|/win7}  Update MBR to W2K/XP/2003 &#40;default&#41;,

										   Vista or Windows 7

MbrFix /drive <num> clean				  Delete all partitions on drive

MbrFix /drive <num> readsignature {/byte}  Read disk signature from MBR

MbrFix /drive <num> generatesignature	  Generate disk signature in MBR

MbrFix /drive <num> writesignature <bytes> Write disk signature in MBR

MbrFix /drive <num> readstate			  Read state from byte 0x1b2 in MBR

MbrFix /drive <num> writestate <state>	 Write state to byte 0x1b2 in MBR

MbrFix /drive <num> readdrive <startsector> <sectorcount> <file>

										   Save sectors from drive to file

MbrFix /drive <num> /partition <part> fixbootsector <os>

										   Update Boot code in boot sector

MbrFix /drive <num> /partition <part> getpartitiontype

										   Get partition type

MbrFix /drive <num> /partition <part> setpartitiontype <typenum>

										   Set partition type

MbrFix /drive <num> /partition <part> setactivepartition

										   Set active partition

MbrFix /drive <num> getactivepartition	 Get active partition

MbrFix volumeinformation driveletter	   Get volume information for partition

MbrFix flush {driveletter&#40;s&#41;}			  Flush files to disk for partition

MbrFix listpartitiontypes				  List partition types

Most of mbrfix functions are covered by bootice already, except the followings:
readsignature
generatesignature
writesignature

It would be nice to have these functions included.

2) Create grldr on Process PBR.
bootice has grldr.mbr built-in, and probably grldr too. On setting grub4dos as boot sector in PBR menu, could you add an option to create grldr file too (if not already exists) at the root of this partition?
At least for the Win32 version this should be possible. Currently one has to manually copy the grldr to the root of the partition.

3) Bootable version.
Currently bootice requires Win32 environment (full Windows, or WinPE) to run.
It would be really nice if bootice could be run in bootable mode (diskette .ima ou CD .iso).
Like GAG/PloP bootmanager that could be bootable and run or installed directly from bootable media.
Menus would be in text-mode of course, like text-mode Linux installers.

Advantages: bootice would then be an invaluable rescue tool. Example: some users have only one computer, and when their boot process is corrupted (MBR problem, RAW disk due to bad MBR, boot sector change by various Windows installations, Linux GRUB stage 1.5/2 problem after trying Linux then deleting Linux partitions...), they have few tools to easily recover.
They do not have a BartPE/WinPE ready, they cannot build it (unbootable machine). They do not have XP recovery console, nor XP/Vista/Win7 installation CD/DVD (case of notebooks that only have restoration DVD or recovery partition) to use fixboot/fixmbr or bootsect/bootrec.

If this is not possible, a second choice is the possibiliy to run bootice under DOS, with command line capability. So one can boot from DOS diskette/iso image and run bootice from the DOS prompt.

Thank you for listening.

#65 was_JFX

was_JFX

    Frequent Member

  • Advanced user
  • 483 posts
  •  
    Germany

Posted 21 November 2009 - 08:07 PM

Hi Pauly,

small bug report:

Setting Active partition through GUI will bring E/A error message sometimes, command line no problem

BOOTICE.EXE /DEVICE=H&#58; /pbr /install /type=ntldr /auto
May should set boot_file to the default NTLDR

BOOTICE.EXE /DEVICE=H&#58; /pbr /install /type=ntldr /boot_file=NTLDR /auto
will only write NTLD as boot_file

:cheers:

#66 Pauly

Pauly

    Newbie

  • Members
  • 18 posts
  • Location:Chengdu
  •  
    China

Posted 24 November 2009 - 11:30 AM

To ktp:
Thank you very much for your good advices! BOOTICE is only a GUI application, so it doesn't support too many command-line parameters :)

To JFX:
v0.71 fixes NTLDR boot_file bug, have a try!

#67 copain

copain

    Newbie

  • Members
  • 13 posts
  •  
    India

Posted 29 November 2009 - 08:10 AM

:thumbup: its really an amazing tool........great

#68 @thehop

@thehop

    Newbie

  • Members
  • 22 posts
  • Location:in-my-world.at
  • Interests:^L^
  •  
    Austria

Posted 30 November 2009 - 11:46 AM

Hi, first have a big thankyou for this smart Tool! :thumbup:
(sorry, for this "kind of english"!)

I use Bootice (6.6) to make my second HDD bootable, and now the
Boot-US Bootmanager show's this Partition Type (first time) as FAT16 > 32MB ??

The windows XP SP3 Explorer shows FAT32 - also the windows Drive Manager and Defrag.

My Question is: what means FAT16 >32MB
(on a 10 GB Primary Start Partition - on a 186 GB second drive)

FAQ: Risky or a harmless "cosmetic issue" ? :thumbup:

cheers

Report.txt

Platte 2: 186 GB, 24321 Zyl., 255 Köpfe, 63 Sek. (Boot-Platte 2)
ST3200021A (S/N 3LJ2235P, EIDE-Controller 2, Master)
===============================================================================
Part. LW-Bez. Typ ID Status Grösse
-------------------------------------------------------------------------------
#1 FAT16 >32MB 06 pri,aktiv 10.0 GB
#2 erw. Part. 0F erw 176 GB
#5 1L2_CDN (H:) NTFS 3.1 07 log 79.9 GB
#6 1L3_FM (I:) NTFS 3.1 07 log 79.9 GB
#7 1L4_OF_@ (J:) NTFS 3.1 07 log 16.3 GB
-------------------------------------------------------------------------------
Part. #1: Eintrag 0 in Partitionstabelle (Bereich 0..3)
Grösse = 10.0 GB, Platten-Position = 31 KB bis 10.0 GB
Start C/H/S = 0/1/1, Ende C/H/S = 1023/254/63 (Part.-Tabelle)
Start C/H/S = 0/1/1, Ende C/H/S = 1305/254/63 (effektiv)
rel. Sek. = 63, Anzahl Sek. = 20980827 (Part.-Tabelle)
Start LBA = 63, Anzahl Sek. = 20980827 (effektiv)

Part. #2: Eintrag 1 in Partitionstabelle (Bereich 0..3)
Grösse = 176 GB, Platten-Position = 10.0 GB bis 186 GB
Start C/H/S = 1023/254/63, Ende C/H/S = 1023/254/63 (Part.-Tabelle)
Start C/H/S = 1306/0/1, Ende C/H/S = 24320/254/63 (effektiv)
rel. Sek. = 20980890, Anzahl Sek. = 369735975 (Part.-Tabelle)
Start LBA = 20980890, Anzahl Sek. = 369735975 (effektiv)

Part. #5: Eintrag 0 in Partitionstabelle (Bereich 0..3)
Grösse = 79.9 GB, Platten-Position = 10.0 GB bis 90.0 GB
Start C/H/S = 1023/254/63, Ende C/H/S = 1023/254/63 (Part.-Tabelle)
Start C/H/S = 1306/1/1, Ende C/H/S = 11748/254/63 (effektiv)
rel. Sek. = 63, Anzahl Sek. = 167766732 (Part.-Tabelle)
Start LBA = 20980953, Anzahl Sek. = 167766732 (effektiv)

Part. #6: Eintrag 0 in Partitionstabelle (Bereich 0..3)
Grösse = 79.9 GB, Platten-Position = 90.0 GB bis 170 GB
Start C/H/S = 1023/254/63, Ende C/H/S = 1023/254/63 (Part.-Tabelle)
Start C/H/S = 11749/1/1, Ende C/H/S = 22191/254/63 (effektiv)
rel. Sek. = 63, Anzahl Sek. = 167766732 (Part.-Tabelle)
Start LBA = 188747748, Anzahl Sek. = 167766732 (effektiv)

Part. #7: Eintrag 0 in Partitionstabelle (Bereich 0..3)
Grösse = 16.3 GB, Platten-Position = 170 GB bis 186 GB
Start C/H/S = 1023/254/63, Ende C/H/S = 1023/254/63 (Part.-Tabelle)
Start C/H/S = 22192/1/1, Ende C/H/S = 24320/254/63 (effektiv)
rel. Sek. = 63, Anzahl Sek. = 34202322 (Part.-Tabelle)
Start LBA = 356514543, Anzahl Sek. = 34202322 (effektiv)



#69 was_jaclaz

was_jaclaz

    Finder

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

Posted 30 November 2009 - 12:25 PM

The windows XP SP3 Explorer shows FAT32 - also the windows Drive Manager and Defrag.

My Question is: what means FAT16 >32MB
(on a 10 GB Primary Start Partition - on a 186 GB second drive)

FAQ: Risky or a harmless "cosmetic issue" ? :rofl:

Report.txt

[font="Tahoma"][size=1]Platte 2: 186 GB, 24321 Zyl., 255 Köpfe, 63 Sek. (Boot-Platte 2)
ST3200021A (S/N 3LJ2235P, EIDE-Controller 2, Master)
===============================================================================
Part. LW-Bez. Typ ID Status Grösse
-------------------------------------------------------------------------------
#1 FAT16 >32MB 06 pri,aktiv 10.0 GB
#2 erw. Part. 0F erw 176 GB
#5 1L2_CDN (H:) NTFS 3.1 07 log 79.9 GB
#6 1L3_FM (I:) NTFS 3.1 07 log 79.9 GB
#7 1L4_OF_@ (J:) NTFS 3.1 07 log 16.3 GB
-------------------------------------------------------------------------------

Well, we have a problem. :thumbup:

There are only two possible cases:
  • in the MBR the partition type is marked 06 (which does mean FAT16>32Mb)
  • in the MBR the partition type is marked 0B or 0C (which do mean FAT32)

http://www.win.tue.n...on_types-1.html

The max limit for a FAT16 partition is "standard" 2 Gb, and with "UN-standard" cluster size of 64Kb, 4 Gb.

I.e. it CANNOT exist a 10 GB partition FAT 16.

Is it possible that for some reason the MBR bears a "wrong" 06 and Windows "ignores" it recognizing (correctly) the partition as FAT32 from the filesystem?

In any case the MBR needs to be corrected.

You are co-booting grub4dos, right? :thumbup:

Try issuing from grub4dos a
root &#40;hd1,0&#41;
[ENTER]
command and report what it says.

Or use a hex disk editor or a partition table editor to check what is written in the Partition Type of first entry.

Beeblebrox (page unfortunatley lost, but available through the Wayback Machine):
http://students.cs.byu.edu/~codyb/
http://web.archive.o...bbdownload.html
http://web.archive.o...broxntsetup.zip
http://web.archive.o...broxntsetup.zip

Is suited for this, or alternatively tinyhexer:
http://www.boot-land...?showtopic=8734

:rofl:

jaclaz

#70 @thehop

@thehop

    Newbie

  • Members
  • 22 posts
  • Location:in-my-world.at
  • Interests:^L^
  •  
    Austria

Posted 30 November 2009 - 12:59 PM

Hello , I have only Windows and Boot-US!

Thanks for the Links! - however - the (old) Paragon 5.6 Partitioning Tool
I use has an Hexeditor nearby - but I take the simpler HDHacker
- both shows (MSDOS5.0) FAT32 (twice entries 0 & 1).

When I now try to change the Partition ID to 0B or 0C , Paragon says
this destroy the Boot capability ? hm, hm ... and what now? :thumbup:

bye

EDIT: It's an Intel Value PC with own Bootmenü-Bios - maybe a reason?
The second HDD was the System-HDD of my now defective Main-PC.

#71 was_jaclaz

was_jaclaz

    Finder

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

Posted 30 November 2009 - 01:28 PM

Hello , I have only Windows and Boot-US!


Well, if you have to losen a torx T6 screw, you need a torx T6 screwdriver :thumbup:: a hammer won't do, though it's generally speaking a very useful tool.

I gave you links to two easy to use tools to just change a single byte in the MBR.

Use one of them, if you don't have your favourite EQUIVALENT tool.

All "better" more complex tools may do "automagically" some other actions that may lead to more problems.

All you have to do is change the "06" (if there is "06" in the MBR) to either "0B" or "0C", and nothing else.

The worst thing that will happen, using a simple tool, it would be that the drive doesn't boot, and all you will have to do would be to revert the change.

I am not familiar with Paragon Partition Manager and it's hex editor, it is very possible that what you experienced is just a warning, and it is as well likely that that tool will automagically change something else, cannot say.

You can also use MBRFIX:
http://www.sysint.no...ting/mbrfix.htm
MbrFix /drive 1 /partition 1 getpartitiontype
should give you 06
MbrFix /drive 1 /partition 1 setpartitiontype 0B
should set it "right" (I am assuming that your drive is second one, starting from 0)

More tools verified and confirmed to be working:
http://mirror.href.c...otToolsRefs.htm


jaclaz

#72 @thehop

@thehop

    Newbie

  • Members
  • 22 posts
  • Location:in-my-world.at
  • Interests:^L^
  •  
    Austria

Posted 30 November 2009 - 02:58 PM

Hello again,

Yes, my "Favortite Tool" is still the 5.6 (2003 Version) from Paragon's Partition Manager - small ... and a matching solution for "occasionally, amateurish selfsupports" :thumbup:

Thanks for the Links, much interesting Stuff!

conclusion: I changed the Part ID to 0C (FAT32 LBA) ... and - it fits. :rofl:

good bye so far :thumbup:

EDIT: FYI & Computer Museum ... :rofl:

http://support.micro...kb/151414/en-us

The four values used by Windows 95 that Windows NT does not recognize are as follows:
0x0B Primary Fat32 Partitions up to 2047 GB
0x0C Same as 0x0B, uses Logical Block Address Int 0x13 extensions
0x0E Same as 0x06, uses Logical Block Address Int 0x13 extensions
0x0F Same as 0x05, uses Logical Block Address Int 0x13 extensions

The FAT partition types that Windows NT version 3.X and 4.0 can recognize are:
0x01 Fat12 < 10 megabytes
0x04 Fat16 < 32 megabytes
0x06 Fat16 > 32 megabytes
0x05 Extended (may be FAT, HPFS or NTFS)


List of partition identifiers for PCs http://www.win.tue.n...on_types-1.html



#73 was_jaclaz

was_jaclaz

    Finder

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

Posted 30 November 2009 - 05:47 PM

conclusion: I changed the Part ID to 0C (FAT32 LBA) ... and - it fits. :thumbup:


Good. :thumbup:

Now your report should be checked by Pauly at next occasion, to check if it is actually a problem within BootIce or it was simply something that happened to you because of something else.

:rofl:

jaclaz

#74 ireneuszp

ireneuszp

    Frequent Member

  • Advanced user
  • 191 posts
  •  
    Poland

Posted 01 January 2010 - 01:06 PM

BOOTICE v0.72:
http://bbs.wuyou.com...=57...=1&page=1

&#9670; 2009.12.26&#58;

&#9678; &#26356;&#26032; Grub4Dos &#33267; 0.4.5 2009-12-23 &#29256;&#26412;,&#25454;&#35828;&#35299;&#20915;&#20102; GRLDR.MBR &#25628;&#32034; FAT16 &#20998;&#21306;&#26102;&#27515;&#26426;&#30340;&#38382;&#39064;;

&#9678; &#26356;&#26032; SYSLINUX &#33267; 3.8.4 2009-12-18 &#29256;&#26412;;

&#9678; &#26356;&#26032; PLoP Boot Manager &#33267; 5.0.6 2009-12-22 &#29256;&#26412;&#12290;

:)

#75 ireneuszp

ireneuszp

    Frequent Member

  • Advanced user
  • 191 posts
  •  
    Poland

Posted 17 January 2010 - 02:30 PM

New tool :confused1:
XORLDR
http://bbs.wuyou.net....php?tid=157812

2010.1.14
English GUI added

http://bbs.wuyou.net...t.php?aid=77459

:rolleyes:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users