Jump to content











Photo
- - - - -

How change one byte in NTFS partition?


  • Please log in to reply
5 replies to this topic

#1 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 231 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, EFI, Coreboot, MS VirtualPC, VMware
  •  
    European Union

Posted 04 January 2016 - 06:04 PM

I need fix one byte (27th) in sector 63 (0x3f) on HDD after restore OS from image to HDD. If boot GRUB4DOS from USB stick then my HDD is (hd1) and USB is (hd0). To display sector 63 make this command:

cat --skip=26 --hex (hd1)63+1

I need change value hex 10 to F0

 

How do it?



#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 04 January 2016 - 06:36 PM

You can use this catedit.g4b (shameless plug ;)):

http://reboot.pro/to...ite-hex-values/

 

:duff:

Wonko



#3 steve6375

steve6375

    Platinum Member

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

Posted 04 January 2016 - 06:54 PM

cat --skip=26 --number=1 --length=1 --locate=\x10 --replace=\xf0 (hd1)63+1


#4 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 231 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, EFI, Coreboot, MS VirtualPC, VMware
  •  
    European Union

Posted 04 January 2016 - 08:06 PM

cat --skip=26 --number=1 --length=1 --locate=\x10 --replace=\xf0 (hd1)63+1

This not work and have:

Error 1: Filename must be either an absolute pathname or blocklist

OK, working after update G4D from 0.4.4 to 0.4.5c 2014-01-17 :good:

Thx.



#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 04 January 2016 - 08:19 PM

 

OK, working after update G4D from 0.4.4 to 0.4.5c 2014-01-17 :good:

Thx.

Well, that's anyway an obsolete version.

 

You would better use LATEST 0.4.5c , right now 2015-12-31:

http://grub4dos.chen....5c-2015-12-31/

 

:duff:

Wonko



#6 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 231 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, EFI, Coreboot, MS VirtualPC, VMware
  •  
    European Union

Posted 04 January 2016 - 09:30 PM

Well, that's anyway an obsolete version.
 
You would better use LATEST 0.4.5c , right now 2015-12-31:
http://grub4dos.chen....5c-2015-12-31/

I spent a lot of time testing G4D 0.4.5c 2014-01-17 eg. with WinVBlock and new version G4D not interest me until version I tested works without a problem. In this case I had an old USB stick and I did not pay attention that I have on it the old version G4D.
Similarly, the WinVBlock - I prefer the old version 0.0.1.8_(June-1-2010) because:

G4D 0.4.5c 2014-01-17 + WinVBlock 0.0.1.8_(June-1-2010) = success :-)

I tested also WinVBlock 0.0.1.8-DEV_(Feb-14-2011) but this is not stable and not work good with WinXP.

I have no intention nor the time to test newer and newer versions of G4D. Maybe someday :-)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users