Jump to content











Photo
- - - - -

Commandline Help (Save disk contents as image file)

commandline

Best Answer v77 , 06 February 2023 - 01:16 PM

Not possible with ImDisk. However, Olof provides on its webpage a tool, rawcopy, that can do that:
http://www.ltr-data.....html/#CmdUtils

 

Check the options with: rawcopy -?
Of course, you need administrative privileges.
For instance, the following command copies a ramdisk R: into a file D:\disk.img:
rawcopy -lvr -m:1M \\.\R: D:\disk.img
For good performances, I recommend -r and -m:1M. Using a bigger buffer is not very useful.

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 Buyukcaglar

Buyukcaglar
  • Members
  • 1 posts
  •  
    Turkey

Posted 06 February 2023 - 11:58 AM

Hi,

 

Although I have checked the commandline reference (which is thoroughly provided), I could not figure out how to perform same functionality when I right click a drive and select "Save disk contents as image file" from the commandline.

 

Any help would be appreciated.

Thanks,

Onur



#2 v77

v77

    Silver Member

  • Team Reboot
  • 602 posts
  •  
    France

Posted 06 February 2023 - 01:16 PM   Best Answer

Not possible with ImDisk. However, Olof provides on its webpage a tool, rawcopy, that can do that:
http://www.ltr-data.....html/#CmdUtils

 

Check the options with: rawcopy -?
Of course, you need administrative privileges.
For instance, the following command copies a ramdisk R: into a file D:\disk.img:
rawcopy -lvr -m:1M \\.\R: D:\disk.img
For good performances, I recommend -r and -m:1M. Using a bigger buffer is not very useful.


  • Brito likes this

#3 Buyukcaglar

Buyukcaglar
  • Members
  • 1 posts
  •  
    Turkey

Posted 06 February 2023 - 02:48 PM

Thank you for your reply.

Cheers.



#4 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 07 February 2023 - 08:57 AM

Only for the record it is not always the same-same thing.

 

The "Save disk contents as image file" should have the option to add a virtual MBR (and hidden sectors before) if the image is that of a hard disk partition.

 

The rawcopy of course will only image the mounted volume.

 

See this:

 

http://reboot.pro/in...showtopic=19693

 

So, it depends if you want to save the image "as is" or "as it should be" (for re-use elsewhere), if it to be re-used in Imdisk (so you need not the MBR) it is fine.

 

:duff:

Wonko


  • Brito likes this

#5 wendy

wendy

    Frequent Member

  • Lady
  • 290 posts
  • Location:one mile from the QR main line
  • Interests:Operating systems, Weights and Measures, Geometry
  •  
    Australia

Posted 18 February 2023 - 01:12 PM

There are a number of disk image utilities that run under dos and the win32 dos.

 

My main tool here is IBM savedskf and loaddskf utilities.  dskimage does this too. 

 

a search for "dos floppy image" is quite useful.

 

If you want to use a range of programs on your floppy disk image, make sure that there is no added bits and pieces, or replaced boot sectors.







Also tagged with one or more of these keywords: commandline

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users