InfoLogiciel = ImDisk = Disquettes virtuelles

librequetucrois - 27 janv. 2012 à 20:45
 librequetucrois - 29 janv. 2012 à 02:39
Bonjour à tous ; ajout d'un logiciel sur CCM ; merci :

Regroupement des infos que j'ai pu trouver pouvant m'être utile ...

En association avec ce sujet afin d'écrire en ram disque plutôt que sur le disque :

POC Download avec Hash+Taille => GégènBinaire | CommentCaMarche :
http://www.commentcamarche.net/forum/affich-24282430-poc-download-avec-hash-taille-gegenbinaire

=>

Tools and utilities for Windows :
http://www.ltr-data.se/opencode.html/#ImDisk

ImDisk Virtual Disk Driver
Latest version 1.5.3 built 14 Nov 2011

Download screenshot :
http://www.ltr-data.se/files/imdisk_screenshot.gif

Download ImDisk install package :
http://www.ltr-data.se/files/imdiskinst.exe (x86 + x64)

Windows NT/2000/XP/2003/Vista/2008

An additional driver, awealloc, in this install package supports memory allocation beyond 4 GB limit on 32 bit Windows through address window extension, AWE.

64 bit compatibility : 64-bit versions share source code with the 32-bit version. All features and most limitations are the same in the 64-bit and 32-bit versions. One notable difference however is that the 64-bit versions do not have any practical size limits for RAM disks. 64 bit drivers are now digitally signed with a certificate trusted by Microsoft. This means that ImDisk now works Windows Vista, Windows Server 2008 and Windows 7 even without running it testsigning mode.

* Il y a un bug d'affichage avec les noms longs pour enregistrer l'image.
* La sélection sur toute la ligne serait plus confortable.
* La largeur AUTO des colonnes peut être améliorée.
* Le choix de la lettre à la main n'est pas pratique.
* Il n'y a pas d'aide (infos-bulles au moins).

Download devio tool for FreeBSD :
http://www.ltr-data.se/files/devio.bz2

Download devio tool for Windows :
http://www.ltr-data.se/files/devio.exe

The ImDisk driver supports forwarding I/O requests to third-party image file format handlers or to services on other computers on the network. This makes it possible to boot a machine with NTFS partitions with a Live-CD and use the included  devio tool to let ImDisk on another computer running Windows on the network mount the NTFS partition on the machine with a faulty NTFS partition. This way you can recover information and even run chkdsk on drives on machines where Windows does not boot. There are also instructions about how to use devio under Windows on Claus Valca's blog = http://grandstreamdreams.blogspot.com/2009/08/devio-remote-drive-access-and.html .

FAQs and How-Tos - reboot.pro :
http://reboot.pro/15593/

"Users of mdconfig in FreeBSD will probably be familiar with the command line syntax of imdisk.exe."

Systèmes de fichiers réseaux, en mémoire et sauvegardés sur fichier :
http://www.freebsd.org/doc/fr/books/handbook/disks-virtual.html

mdconfig(8) :
http://www.freebsd.org/cgi/man.cgi?query=mdconfig&sektion=8

ImDisk commandline script to create/mount RamDisk - reboot.pro :
http://reboot.pro/2425/ (FORUM)

Scripted ISO mounting? - reboot.pro :
http://reboot.pro/16233/ (FORUM)

( http://reboot.pro/index.php?app=core&module=attach&section=attach&attach_id=13094 )

Digital Forensics - Forums - General Discussion - General Discussion - Mounting an image :
http://www.forensicfocus.com/index.php?name=Forums&file=viewtopic&p=6518434 (Informations usage !)

Aide pour l'option "Image file offset (for non-raw disk image file formats)" ...

If the "dd image" is that of a "whole" hard disk, you need to supply IMDISK the correct offset to the bootsector of the partition you want to mount, making it skip the MBR+hidden sectors. On most of modern hard disks, geometry is set to nx255x63, so the first partition is 63 sectors away from the beginning. Consequently, you need to tell IMDISK to have an "Image file offset" of 63 and set the "Unit of image offset" as blocks, or set "Image file offset" to 63x512=32256 and set the "Unit of image offset" as bytes. If the volume you want to mount is second or further partition, you need to find it's start (the bootsector) and "feed" it to IMDISK.

VDK, on the other hand, parses the contents of the MBR and mounts partition(s) correctly.

ImDisk Usage :
http://diddy.boot-land.net/firadisk/files/imdisk.htm (Informations usage !)

Sur mon pc Windows 7 x64 ; j'ai testé seulement l'interface graphique :

Il n'y a pas d'aide, du moins pas avant que j'eus trouvé des infos sur le web ...

- - - -
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Users\%USERNAME%>imdisk /?
Control program for the ImDisk Virtual Disk Driver.
For copyrights and credits, type imdisk --version

Syntax:
imdisk -a -t type -m mountpoint [-n] [-o opt1[,opt2 ...]] [-f|-F file]
       [-s size] [-b offset] [-v partition] [-S sectorsize] [-u unit]
       [-x sectors/track] [-y tracks/cylinder] [-p "format-parameters"]
imdisk -d|-D [-u unit | -m mountpoint]
imdisk -R -u unit
imdisk -l [-u unit | -m mountpoint]
imdisk -e [-s size] [-o opt1[,opt2 ...]] [-u unit | -m mountpoint]

-a      Attach a virtual disk. This will configure and attach a virtual disk
        with the parameters specified and attach it to the system.

-d      Detach a virtual disk from the system and release all resources.
        Use -D to force removal even if the device is in use.

-R      Emergency removal of hung virtual disks. Should only be used as a last
        resort when a virtual disk has some kind of problem that makes it
        impossible to detach it in a safe way. This could happen for example
        for proxy-type virtual disks sometimes when proxy communication fails.
        Note that this does not attempt to dismount filesystem or lock the
        volume in any way so there is a potential risk of data loss. Use with
        caution!

-e      Edit an existing virtual disk.

        Along with the -s parameter extends the size of an existing virtual
        disk. Note that even if the disk can be extended successfully, the
        existing filesystem on it can only be extended to fill the new size
        without re-formatting if you are running Windows 2000 or later and the
        current filesystem is NTFS.

        Along with the -o parameter changes media characteristics for an
        existing virtual disk. Options that can be changed on existing virtual
        disks are those specifying wether or not the media of the virtual disk
        should be writable and/or removable.

-t type
        Select the backingstore for the virtual disk.

vm      Storage for this type of virtual disk is allocated from virtual memory
        in the system process. If a file is specified with -f that file is
        is loaded into the memory allocated for the disk image.

file    A file specified with -f file becomes the backingstore for this
        virtual disk.

proxy   The actual backingstore for this type of virtual disk is controlled by
        an ImDisk storage server accessed by the driver on this machine by
        sending storage I/O request through a named pipe specified with -f.

-f file or -F file
        Filename to use as backingstore for the file type virtual disk, to
        initialize a vm type virtual disk or name of a named pipe for I/O
        client/server communication for proxy type virtual disks. For proxy
        type virtual disks "file" may be a COM port or a remote server
        address if the -o options includes "ip" or "comm".

        Instead of using -f to specify 'DOS-style' paths, such as
        C:\dir\image.bin or \\server\share\image.bin, you can use -F to
        specify 'NT-style' native paths, such as
        \Device\Harddisk0\Partition1\image.bin. This makes it possible to
        specify files on disks or communication devices that currently have no
        drive letters assigned.

-l      List configured devices. If given with -u or -m, display details about
        that particular device.

-n      When printing ImDisk device names, print only the unit number without
        the \Device\ImDisk prefix.

-s size
        Size of the virtual disk. Size is number of bytes unless suffixed with
        a b, k, m, g, t, K, M, G or T which denotes number of 512-byte blocks,
        thousand bytes, million bytes, billion bytes, trillion bytes,
        kilobytes, megabytes, gigabytes and terabytes respectively. The suffix
        can also be % to indicate percentage of free physical memory which
        could be useful when creating vm type virtual disks. It is optional to
        specify a size unless the file to use for a file type virtual disk does
        not already exist or when a vm type virtual disk is created without
        specifying an initialization image file using the -f or -F. If size is
        specified when creating a file type virtual disk, the size of the file
        used as backingstore for the virtual disk is adjusted to the new size
        specified with this size option.

        The size can be a negative value to indicate the size of free physical
        memory minus this size. If you e.g. type -400M the size of the virtual
        disk will be the amount of free physical memory minus 400 MB.

-b offset
        Specifies an offset in an image file where the virtual disk begins. All
        offsets of I/O operations on the virtual disk will be relative to this
        offset. This parameter is particularily useful when mounting a specific
        partition in an image file that contains an image of a complete hard
        disk, not just one partition. This parameter has no effect when
        creating a blank vm type virtual disk. When creating a vm type virtual
        disk with a pre-load image file specified with -f or -F paramters, the
        -b parameter specifies an offset in the image file where the image to
        be loaded into the vm type virtual disk begins.

        Specify auto as offset to automatically select offset for a few known
        non-raw disk image file formats. Currently auto-selection is supported
        for Nero .nrg and Microsoft .sdi image files.

-v partition
        Specifies which partition to mount when mounting a raw hard disk image
        file containing a master boot record and partitions.

        Specify number 1-4 to mount a partition from the primary partition
        table and 5-8 to mount a partition from an extended partition table.

-S sectorsize
        Sectorsize to use for the virtual disk device. Default value is 512
        bytes except for CD-ROM/DVD-ROM style devices where 2048 bytes is used
        by default.

-x sectors/track
        See the description of the -y option below.

-y tracks/cylinder
        The -x and -y options can be used to specify a synthetic geometry.
        This is useful for constructing bootable images for later download to
        physical devices. Default values depends on the device-type specified
        with the -o option. If the 'fd' option is specified the default values
        are based on the virtual disk size, e.g. a 1440K image gets 2
        tracks/cylinder and 18 sectors/track.

-p "format-parameters"
        If -p is specified the 'format' command is invoked to create a
        filesystem when the new virtual disk has been created.
        "format-parameters" must be a parameter string enclosed within
        double-quotes. The string is added to the command line that starts
        'format'. You usually specify something like "/fs:ntfs /q /y", that
        is, create an NTFS filesystem with quick formatting and without user
        interaction.

-o option
        Set or reset options.

ro      Creates a read-only virtual disk. For vm type virtual disks, this
        option can only be used if the -f option is also specified.

rw      Specifies that the virtual disk should be read/writable. This is the
        default setting. It can be used with the -e parameter to set an
        existing read-only virtual disk writable.

rem     Specifies that the device should be created with removable media
        characteristics. This changes the device properties returned by the
        driver to the system. For example, this changes how some filesystems
        cache write operations.

fix     Specifies that the media characteristics of the virtual disk should be
        fixed media, as opposed to removable media specified with the rem
        option. Fixed media is the default setting. The fix option can be used
        with the -e parameter to set an existing removable virtual disk as
        fixed.

saved   Clears the 'image modified' flag from an existing virtual disk. This
        flag is set by the driver when an image is modified and is displayed
        in the -l output for a virtual disk. The 'saved' option is only valid
        with the -e parameter.

        Note that virtual floppy or CD/DVD-ROM drives are always read-only and
        removable devices and that cannot be changed.

cd      Creates a virtual CD-ROM/DVD-ROM. This is the default if the file
        name specified with the -f option ends with either .iso, .nrg or .bin
        extensions.

fd      Creates a virtual floppy disk. This is the default if the size of the
        virtual disk is any of 160K, 180K, 320K, 360K, 640K, 720K, 820K, 1200K,
        1440K, 1680K, 1722K, 2880K, 123264K or 234752K.

hd      Creates a virtual fixed disk partition. This is the default unless
        file extension or size match the criterias for defaulting to the cd or
        fd options.

ip      Can only be used with proxy-type virtual disks. With this option, the
        user-mode service component is initialized to connect to an ImDisk
        storage server using TCP/IP. With this option, the -f switch specifies
        the remote host optionally followed by a colon and a port number to
        connect to.

comm    Can only be used with proxy-type virtual disks. With this option, the
        user-mode service component is initialized to connect to an ImDisk
        storage server through a COM port. With this option, the -f switch
        specifies the COM port to connect to, optionally followed by a colon,
        a space, and then a device settings string with the same syntax as the
        MODE command.

shm     Can only be used with proxy-type virtual disks. With this option, the
        driver communicates with a storage server on the same computer using
        shared memory block to transfer I/O data.

-u unit
        Along with -a, request a specific unit number for the ImDisk device
        instead of automatic allocation. Along with -d or -l specifies the
        unit number of the virtual disk to remove or query.

-m mountpoint
        Specifies a drive letter or mount point for the new virtual disk, the
        virtual disk to query or the virtual disk to remove. When creating a
        new virtual disk you can specify #: as mountpoint in which case the
        first unused drive letter is automatically used.

C:\Users\%USERNAME%>
- - - -

merci par avance

< config >Windows 7 x64 / Firefox 3.6.25< / config >

2 réponses

noctambule28 Messages postés 31791 Date d'inscription samedi 12 mai 2007 Statut Webmaster Dernière intervention 13 février 2022 2 858
Modifié par noctambule28 le 27/01/2012 à 22:11
Salut

Bien!
C'est bien ce que je me disais, pour accélérer il fallait faire les calculs en ram.

Tu as un algo du programme que tu veux faire ?

Ca permettrai de calculer approximativement le temps de création pour un iso windows xp (600Mo) par exemple en partant sur une base d'un proco à 3Ghz?
L'humour est la clé de voûte de la conscience.
0
librequetucrois
29 janv. 2012 à 02:39
slt

L'intérêt du module par rapport au concept proposé (poc) :

Même en ram, il faut un programme optimisé et en un seul bloc, oui :-))

