Mounting Disk Images

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
t0xic
Member
Member
Posts: 216
Joined: Sat May 05, 2007 3:16 pm
Location: VA
Contact:

Mounting Disk Images

Post by t0xic »

Hey everyone,

I'm using windows currently, and I am wondetring how to mount floppy images.
I now there are tools out there to mount floppy images, but they all require exactly 1.44, 2.88, etc disk images. My kernel is just now getting to be about 20kB so I was wondering how I could make it into 1.44mB or get a different tool

Thanks

--t0xic
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Post by mathematician »

Assuming you want to mount it in something like Bochs, get a utility like partcopy, which reads the floppy (all of it) and writes it out to a file on the hard disk
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Try virtual floppy drive. It will create an image, mount it as drive b: allowing you to copy on your kernel, and you can directly use drive b: as your boot drive in Bochs, VPC etc...
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

Well, if you use Bochs' disk image creator you get an exact size. Load using Virtual Floppy drive, put your data onto it, free 1.44 MB disk image!

Once you hit hard drive images, I suggest using filedisk. I use it for all my hard drive disk image manipulation, and it works well.
Ztane
Posts: 9
Joined: Sun Jan 14, 2007 12:43 pm
Location: Oulu, Finland

Post by Ztane »

Try FileDisk. It not only supports floppy disks but hard disks too http://www.acc.umu.se/~bosse/. I have used it successfully to mount various images in Windows created by a hosted edition of a certain embedded OS.

EDIT: creating empty images is easy with cygwin tools - you can use dd to read actual floppies and hard disks and then convert them to disk images. What is more, you can use mtools to create FAT floppies.
User avatar
t0xic
Member
Member
Posts: 216
Joined: Sat May 05, 2007 3:16 pm
Location: VA
Contact:

Post by t0xic »

Thanks,

I had been using filedisk but just had problems getting a 1.44 mb floppy image. I found that bfi (build floppy image) works great. It'll install a custom bootloader or files for you

Thanks again for your help

--t0xic
Post Reply