LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 05: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, 09: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, 12:43 PM   #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, 12:51 PM   #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, 08: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:32 PM
Low-level format under Linux with an AHA-1522 rcase5 Linux - Hardware 2 04-12-2005 03:33 PM
Low Level format a Compact Flash ? K@rl` Linux - Hardware 4 09-07-2004 09:05 AM
How do I low-level format a SCSI drive on Aurora Sparc Linux v1.0? JustinCase Linux - Hardware 3 03-03-2004 12:22 AM
Windows partition has bad sectors. Will 'dd' work in place of low level format? gkneller Linux - Software 5 02-27-2004 12:35 AM


All times are GMT -5. The time now is 12:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration