LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-10-2005, 07:52 PM   #1
rcase5
Member
 
Registered: Apr 2004
Distribution: Fedora & Debian
Posts: 38

Rep: Reputation: 15
Low-level format under Linux with an AHA-1522


Hi!

I have a VERY old AMD 386-40 system with a VERY old Adaptec AHA-1522 SCSI adapter. I use it as a light-duty server.

About a week ago, the IDE boot drive in this system bit the dust. I have another hard drive I would like to install and use as the boot disk, but it's SCSI. That in itself is not a problem, but, whenever you install a SCSI hard drive into any SCSI chain, you should ALWAYS low-level format it, otherwise mysterious things are liable to happen.

The easy way to do the low-level format would be to get a DOS boot disk and then run SCSIFMT from Adaptec. The problem with that is I do not have a DOS boot disk handy. And, the only older Windows system I have has a defective floppy drive, so I cannot make a boot disk. (It's also a notebook, so it's not a simple matter of just replacing the floppy drive.) I have PC-DOS 7 around here somewhere, but I have no idea where it is.

The other way to do this would be to run DEBUG in DOS and enter the command "G=DC00:6". This would execute the on-board SCSI Select utility in the SCSI BIOS. But, again, no DOS, so no DEBUG.

So, here's my question:
Has anyone ever done a low-level format of a hard drive in Linux? If so, how did you do it? What utilities (if any) did you use?

Failing that, does anyone know of a way to tell Linux to execute something out of /proc/kcore? If there was a way I could tell the system to execute at a particular address (a la DOS DEBUG), that would probably fix my problem.

Thanks!
 
Old 04-10-2005, 08:53 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
welcome to LQ!!!

=)

there's several sites hosting floppy images of dos all over the web... for example:

http://newdos.yginfo.net/msdos71/

since they are IMG files you can put one on a floppy using the "dd" command from a linux box... something like (for example):
Code:
dd if=MSDOS71B.IMG of=/dev/fd0
in fact, the "dd" command can also be used to wipe-out a hard disk, by writing pure zeros to it... like, to zero a scsi disk it's basically:
Code:
dd if=/dev/zero of=/dev/sda
do a "man dd" to see all the other options...

just my two cents...


Last edited by win32sux; 04-10-2005 at 08:59 PM.
 
Old 04-12-2005, 02:33 PM   #3
rcase5
Member
 
Registered: Apr 2004
Distribution: Fedora & Debian
Posts: 38

Original Poster
Rep: Reputation: 15
Awesome! Thanks! This is good to know.
 
  


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
WANTED: Low Level Disc Sector editor for LINUX SAB Linux - General 4 04-24-2005 08:24 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
Perform low level format of a floppy disk in C juby Programming 4 01-09-2003 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:17 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