Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tk_scsiformat(8) [debian man page]

tk_scsiformat(8)					       Scsiinfo User's Guide						  tk_scsiformat(8)

NAME
tk_scsiformat - low level format an scsi disk device with a nice user interface SYNOPSIS
tk_scsiformat [device] DESCRIPTION
Low level formats the SCSI device identified by the scsi disk or generic scsi device node device. You must be root to perform this opera- tion. When you do not specify a device, tk_scsiformat gives you a list to select a disk device from. tk_scsiformat is a Tcl/Tk user interface to scsiformat(8). You should read that manual page for the general operation of scsiformat. All common X11 and Tcl/Tk options apply. By the nature of graphical user interfaces, there should not be much to explain here. All entry fields refer directly to scsiformat(8) options. In addition to those, you are able to save your selections to be used as defaults for this device next time in a file /usr/lib/scsi/scsi- format.defs.* by pressing the <Save Defaults> button. This is intended and very handy for formatting of removable medias. Note, however, that tk_scsiformat is not as clever as scsiformat(8) (or even tries to be) to find if multiple ways to refer to the same scsi device (disk device, generic device). Furthermore, you can select (or enter freely) a command to automatically make a file system on the newly formatted disk. While formatting a nice completion bar is drawn. Alas, I could not really implement querying progress from a target device yet. The /usr/lib/scsi/tworands binary is used to calculate two random integers which is not supported by plain Tcl/Tk. BUGS
When not specifying a device to format, tk_scsiformat will prepare a list of disk devices to choose from. Alas, if a blocking format opera- tion is running on one of them, tk_scsiformat will block in a non interruptible disk wait sleep. Old status files in /tmp will confuse tk_scsiformat. However, they are removed after 48 hours. Restrictions of the SCSI_IOCTL_SEND_COMMAND ioctl(2) call for the sd(4) device make it impossible to issue a FORMAT_UNIT command with more than 4096 bytes of arguments. This could be avoided by using the proper generic scsi device /dev/sg* instead, at least where the kernel is compiled to support it. Most of the time this is not needed though and thus I'm myself to lazy to do it. FILES
/usr/lib/scsi/tworands /usr/lib/scsi/scsiformat.defs.* /tmp/scsiformat.xx:xx:xx:xx:xxxxxxxx /dev/sd* /dev/sg* SEE ALSO
scsiformat(8), scsiinfo(8), scsi-config(8), fdisk(8), sd(4). AUTHOR
Michael Weller <eowmob@exp-math.uni-essen.de> scsiinfo 1.7 23 August 1997 tk_scsiformat(8)

Check Out this Related Man Page

scsi-spin(8)						      System Manager's Manual						      scsi-spin(8)

NAME
scsi-spin - spin up and down a SCSI device SYNOPSIS
scsi-spin [-options...] [device] DESCRIPTION
scsi-spin let the user to manually spin up and down a SCSI device. This command is particularly useful if you've got noisy (or hot) drives in a machine that you rarely need to access. This is not the same as the kernel patch that's floating around that will automatically spin down the drive after some time. scsi-spin is completely manual, and spinning down a drive that's in use, especially the one containing the scsi-spin binary, is probably a really bad idea. To avoid running in trouble with such cases, scsi-spin verifies that the device to work on is not currently in use by scanning the mounted file system description file for a partition living on it and issue an error if this the case. OPTIONS
-u, --up spin up device. -d, --down spin down device. -e, --loej load or eject medium from drive (use along with -u or -d ) -w, --wait=[n] wait up to n seconds for the spin up/down command to complete. Default is to return immediately after the command was sent to the device. Either repeat -w n times or set n to define the time to wait before to report a timeout. -l, --lock prevent removal of medium from device. -L, --unlock allow removal of medium from device. -I, --oldioctl use legacy ioctl interface instead of SG_IO to dialog with device (could not be supported on all platforms). -e and -w are not allowed with this option. -v, --verbose=[n] verbose mode. Either repeat -v or set n accordingly to increase verbosity. 1 is verbose, 2 is debug (dump SCSI commands and Sense buffer). -f, --force force spinning up/down the device even if it is in use. -n, --noact do nothing but check if the device is in use. -p, --proc use /proc/mounts instead of /etc/mtab to determine if the device is in use or not. device the device is any name in the filesystem which points to a SCSI block device (sd, scd) or generic SCSI device (sg). See section below. SCSI devices naming convention Old kernel naming convention It is typically /dev/sd[a-z] , /dev/scd[0-9]* or /dev/sg[0-9]*. scsidev naming convention It is typically /dev/scsi/s[rdg]h[0-9]*-e????c?i?l? or /dev/scsi/<aliasname>. devfs naming convention It is typically /dev/scsi/host[0-9]/bus[0-9]/target[0-9]/lun[0-9]/disc (same for cd and generic devices) or short name /dev/sd/c[0-9]b[0-9]t[0-9]u[0-9] when devfsd "new compatibility entries" naming scheme is enabled. SEE ALSO
scsiinfo(8), sg_start(8), sd(4), proc(5), AUTHORS
Eric Delaunay <delaunay@debian.org>, 2001 Rob Browning <rlb@cs.utexas.edu>, 1998 03 September 2001 scsi-spin(8)
Man Page