Jump to content











Photo
- - - - -

bug report - grub4dos unmap command freezes/hangs grub4dos


  • Please log in to reply
7 replies to this topic

#1 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 4 weeks ago

I have posted a bug report for this.

 

I just wondered if any else has experienced this issue (basically strange issues when using map command on one particular fragmented file)?

 

I am also looking for a way to create fragmented files as I need to create an ISO that has between 15 and 20 fragments.

 

I have found that using the copy /b command can cause fragmentation

e.g.

 

copy /b krd.iso+ss.txt krdfrag.iso

 

but the file is not fragmented enough as I really need to test 15 through to 20 fragments per file (I have tried more + files too).

Downloading from Chrome\Win10 directly to the USB drive is another way but it often creates too many fragments!



#2 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 2794 posts
  • Location:Nantes - France
  •  
    France

Posted 4 weeks ago

There may be some low level windows API to achieve this.

 

Or go the dirty/manual way by writing your blocks at arbitrary positions on your disk and then updating your MFT accordingly.



#3 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 4 weeks ago

 

I am also looking for a way to create fragmented files as I need to create an ISO that has between 15 and 20 fragments.

And did you look very hard?

 

Like, you know, here ;) :

http://reboot.pro/to...h-wow64-wanted/

 

 

What do you think could be the features of a tool called "myfragmenter.exe"? :dubbio:

 

 

 

C:\>MyFragmenter.exe --help
MyFragmenter v1.2, 2008 J.C. Kessels

MyFragmenter.exe [-p NNN] [-s NNN] [-i] [-h] filename(s)
-p NNN Split file into NNN fragments. Default is 10 fragments. Specify 0 o
r 1 to defragment.
-s NNN When a new file is created then the size will be NNN kilobytes. Def
ault is 1000 kilobyte.
-i Information only. Do not fragment or create the file.
-h Show this help.
filename(s) The file(s) to be fragmented. If a file does not yet exist then a new file will be created containing random data.

 

:duff:

Wonko



#4 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 2794 posts
  • Location:Nantes - France
  •  
    France

Posted 4 weeks ago

Nice tip about myfragmenter : this nice little tool keeps coming back in discussions around extents/clusters.

 

About windows api, the device control FSCTL_MOVE_FILE IOCTL is one way to split a file into N clusters (and possibly the way myfragmenter achieves this).



#5 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 4 weeks ago

@Wonko - great find Mr. Finder!!!  :magic:

 

I have managed to make a file with 32 fragments which also freezes grub4dos and have updated the error report.

https://github.com/c...mment-541335124



#6 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 4 weeks ago

Good. :)
 
Tough from the data on your report it seems like no conclusion can be drawn, I mean you have two "same" files "diversely" fragmented but both into 19 segments and one is good and the other ones is not. :w00t:
 
I can understand that when the file is overly fragmented (more than n fragments) it would have issues, but with the same number of fragments it is "queer", unless there is also a factor with the single fragment(s) being over (or below) a given size. :dubbio:
 
In your first (not working) file, you seem like having a "huge" first chunk (like half of the size) followed by 18 small chunks, maybe that is part of the issue?
 
BTW, with reference to the suggestion to yaya "You will need to install - then find the MyFragmentor.exe file." and for the record, the MyDefrag-v4.3.1.exe is an InnoSetup installer, contents can be extracted with Uniextract (tested):
https://www.legroom....ware/uniextract
 
or (most probably, not tested) UniExtract2 :
https://github.com/B...tract2/releases
 
Also InnoUnp (just tested):
http://innounp.sourceforge.net/
 
Run as follows:
innounp.exe -t MyDefrag-v4.3.1.exe
 
will list all files, since the package is for both 32 bit and 64 bit there are two files listed:

...
#2 {app}\MyFragmenter,1.exe
#4 {app}\MyFragmenter,2.exe
...

 The 32 bit is the second one so:
innounp.exe -x MyDefrag-v4.3.1.exe {app}\MyFragmenter,2.exe
Output:
; Version detected: 5309 (Unicode)
#4 {app}\MyFragmenter,2.exe
Reading slice C:\dummy2\MyDefrag-v4.3.1.exe
Then you need to rename the MyFragmenter,2.exe in subfolder {app} to Myfragmenter.exe.
 
:duff:
Wonko

#7 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 4 weeks ago

Thanks - but yaya's English is not good (but much better than my Chinese!).



#8 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 4 weeks ago

Thanks - but yaya's English is not good (but much better than my Chinese!).


I believe he will anyways perfectly understand the command lines for innounp (should he want to avoid to install the mydefrag or the Uniextract).

:duff:
Wonko




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users