Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-16-2002, 09:19 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
how do i zero out a drive?

i need to do a low level format to a drive, .. how do i do it? is that the same as "zero"ing out a drive?
sde is offline   Reply With Quote
Old 08-16-2002, 10:56 AM   #2 (permalink)
revolution
Legend in my own mind
 
revolution's Avatar
 
Join Date: May 2002
Location: florida
Posts: 618
revolution is on a distinguished road
Send a message via AIM to revolution
ive got a program that will do that for ya, catch me on irc and ill send it to ya
__________________
Is it me or does the word abbreviation seem a little long?


registered user #193524 with the Linux Counter,
http://counter.li.org
revolution is offline   Reply With Quote
Old 08-16-2002, 11:10 AM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
that would be cool to have, but i was hoping there would be a way so i could do it in OS/X =P

i need to format a drive here at work, but windoze won't do it right.
sde is offline   Reply With Quote
Old 08-16-2002, 12:01 PM   #4 (permalink)
sdeming
Code Monkey
 
Join Date: Jul 2002
Location: Michigan
Posts: 85
sdeming is on a distinguished road
Format it how? As in wipe it clean, partition it, label it, and install filesystems?

OS/X is Darwin is FreeBSD so you can look at these commands:

- disklabel
- fdisk

I am pretty sure disklabel is what you want, but no positive.
__________________
Scott
B4 09 BA 09 01 CD 21 CD 20 53 63 6F 74 74 24
sdeming is offline   Reply With Quote
Old 08-16-2002, 12:28 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
thanks scott, .. i'm gonna try it out now
sde is offline   Reply With Quote
Old 08-16-2002, 12:44 PM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
doh! there are a few osx boxes here, but osx will not let you log in as root in darwin, and you have to be root to run fdisk.

maybe this should be a mac thread =)
sde is offline   Reply With Quote
Old 08-16-2002, 05:03 PM   #7 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Best way I've found to wipe a drive, data, partition table and all is to just use the 'dd' command under linux (or possibly BSD, I can't confirm atm). You just issue the command

[SHELL]
$ dd if=/dev/zero of=/dev/hda bs=1M count=38172
[/SHELL]

Where the device is your drive device and the count value is the size of your hdd.
Some SCSI controllers also have this function built in, when you boot up and enter the SCSI utility screen you'll see it.
bdl is offline   Reply With Quote
Old 08-20-2002, 06:29 AM   #8 (permalink)
kenshi
Registered User
 
kenshi's Avatar
 
Join Date: Jun 2002
Location: Antarctica
Posts: 43
kenshi is on a distinguished road
Send a message via ICQ to kenshi
Low-level formats are when you actually form the tracks on a disk. This is very rarely something you need to do, so you're probably talking about something else. And if you did for some reason need to do it, you'd have to get a program from the manufacturer of the hard drive. (Different hard drives have different programs.)
kenshi is offline   Reply With Quote
Old 08-20-2002, 07:44 AM   #9 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
yes, it is something i need to do. i'm doing some product testing for a proprietary product, and this drive we are using won't take a format from this prototype after it's been formatted on windows.

we ordered the software from ibm, but they are lagging and i was hoping to find a quick way. but i guess i'll still have to wait.
sde is offline   Reply With Quote
Old 08-20-2002, 05:24 PM   #10 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Quote:
Originally posted by mmilano
yes, it is something i need to do. i'm doing some product testing for a proprietary product, and this drive we are using won't take a format from this prototype after it's been formatted on windows.

we ordered the software from ibm, but they are lagging and i was hoping to find a quick way. but i guess i'll still have to wait.
Using the 'dd' command as outlined above wipes the HDD and fills it with 'zero'. No MBR, no partition table, just zeros, as if it was a new drive. Whats wrong with that?
bdl is offline   Reply With Quote
Old 08-22-2002, 04:44 AM   #11 (permalink)
kenshi
Registered User
 
kenshi's Avatar
 
Join Date: Jun 2002
Location: Antarctica
Posts: 43
kenshi is on a distinguished road
Send a message via ICQ to kenshi
Quote:
Originally posted by mmilano
yes, it is something i need to do. i'm doing some product testing for a proprietary product, and this drive we are using won't take a format from this prototype after it's been formatted on windows.
If you already have Windows running on it properly, then you do not need a low-level format. A low-level format is for repairing physical damage to the disk. If you perform a surface scan in Windows scandisk and it says certain sectors are damaged, then a low-level format may fix it. If a surface scan says everything checks out ok, then you should definately not do a low-level format as it's dangerous like flashing the Bios.

You probably want to do what bdl suggests. It's what I consider a mid-level format. In case you can't put another hard drive in the machine with Linux on it, there are several varients of it that run on floppy disks including Trinux (which I've tried myself, though the spelling may not be right). You simply download floppy images and copy them (with dd in unix or rawrite in Windows) and you're ready to go. It's the only way I can think to do it since Windows doesn't have a program for writing directly to the disk. (I once wrote a program myself in assembler that did it, but I lost that program about a year ago.)
kenshi is offline   Reply With Quote
Old 08-22-2002, 07:44 AM   #12 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
the humorous results:

it was all about this ibm drive we needed to format. we needed to get it to the original state that it was when sent from the manufacturer. we tested it in a couple products and reformatted it in windows because they said it was a window format.

well after a week of going back and forth, we figured out it was shipped with a fat16 format

needless to say, you are right, .. i didn't need a low level format.
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
BIOS Problem (American Megatrends) plonkeroo Windows 12 09-29-2004 02:54 PM
DVD-ROM LAPTOP Hardware Issues rdove Windows 2 02-21-2003 07:24 PM
Opinions on new PC w00t Lounge 15 02-12-2003 11:54 AM
What do you drive? w00t Lounge 16 12-27-2002 04:39 PM
errors, .. hard drive related? sde Linux / BSD / OS X 1 07-31-2002 08:29 PM


All times are GMT -8. The time now is 05:26 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting