LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-09-2003, 04:05 AM   #1
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Rep: Reputation: 30
Question Perform low level format of a floppy disk in C


Can ne 1 explain how to perform a low level format on a floppy disk ?? in Linux ...Using C language .. not mkfsdos...
 
Old 01-09-2003, 08:28 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
using C...
open /dev/fd0
write zeros or junk into it till eof

there is another way with ioctl, you'd have to look that up elsewhere.
 
Old 01-09-2003, 11:43 AM   #3
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
That will just fill the disk up with rubbish, not format it. (Assuming by "format" you mean "put a file system on").

Alex
 
Old 01-09-2003, 11:51 AM   #4
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Original Poster
Rep: Reputation: 30
Ya i want to create fat 12 on the floppy after performing a low level format ..
 
Old 01-09-2003, 07:47 PM   #5
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
so is your question about low level format or making a file system?

If you haven't done so already, look up "fdformat"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do low-level hard disk test? htlin Linux - Hardware 6 07-16-2005 04:32 PM
Low-level format under Linux with an AHA-1522 rcase5 Linux - Hardware 2 04-12-2005 02:33 PM
Low Level format a Compact Flash ? K@rl` Linux - Hardware 4 09-07-2004 08:05 AM
How do I low-level format a SCSI drive on Aurora Sparc Linux v1.0? JustinCase Linux - Hardware 3 03-02-2004 11:22 PM
Windows partition has bad sectors. Will 'dd' work in place of low level format? gkneller Linux - Software 5 02-26-2004 11:35 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration