OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Dec 09, 2019 5:29 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: disktools
PostPosted: Sat Apr 11, 2009 11:07 am 
Offline
Member
Member

Joined: Sat Sep 08, 2007 11:26 pm
Posts: 143
Location: Canada
Hi All! As part of project pedigree I've been working on an image manipulation program called disktools, designed for easy use with scripts. Its highly portable, requiring only a small subset of standard C and file IO.

Ex output:
Code:
macintosh-2:~/dt tyler$ build/disktools -i floppy_fat.img -f FAT12 -a tree
G       boot                 DIR 
G       .Trashes             DIR 
G       ._.Trashes         
G       KERNEL             
G       .DS_Store           
G       INITRD  TAR         
G       WhoKnow              DIR 
D       ?NTITL~1             DIR 
G       TEST                 DIR 
G       UHOH                 DIR

Code:
macintosh-2:~/dt tyler$ build/disktools -i floppy_fat.img -f FAT12 -a dump
OEM Name:                 mkdosfs
Bytes Per Sector:         512
Sectors Per Cluster:      1
Reserved Sector Count:    1
Table Count:              2
Root Entry Count:         224
Total Sectors:            2880
Media Type:               240
Table Size:               9
Sectors Per Track:        18
Head Side Count:          2
Hidden Sector Count:      0
Total Sectors:            0
FAT Type:                 12
BIOS Drive Num:           0
Reserved Field:           0
Boot Signature:           41
Volume ID:                1211221136
Volume Label:             LOL        FAT12   
FAT Label:                FAT12   
Bootable:                 Yes


At the moment, it supports FAT12/16/32 and SFS (making it the first non-windows SFS tool :s) and I plan on releasing the source to the public domain when completed. I am actively trying to add new formats, but there are (as most OS Devs will know :x) a great many out there. My current task is ext2 which is coming along nicely.

What I'm asking for is disk images containing at least 2 directory entries, a few random files, any special type supported by the filesystem. Mainly, I'm looking for, in order of priority:
  • ext2/3 small HD images with and without partitions.
  • anything you can think of :)


Top
 Profile  
 
 Post subject: Re: disktools
PostPosted: Sun Apr 12, 2009 6:12 pm 
Offline
Member
Member

Joined: Thu Jul 07, 2005 11:00 pm
Posts: 1546
this looks really neat.. will it support things like managing the disk(moving and creating files within the disk) and copying files from the host to the disk?

Also, I'd love to see FFS support..

_________________
My new NEW blag


Top
 Profile  
 
 Post subject: Re: disktools
PostPosted: Sun Apr 12, 2009 9:31 pm 
Offline
Member
Member

Joined: Sat Sep 08, 2007 11:26 pm
Posts: 143
Location: Canada
Quote:
this looks really neat.. will it support things like managing the disk(moving and creating files within the disk) and copying files from the host to the disk?


That was the entire point of it :) Its being made so pedigree has a cross-platform way of working with disk images without requiring a loopback device (which needs root) or hdiutils (which is just a pain in the F* @$$ to script)


Top
 Profile  
 
 Post subject: Re: disktools
PostPosted: Sun Apr 12, 2009 9:43 pm 
Offline
Member
Member

Joined: Thu Jul 07, 2005 11:00 pm
Posts: 1546
That would be very handy for say building nightly floppy images or such on a host you don't have root access to..

_________________
My new NEW blag


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group