[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RAW-Images mit Dateisystem mögl.???



Dirk Abe <newsletter@abe1.de> writes:

> Am Samstag, 19. Februar 2005 22:59 schrieb Bernd Schwendele:
>> Hallo Liste,
> [...]
>> Wenn ich nun ein solches RAW-Image erstellt habe, kann ich das dann
>> auch irgendwie bspw. mit FAT32 formatieren? Sorry, ich hab' da echt
>> keinen Plan! Gruß
>
> Wenn ich mich nicht irre, dann ging es, indem Du das Image an ein 
> Loop-Device bindest (-> losetup) und anschließend mit mkfs-irgendwas 
> formatierst. Danach das Loop einfach mounten.
> (Hoffe ich erzähle jetzt kein Mist!)

Nur ein wenig.  Das beschriebene Verfahren funktioniert mit
Partitionen, nicht mit kompletten Disk Images.  Da kommen dann Offsets
ins Image dazu, und die von Hand zu berechnen ist kein Vergnügen.  Ich
habe ein Skript hier (eine Vorversion hatte ich auf der Qemu-Liste):

| $ mount-hd-image --help
| Syntax: mount-hd-image [-t type] raw_image mountpoint [ mount-opts ]
| Function:  mount all partitions of a complete hd image
|            optionally create a new one
| opts:
|         -c size   create image, run fdisk on it and create filesystems
|                   on all partitions. size may be followed by k, M, or G.
|                   Implies -f
|         -f        run fdisk on raw_image
|         -m type   make a filesystem on all partitions
|         -C        use captive-ntfs for NTFS partitions
|         -P        (Paragon) use ufsd for NTFS partitions
|         -v        debug level (may be given multiple times)
|         -x        Script debug (set -x)

Natürlich ohne Garantie; bei Bedarf Mail.

Gruß,

 Heike



Reply to: