Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

New pinxi/inxi test: Disk vendor

Message
Author
User avatar
h2-1
Forum Regular
Forum Regular
Posts: 426
Joined: Sat Nov 15, 2008 3:16 pm

New pinxi/inxi test: Disk vendor

#1 Post by h2-1 » Sat May 05, 2018 12:46 am

I've been prompted to add in disk vendor to the Drives report.

pinxi is the development version of inxi now, for those who don't know, and runs completely independently of inxi and it's configs etc.

I have the working version in pinxi, so if you have pinxi, just update it:

Code: Select all

pinxi -U 
If you don't, shortcut install is:

Code: Select all

cd /usr/local/bin; wget -O pinxi smxi.org/pinxi; chmod +x pinxi 
which grabs it from github.

To test, run:

Code: Select all

pinxi -zdxxx 
and paste the output here.

If it does not show the vendor name, show this:

Code: Select all

ls -l /dev/disk/by-id 
and I should be able to get it fixed in most instances, not all, but most.

The more arcane usb storage devices etc you can plugin and test, the better.

Note that mmc/(sd cards) is a bit of a problem and doesn't always have the data, it varies widely, but most other storage types should work via one or another method in inxi.

inxi had some bugs with the model string that it turned out were actually bugs in how /sys is packing that data, which means a kernel bug of some type, so I bypassed /sys and default to getting it from /dev/disk/by-id string parsing.

This has the nice added bonus of also working for parsing the model strings of bsds, which is always a plus.

Thanks for looking, this feature will be in inxi 3.0.08 once I confirm it works on most weird and basically all standard real user systems.

Code: Select all

# before bug/update fix
inxi -zdxxxy80
Drives:
  HDD Total Size: 357.72 GiB used: 7.54 GiB (2.1%) 
  ID-1: /dev/sda model: InnoDisk_Corp._- size: 119.24 GiB serial: <filter> 
  rev: 25 temp: 30 C scheme: MBR 
  ID-2: /dev/sdb model: INTEL_SSDSC2KW25 size: 238.47 GiB serial: <filter> 
  rev: 002C scheme: MBR 
  Message: No Optical or Floppy data was found.

# after bug/update fix
pinxi -dxxx -zy 80
Drives:
  HDD Total Size: 357.72 GiB used: 7.54 GiB (2.1%)
  ID-1: /dev/sda vendor: InnoDisk model: mSATA 3ME3 size: 119.24 GiB
  serial: <filter> rev: 25 temp: 30 C scheme: MBR
  ID-2: /dev/sdb vendor: Intel model: SSDSC2KW256G8 size: 238.47 GiB
  serial: <filter> rev: 002C scheme: MBR
  Message: No Optical or Floppy data was found.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
Gordon Cooper
Forum Guide
Forum Guide
Posts: 2046
Joined: Mon Nov 21, 2011 5:50 pm

Re: New pinxi/inxi test: Disk vendor

#2 Post by Gordon Cooper » Sat May 05, 2018 1:32 am

Thanks h2-1. I will approach this very carefully!! Do not think my system is very weird (yet) !
Homebrew64 bit Intel duo core 2 GB RAM, 120 GB Kingston SSD, Seagate1TB.
Primary OS : MX-17.1 64bit. Also MX17, Kubuntu14.04 & Puppy 6.3.
Dell9010, MX-17.1, Win7

User avatar
rokytnji.1
Forum Regular
Forum Regular
Posts: 752
Joined: Sun Apr 13, 2014 9:06 pm

Re: New pinxi/inxi test: Disk vendor

#3 Post by rokytnji.1 » Sat May 05, 2018 3:07 am

Code: Select all

harry@biker:~
$ pinxi -zdxxx 
Drives:    HDD Total Size: 298.09 GiB used: 74.54 GiB (25.0%) 
           ID-1: /dev/sda model: HGST_HTS545032A7 size: 298.09 GiB serial: <filter> rev: AC90 
           scheme: MBR 
           Optical-1: /dev/sr0 vendor: Optiarc model: DVD RW AD-7740H rev: 1.S1 
           dev-links: cdrom,cdrw,dvd,dvdrw 
           Features: speed: 24 multisession: yes audio: yes dvd: yes 
           rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
harry@biker:~
$ pinxi -v
CPU: Dual Core Intel Core i5-3320M (-MT MCP-) speed/min/max: 1200/1200/3300 MHz 
Kernel: 4.9.83-antix.1-686-smp-pae i686 Up: 13h 04m Mem: 496.0/15936.5 MiB (3.1%) 
HDD: 298.09 GiB (25.0% used) Procs: 170 Shell: bash 4.3.30 pinxi: 3.0.07-8 
I went ahead and updated pinxi on this laptop since I last corresponded with hydruga.

So old saved piinxi with changes suggested is only dated up to 4/26/18. Nothing changed by me suggested by hydruga after that date is lost in the wind now.

Code: Select all

harry@biker:~
$ cd /usr/local/bin
harry@biker:/usr/local/bin
$ find pinxi.bkp
pinxi.bkp
  
I did have to Manually < chown as root > change permissions in my ~/.local/share/pinxi to my user name. Seems root owned it before and after my update.

Your fix identified my drive OK. But it is a old sata spinner. I still have to test on my chromebook.

User avatar
h2-1
Forum Regular
Forum Regular
Posts: 426
Joined: Sat Nov 15, 2008 3:16 pm

Re: New pinxi/inxi test: Disk vendor

#4 Post by h2-1 » Sat May 05, 2018 5:24 am

rokytnji.1, very old and very new, and random usb drives, ssd drives, mmc, nvme, these are the most likely to not work. The old drives however were a very small set of IDs, and thus fairly easy to get right and complete. The vast numbers of various solid state drives however, not as easy, but getting around 98-99% is decent enough I suspect.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

sunrat
Forum Regular
Forum Regular
Posts: 220
Joined: Mon Mar 28, 2016 9:54 pm

Re: New pinxi/inxi test: Disk vendor

#5 Post by sunrat » Sat May 05, 2018 10:53 am

Here ya go with 4 varied USB flash keys - the "Jetflash" is a 10 year old Transcend Jetflash:

Code: Select all

pinxi -zdxxx
Drives:    HDD Total Size: 1.97 TiB used: 955.26 GiB (47.4%)
           ID-1: /dev/sda vendor: OCZ model: VERTEX2 3.5 size: 107.13 GiB
           serial: <filter> rev: 1.29 scheme: MBR
           ID-2: /dev/sdb vendor: Western Digital model: WD1001FALS-00J7B1
           size: 931.51 GiB serial: <filter> rev: 0K05 scheme: MBR
           ID-3: /dev/sdc vendor: Western Digital model: WD1001FALS-00J7B1
           size: 931.51 GiB serial: <filter> rev: 0K05 scheme: MBR
           ID-4: /dev/sdd type: USB vendor: Patriot model: Memory size: 29.84 GiB
           serial: <filter> rev: PMAP scheme: MBR
           ID-5: /dev/sde type: USB model: JetFlash TS4GJFV30 size: 3.83 GiB
           serial: <filter> rev: 8.07
           ID-6: /dev/sdf type: USB vendor: SanDisk model: Cruzer Edge size: 3.73 GiB
           serial: <filter> rev: 1.20 scheme: MBR
           ID-7: /dev/sdg type: USB vendor: Kingston model: DataTraveler 3.0
           size: 7.22 GiB serial: <filter> rev: PMAP scheme: MBR
           Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GH20NS10 rev: EL00
           dev-links: cdrom,cdrw,dvd,dvdrw
           Features: speed: 48 multisession: yes audio: yes dvd: yes
           rw: cd-r,cd-rw,dvd-r,dvd-ram state: running

User avatar
richb
Administrator
Posts: 17104
Joined: Wed Jul 12, 2006 2:17 pm

Re: New pinxi/inxi test: Disk vendor

#6 Post by richb » Sat May 05, 2018 11:10 am

Pretty standard stuff.

Code: Select all

 pinxi -zdxxx
Drives:    HDD Total Size: 1.03 TiB used: 178.49 GiB (16.9%) 
           ID-1: /dev/sda vendor: Seagate model: ST3320820SCE size: 298.09 GiB serial: <filter> rev: E 
           scheme: GPT 
           ID-2: /dev/sdb vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB serial: <filter> rev: 2B6Q 
           scheme: GPT 
           ID-3: /dev/sdc vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB serial: <filter> rev: 2B6Q 
           scheme: GPT 
           ID-4: /dev/sdd vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB serial: <filter> rev: 2B6Q 
           scheme: MBR 
           ID-5: /dev/sde type: USB vendor: SanDisk model: Extreme size: 58.43 GiB serial: <filter> rev: 0001 
           scheme: MBR 
           Message: No Optical or Floppy data was found. 
Forum Rules
Guide - How to Ask for Help

Rich
SSD Production: MX 17.1
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB, 350 GB HD

User avatar
timkb4cq
Forum Veteran
Forum Veteran
Posts: 4376
Joined: Wed Jul 12, 2006 4:05 pm

Re: New pinxi/inxi test: Disk vendor

#7 Post by timkb4cq » Sat May 05, 2018 12:25 pm

Plugged in various stuff, all identified. The "Generic Flash Disk" label is correct. It's a promotional item (4 GB flash drive with a white led light in the cap) that shares its usb ID with a lot of products. The ID-3 drive is connected via a Cables Unlimited sata/ide -> usb adapter.

Code: Select all

$ pinxi -zdxxx
Drives:    HDD Total Size: 3.12 TiB used: 2.00 TiB (64.0%) 
           ID-1: /dev/sda vendor: Seagate model: ST33000651AS size: 2.73 TiB serial: <filter> rev: CC45 
           temp: 47 C scheme: GPT 
           ID-2: /dev/sdb vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB serial: <filter> rev: 1B6Q 
           scheme: GPT 
           ID-3: /dev/sdg type: USB vendor: Samsung model: SV0411N size: 37.31 GiB serial: <filter> rev: 0-08 
           scheme: MBR 
           ID-4: /dev/sdh type: USB model: MONSTER OD ADVANCE size: 115.11 GiB serial: <filter> rev: PMAP 
           scheme: MBR 
           ID-5: /dev/sdi type: USB model: Generic Flash Disk size: 3.76 GiB serial: <filter> rev: SHUS 
           scheme: MBR 
           ID-6: /dev/sdj type: USB vendor: SanDisk model: Cruzer Switch size: 7.45 GiB serial: <filter> 
           rev: 1.26 scheme: MBR 
           Optical-1: /dev/sr0 vendor: TSSTcorp model: CDDVDW SH-S223Q rev: SB03 
           dev-links: cdrom,cdrw,dvd,dvdrw 
           Features: speed: 48 multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram 
           state: running
MSI 970A-G43 MB, AMD FX-6300 (six core), 16GB RAM, GeForce 730, Samsung 850 EVO 250GB SSD, Seagate Barracuda XT 3TB

User avatar
Richard
Posts: 2079
Joined: Fri Dec 12, 2008 10:31 am

Re: New pinxi/inxi test: Disk vendor

#8 Post by Richard » Sat May 05, 2018 12:55 pm

richard@mx171:/usr/local/bin
$ pinxi -zdxxx
Drives: HDD Total Size: 585.00 GiB used: 87.35 GiB (14.9%)
ID-1: /dev/sda vendor: Samsung model: SSD 840 PRO Series size: 119.24 GiB serial: <filter> rev: 6B0Q
scheme: MBR
ID-2: /dev/sdb type: USB vendor: Sony model: Hard Drive size: 465.76 GiB serial: <filter> rev: 5438
scheme: MBR
Optical-1: /dev/sr0 vendor: Optiarc model: DVD RW AD-7740H rev: 1.S1 dev-links: cdrom,cdrw,dvd,dvdrw
Features: speed: 24 multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram
state: running

Thanks. Seems to be working well.
MX171: Lenovo T430: Intel DualCore i5-3320M, 8GB RAM, 4.18.7-antix.1-amd64-smp, 119GB SSD
MX171: AA1/EeePC: DualCore N270, 1GB RAM, 4.9.126-antix.1-686-smp-pae, 150GB HDD
DoubleCmd84, LibO61, Dropbox, PaleMoon, CherryTree, Vbox. LinuxCounter #208633

User avatar
h2-1
Forum Regular
Forum Regular
Posts: 426
Joined: Sat Nov 15, 2008 3:16 pm

Re: New pinxi/inxi test: Disk vendor

#9 Post by h2-1 » Sat May 05, 2018 1:33 pm

Great samples. I actually had the Jetflash but removed it, heh, so I'll add that one back in since someone actually has it.

I don't like the handling of say, 'Patriot Memory' or 'Sony Hard Drive', in those cases, trimming out the vendor name from the model string doesn't seem to be that readable re the results.

I found a few classes of things that will not work, such as using usb adapters, say for ssd cards, in those cases, the adapter name itself is what shows up, not the actual card name, but that's out of my control since that's just what it is. The 'Generic... ' is likewise quite common, and can't really be properly handled unless I link the usb devices to the usb detections, which can then get the proper name, but that's much harder to do.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

caprea
Forum Regular
Forum Regular
Posts: 114
Joined: Sat Aug 23, 2014 7:01 am

Re: New pinxi/inxi test: Disk vendor

#10 Post by caprea » Sat May 05, 2018 1:48 pm

Code: Select all

helga@antix1:~
$ pinxi -zdxxx
Drives:
  HDD Total Size: 2.17 TiB used: 82.85 GiB (3.7%) 
  ID-1: /dev/sda vendor: Transcend model: TS256GSSD370 size: 238.47 GiB 
  serial: <filter> rev: 5B scheme: MBR 
  ID-2: /dev/sdb vendor: Seagate model: ST1000DM003-1ER162 size: 931.51 GiB 
  serial: <filter> rev: CC61 scheme: MBR 
  ID-3: /dev/sdc type: USB vendor: Toshiba model: USB 2.5 -HDD size: 37.26 GiB 
  serial: <filter> rev: 100 scheme: MBR 
  ID-4: /dev/sdd type: USB vendor: Western Digital model: WD10JPVX-22JC3T0 
  size: 931.51 GiB serial: <filter> scheme: MBR 
  ID-5: /dev/sde type: USB vendor: Samsung model: HD080HJ size: 74.53 GiB 
  serial: <filter> scheme: MBR 
  ID-6: /dev/sdf type: USB vendor: Intenso model: Basic Line size: 7.28 GiB 
  serial: <filter> rev: 8.07 scheme: MBR 
  Optical-1: /dev/sr0 vendor: PIOR model: BD-RW BDR-209M rev: 1.10 dev-links: cdrom 
  Features: speed: 125 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
The Toshiba and Samsung are old, maybe 10 years.
All working well, thanks.

Post Reply

Return to “antiX”