[linux-help] Re: linux programming help
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hareesh Haridas wrote:
> hi friends,
>
> i am interested in learning how the linux system works at the core and
> am planning to learn it by doing some programming. for a start, i would
> like to write a simple(?) program to format a floppy disk, call it
> formatter.c (i know to program in C and C only, and a bit of scripting).
>
> can anyone please help me by giving guidelines/pointers on how to go
> about this? i am ready to spent any amount of time on this, but i want
> to do this myself :)
A good place to start is:
man 4 fd
You need to write to the raw device file. You need to understand block
sizes. You'll probably want to be able to add a label and format a file
system (there are programs to do this, like mlabel/mformat for msdos
floppies).
Of course, this has already been done -- possibly many times. Look for
fdutils (superformat):
ftp://www.tux.org/pub/knaff/fdutils/fdutils-5.4.tar.gz
> thanks in advance,
> Hareesh.
>
> -- This is the linux-help@xxxxxxxxx list. To unsubscribe,
> visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
>
>
--
/*
* Tom Hull * thull2 at cox.net * http://www.tomhull.com/
*/
-- This is the linux-help@xxxxxxxxx list. To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
|
|