:: Re: [Dng] John Goerzen asks, "Has m…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jude Nelson
Ημερομηνία:  
Προς: karl
Υ/ο: dng@lists.dyne.org
Αντικείμενο: Re: [Dng] John Goerzen asks, "Has modern Linux lost its way?"
I wish I knew about that program earlier. I've had to fork udev's ATA and
SCSI probing code to create equivalent tools for vdev.

-Jude

On Fri, Feb 13, 2015 at 11:22 AM, <karl@???> wrote:

> Didier:
> >      Found it. Synaptic is great. Describes it as an SCSI CLI. Well done
> > since hotplug keys and even sata drivers use the SCSI API.

> >
> >      Didier

> >
> > Le 13/02/2015 16:43, Hartmut Figge a écrit :
> > > Didier Kryn:
> > >> Le 13/02/2015 15:28, karl@??? a écrit :
> > >>> BTW, there is more than one way to set up (for the local admin)
> > >>> meaningful /dev-names. And if you don't want to bother with any /dev
> > >>> nane, you can (manually) check with "sg_mag -x -i" to see which
> device
> > >>> is which. Regards, /Karl Hammar
> > >>      Dear Karl, could you give us more details. Couldn't find any
> > >> "sg_mag" , neither in apt-file (Wheezy), nor in Google.
> > > Should be a typo. On my Gentoo there exists sg_map, part of /sg3_utils.

> > >
> > > hafi@i5_64 ~ $ sg_map -x -i
> > > /dev/sg0  2 0 1 0  5  /dev/sr0  HL-DT-ST  DVDROM DH18NS40   1.01
> > > /dev/sg1  3 0 0 0  5  /dev/sr1  HL-DT-ST  DVDRAM GH22NS50   TN03
> > > /dev/sg2  3 0 1 0  0  /dev/sda  ATA       SAMSUNG HD103UJ   1118
> > > /dev/sg3  4 0 0 0  0  /dev/sdb  ATA       SAMSUNG HD103UJ   1118

> > >
> > > Hartmut, many years ago user of Sid. :)
>
> And here with a usb key:
>
> # sg_map -x -i
> /dev/sg0  0 0 0 0  0  /dev/sda  ATA       ST31000524AS      JC4B
> /dev/sg1  1 0 0 0  0  /dev/sdb  ATA       ST2000NM0011      SN03
> /dev/sg2  3 0 0 0  5  /dev/scd0  ASUS      DRW-24F1ST   a    1.00
> /dev/sg3  8 0 0 0  0  /dev/sdc  Kingston  DataTraveler 2.0  PMAP

>
> Have a look at sg_inq also, good at getting a hd serial number so
> you can e.g. identify a faulty drive in a raid array:
>
> # sg_inq /dev/sda
> standard INQUIRY:
>   PQual=0  Device_type=0  RMB=0  version=0x05  [SPC-3]
>   [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
>   SCCS=0  ACC=0  TPGS=0  3PC=0  Protect=0  BQue=0
>   EncServ=0  MultiP=0  [MChngr=0]  [ACKREQQ=0]  Addr16=0
>   [RelAdr=0]  WBus16=0  Sync=0  Linked=0  [TranDis=0]  CmdQue=0
>   [SPI: Clocking=0x0  QAS=0  IUS=0]
>     length=96 (0x60)   Peripheral device type: disk
>  Vendor identification: ATA
>  Product identification: ST31000524AS
>  Product revision level: JC4B
>  Unit serial number:             6VPG7125

>
> Regards,
> /Karl Hammar
>
> -----------------------------------------------------------------------
> Aspö Data
> Lilla Aspö 148
> S-742 94 Östhammar
> Sweden
> +46 173 140 57
>
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>