Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
UNICEF

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 68 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

scsiinfo



SYNOPSIS

       scsiinfo [-options...] [device]


DESCRIPTION

       scsiinfo  queries  information  from  an scsi target. This
       means generally using the INQUIRY scsi command or  reading
       out  SCSI-II  mode pages (the number of the mode pages and
       corresponding sections of the SCSI-II  sections  is  given
       below). It allows also to modify some of these settings on
       the scsi device (if it supports it).

       Except for the -v and -l options you must specify  exactly
       one scsi device to work on. You may specify any linux scsi
       device disk, tape, cdrom, generic scsi.

       Some scsi devices (typically  non  removable  disks)  will
       allow  to  store  your  modifications in some non volatile
       memory. Some of these settings (for example those  dealing
       with the layout of logical blocks and sectors set aside as
       replacements for erroneous blocks) might render  the  disk
       unusable until a low level format.


OPTIONS

   Information available from most SCSI devices (includes SCSI-I)
       -i     display all information from the INQUIRY scsi  com­
              mand.

       -s     displays  the  unit serial number using the INQUIRY
              scsi command.

       -d     display factory and grown defect  lists  (typically
              for disks only).

              It  is  currently  only  possible  to return defect
              information up to 4096 bytes. Longer  defect  lists
              are truncated. See the BUGS section.

       -f arg specify  the  format  in which to return the defect
              information. The target may decide to fail  report­
              ing  defect  information  in unsupported formats or
              decide to return data in a different format.  scsi­
              info supports all SCSI-II specified defect formats:

              -Flogical
                     logical blocks. Use of this format  is  dis­
                     couraged as the assignment of logical blocks
                     varies according to  format  parameters  and
                     status  of  the  defect  list,  hence  is no
                     unique specification of defects.

              -Fphysical

   SCSI-II mode pages
       -C     displays information from Control Mode Page.  (Page
              0Ah, section 7.3.3.1)

       -D     displays   information   from  Disconnect-Reconnect
              Page.  (Page 02h, section 7.3.3.2)

       -p     displays information from Peripheral  Device  Page.
              (Page 09h, section 7.3.3.3)

       -c     displays information from Caching Page.  (Page 08h,
              section 8.3.3.1)

       -f     displays  information  from  Format  Device   Page.
              (Page 03h, section 8.3.3.3)

       -n     displays information from Notch and Partition Page.
              (Page 0Ch, section 8.3.3.5)

              A huge scsi disk  might  be  divided  into  several
              notches.  These  are  regions  of logical blocks or
              cylinders on the disk. Each such notch  might  have
              different values for the other mode pages.

              Typically  a  modern disk will have several notches
              and have  more  sectors  per  track  on  the  inner
              tracks/notches  on  the  disk  and more sectors per
              track on the  outer  (longer)  tracks  for  optimal
              capacity. Also different amounts of reserved backup
              sectors may be available in the  notches  depending
              on their capacity.

       -e     displays  information  from  Error  Recovery  page.
              (Page 01h, section 8.3.3.6)

       -g     displays information from Rigid Disk Drive Geometry
              Page.  (Page 04h, section 8.3.3.7)

       -V     displays  information  from  Verify  Error Recovery
              Page.  (Page 07h, section 8.3.3.8)

   Select mode page set
       By default the  current  settings  are  queried  from  the
       devices. You can however specify one of these:

       -M     displays  manufacturer  defaults instead of current
              values.

       -L     List mode pages pages supported  by  this  scsiinfo
              version  and target (notched pages and active notch
              are also returned).

       -X     displays output suitable for the X-based interface.
              Instead  of nice explanations, just the bare values
              are written to stdout.

       -R     Replace parameters. Use with  -X  and  specify  the
              values  to set on the command line in the order and
              format as -X uses to report them. (Expert use only,
              definitely   use  the  Tcl/Tk  interface  scsi-con­
              fig(8)tomodifysettings.)

              Use this in conjunction with -S to modify the NVRAM
              settings.

       -X  and  -R  can be used only with one of the display page
       options.

       -m and -M cannot be used with -R.

       You may use -M, -S with -L though it will make no  differ­
       ence.  As  a special goodie when using -LXR then a /bin/sh
       script is written to stdout that will restore the  current
       settings  of  the target when executed. You can use one of
       -M, -S with -LXR to save the corresponding values.


BUGS

       Restrictions of the SCSI_IOCTL_SEND_COMMAND ioctl(2)  call
       make it impossible to send or receive 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. It
       will basically just truncate the vendor specified  primary
       defect lists. Thus I'm too lazy to fix it.


FILES

       /dev/sd*
       /dev/sg*
       /dev/scd*
       /dev/st*
       /dev/nst*
       /dev/rmt*
       /dev/nrmt*


SEE ALSO

       scsi-config(8), scsiformat(8), tk_scsiformat(8), fdisk(8),
       Michael  Weller  <eowmob@exp-math.uni-essen.de>,  Versions
       1.5 & 1.7

scsiinfo 1.7              23 August 1997              scsiinfo(8)
  

Looking for a "printer friendly" version?


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds