Hi Hiren,
If you don't wish to write your own Format program, you
can grab my SCSI Command Utility (Scu) from URL:
http://www.bit-net.com/~rmiller/scu.html
Use "scu help" to read the help file, or view the on-line
HTML help on my web page. Use "scu -f diskName" to startup with the
disk to format. "show edt" shows you all your SCSI devices.
As noted before, this is currently a binary only kit, as the
Open Source issue is still being worked at Compaq. Further details
are described on my web page.
No GUI front-end (yet), but it will format disks, diskettes, and
even DVD-RAM media. If you have bad blocks, you can also "reassign" those.
Enjoy,
RObin
============================================================================
Topic: format
format
This command is used to format both hard and flexible disk media.
Since this command modifies the disk media, the full command name must
be entered to be recognized.
Format:
scu> format [ defects defect-list ] [ interleave value ] \
[ density density-type ] [ flags value ] \
[ dlist defect-format ] [ options ... ] \
[ pattern value ] [ working time-value ] \
[ zone value ]
Notes:
o If you specified a device via "sbtl" or "set nexus", then attempt
to format the disk, the mounted file system check will fail.
This is done purposely to prevent accidental formatting of disks
with mounted file systems.
o The flags keyword sets the format options in the format header.
o The current Linux SCSI sub-system only returns 16 bytes of request
sense data, so the format progress bytes cannot be obtained. For
this reason, you should NOT do a "format opt immed" command. It's
rumoured that the kernel 2.3 release will correct this problem.
o The "zone" option only has meaning when formatting DVD-RAM media.
Errors:
If file systems are mounted on the disk to be formatted, the following
error message is displayed and then formatting is aborted:
scu> format
scu: File system '/dev/rz14a' is mounted on '/mnt2',
EBUSY (16) - Mount device busy
scu>
Examples:
scu> time format defects primary options dcrt
Formatting device /dev/rrz8c (RZ25M), please be patient...
Working ... Thu Sep 28 09:54:47 1995
Working ... Thu Sep 28 09:56:47 1995
Working ... Thu Sep 28 09:58:47 1995
Working ... Thu Sep 28 10:00:47 1995
Working ... Thu Sep 28 10:02:47 1995
Elapsed time: 08m26.78s, System time: 00m00.00s, User time: 00m00.00s
scu>
Subtopics available:
defects density dlist interleave
options pattern working
format subtopic:
"MEHTA,HIREN (A-SanJose,ex1)" wrote:
>
> Hi All,
>
> Is there any utility to generate FORMAT_UNIT command ?
> Also, on one of my scsi disk, the partition table is bad
> and if I try to run fdisk on it to create new partitions,
> the fdisk core dumps.
>
> Any help is appreciated.
>
> Thanks
> -hiren
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]