Disk tools

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
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Disk tools

Post by Love4Boobies »

What tools do you guys use to make disk images when testing your OSes in emulators? When not booting via PXE, I use PARTCOPY but that will only allow me to cope with flat disk images. I know there are techiques like emulating floppies and so on but I think the most convenient thing would be to have a proper tool that would allow us to make disk images (not only for floppies) in various formats (flat, iso, vmdk, etc) and let us choose for instance what sectors we want where (e.g. MBR as the first sector for a vmdk image). If such an application could also understand several popular filesystems it would be the perfect tool. Is there such a thing?

EDIT: forgot to mention that I'm a Windows user.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: Disk tools

Post by bewing »

Norton Diskedit comes with Norton Utilities and works nicely for me. Other people here have had trouble running it, though.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Disk tools

Post by Combuster »

The main problem is that various images (floppy vs CD) are inherently used differently (CDs are write-once, floppies read-write) and therefore software dealing with them tend to follow the same approach.

still, on windows you can get away with mtools, mkisofs and dd (but you'll require cygwin and you only get FAT and iso9660 support that way)

Sounds like I need to start working again on vdisk
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
xlq
Member
Member
Posts: 36
Joined: Mon Dec 11, 2006 7:51 am

Re: Disk tools

Post by xlq »

On Linux I use flat disk images, loopback devices and mount:

Code: Select all

# /sbin/losetup -o<offset-of-first-partition> /dev/loop0 disk.img
# mount /dev/loop0 /mnt/image
and copy the kernel image onto it.

Back when I was using Windows, I remember using a rather dubious, but mostly functional, virtual disk driver, to achieve the same effect, but I can't remember what it was called, or where I got it from.
Marionette the flexible kernel
ru2aqare
Member
Member
Posts: 342
Joined: Fri Jul 11, 2008 5:15 am
Location: Hungary

Re: Disk tools

Post by ru2aqare »

xlq wrote:Back when I was using Windows, I remember using a rather dubious, but mostly functional, virtual disk driver, to achieve the same effect, but I can't remember what it was called, or where I got it from.
It probably was FileDisk, FileDisk64, VirtualDisk (or VirtualDisk for TC) or its clones...
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: Disk tools

Post by Creature »

Combuster wrote:The main problem is that various images (floppy vs CD) are inherently used differently (CDs are write-once, floppies read-write) and therefore software dealing with them tend to follow the same approach.
I agree, there should be some kind of 'Virtual CD Drive' that works exactly like Virtual Floppy Drive and lets you write and read freely from the CD. To emulators, it will just look like 'another CD-drive' while for OSDevers it's an invaluable tool as you can freely read and write your kernel as you please and you're not limited to 1.44 MB (or other floppy sizes). Sadly I don't know too much about making things like virtual drives and mounting so I'm useless.
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Disk tools

Post by Troy Martin »

Combuster wrote:Sounds like I need to start working again on vdisk
Please do :)
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: Disk tools

Post by i586coder »

Hi,

since my current OS still useing FAT-32 LFN (long file name),

i'm useing [ UltraISO ],because you can creat CD-iso,edit,remove
files & make it bootable easily

if you addopt FATxx fs i suggest you UltraISO

NOTE: UltraISO is Commercial,but you can download trial version :cry:

CheerS :mrgreen:
a.T.d
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Disk tools

Post by Love4Boobies »

I'm not looking for anything that would mount drives. If I want to distribute hard disk images to testers for instance, I'd have to make mount a virtual drive, format it, rewrite the boot sector and create an image for that drive. I'm looking for something that will let me work directly with disk images. If there's no such thing, I will write my own tool and share it with whoever needs it.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: Disk tools

Post by egos »

Love4Boobies wrote:What tools do you guys use to make disk images when testing your OSes in emulators?
fasm allows to make a disk image with any FS structure if you know this structure perfectly.

There are some tools for Windows (which I use sometimes) like this: bximage, winimage, cdrwin and so on.
If you have seen bad English in my words, tell me what's wrong, please.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Disk tools

Post by Troy Martin »

http://chitchat.at.infoseek.co.jp/vmware/vfd.html

Virtual Floppy Drive for Windows: it works like a loopback but makes a windows-style A: or B: drive that uses the image. You can either use the "RAM" option (makes a copy of the image in RAM and mounts that) or "File" option (does all the reads/writes directly to the image file, I think.)
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
Post Reply