L'outil ImDisk n'est pas portable ; pourrait-il le devenir ? Trop compliqué ?

Pour l'algo de ma part, ça peut être un peu long ; (full) help needed :

Je propose le concept, j'initie et j'ai proposé les outils que j'ai testé un peu ; ça fonctionne séparément et la main. Il me manque pleins de morceaux = du savoir faire du tacOtac dans le codage ; notamment pour les variables et le code d'itération hexadécimale. Je me dis, que je vais demander de l'aide séparément de ce sujet et de l'autre dans programmation, mais je me dis que je vais poiroter avec mes questions ou demandes (un expert convaincu de m'aider peut écrire pour améliorer un outil existant par exemple à moins qu'il sache modifier le code source et le proposer à l'auteur original) ; ça décourage mais plus par manque de connaissances innées et puis c'est un *petit projet* qui peut servir, oui, oui oui ;-) si on en voit les possibilités (réparer des fichiers, attaquer une BDE (chez soi à l'abri ; lire un hash et une taille de fichier c'est à priori plus simple et rapide), réduire les volumes d'échanges web, plus de sécurité ou moins selon l'usage et par qui), surtout si l'outil est rapide par la suite.

Un truc très difficile, c'est comment utiliser plusieurs outils pour lire et écrire dans le même fichier et le hasher à partir du même script sans que ça gêne ; pour éviter de ralentir le processus en ouvrant et en fermant le fichier traité, à moins que ça ne gêne pas.

L'intérêt du module par rapport à l'outil lui-même sur ccm :

J'ai un lecteur de disquettes maintenant ;-)) :

Si dans le titre, j'ai indiqué lecteur de disquettes, c'est parce que j'avais voulu trouver moi-même un moyen d'en avoir un (il y a des sujets sur ccm ouverts par d'autres) pour utiliser des images de disquettes dans la machine virtuelle Windows sous Windows 7 x64 par exemple, car ce n'est pas prévu d'origine sauf erreur. La plupart des autres logiciels de ce type servent à émuler des lecteurs cd et dvd, voir blue-ray et pas autres choses. Là, on peut émuler tout ce que l'on veut ou presque avec ImDisk.

J'ai acheté un vrai (réel) lecteur de disquettes usb pour mon pc portable sans lecteur de disquettes, au cas où, car j'ai des disquettes de TO9 lisibles sur les pc récents (...) et j'ai d'autres petits outils (ghost 2003, boot xp). J'ai fait en basic 128 (de mémoire) un mastermind qui marche bien dans un émulateur TO9 sous XP par exemple. Mais c'est mieux d'avoir un lecteur de disquettes virtualisé pour les machines virtuelles ; à voir à la longue ; l'utilité.

Ce logiciel comme les autres que j'ai trouvé serait bien sur ccm ; isolé ? :

Mais une faq ou astuce ccm parlant de tous ces logiciels et du poc en mieux présenté de ce que j'essaye de faire, serait bien, pour que des personnes expérimentés proposent mieux (principe de la pomme sur wikipedia = on donne à lire une base, mieux rédigée que ce que je tente de proposer et d'autres personnes sont censés à priori apporter leurs contributions ; je crois à la force de création des acteurs du web et autour du web = programmation). Faut un truc fonctionnel pour allécher les développeurs afin qu'ils proposent plus qu'un script avec plusieurs morceaux et lent.

Certains sites et logiciels peuvent n'être pas ou plus disponibles ailleurs, ccm peut aider à préserver les outils et les informations qui peuvent servir à quiconque. Il manque une section sur ccm pour des petits projets (poc), pas comme les sites de services : en mieux et plus ouvert, comme ccm.

merci
0