SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by Rinndalir
Post the output here.
May I ask why? I thought you were looking at ways of finding out the hard drive make and model on your currently running install? If it doesn't work on your system then it doesn't work on your system, not sure why my telling you I have a Toshiba and a Seagate plugged in to this system will help?
Still, happy to oblige...
Code:
$ dmesg|grep ata
[ 0.000000] BIOS-e820: [mem 0x00000000bfdd1000-0x00000000bfdfffff] ACPI data
[ 0.000000] Memory: 32843860K/33535196K available (6004K kernel code, 1096K rwdata, 2752K rodata, 1352K init, 928K bss, 691336K reserved, 0K cma-reserved)
[ 3.764352] Write protecting the kernel read-only data: 10240k
[ 3.884064] libata version 3.00 loaded.
[ 3.930087] ata1: SATA max UDMA/133 abar m1024@0xfdfff000 port 0xfdfff100 irq 19
[ 3.930143] ata2: SATA max UDMA/133 abar m1024@0xfdfff000 port 0xfdfff180 irq 19
[ 3.930203] ata3: SATA max UDMA/133 abar m1024@0xfdfff000 port 0xfdfff200 irq 19
[ 3.930259] ata4: SATA max UDMA/133 abar m1024@0xfdfff000 port 0xfdfff280 irq 19
[ 3.930312] ata5: SATA max UDMA/133 abar m1024@0xfdfff000 port 0xfdfff300 irq 19
[ 3.930365] ata6: SATA max UDMA/133 abar m1024@0xfdfff000 port 0xfdfff380 irq 19
[ 4.242812] ata5: SATA link down (SStatus 0 SControl 300)
[ 4.242948] ata6: SATA link down (SStatus 0 SControl 300)
[ 4.399064] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4.399130] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4.399191] ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4.399256] ata3: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 4.399759] ata4.00: ATA-9: WDC WD30EZRZ-00Z5HB0, 80.00A80, max UDMA/133
[ 4.399807] ata4.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[ 4.400421] ata4.00: configured for UDMA/133
[ 4.400709] ata3.00: ATA-8: TOSHIBA DT01ACA300, MX6OABB0, max UDMA/133
[ 4.400756] ata3.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[ 4.402285] ata3.00: configured for UDMA/133
[ 4.411256] ata1.00: ATA-8: OCZ-AGILITY3, 2.25, max UDMA/133
[ 4.411315] ata1.00: 117231408 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[ 4.414275] ata2.00: ATA-8: OCZ-VERTEX3, 2.28.20, max UDMA/133
[ 4.414331] ata2.00: 468862128 sectors, multi 1: LBA48 NCQ (depth 31/32), AA
[ 4.421128] ata1.00: configured for UDMA/133
[ 4.434068] ata2.00: configured for UDMA/133
[ 7.623034] BTRFS: device label datab devid 1 transid 40 /dev/sdd1
[ 7.789749] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 8.047097] systemd[1]: Listening on LVM2 metadata daemon socket.
[ 8.204950] acpi_cpufreq: overriding BIOS provided _PSD data
[ 8.558455] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 8.896465] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by Richard Cranium
Your answer was similar to saying "Google 'hard drive'. Your model is in the output somewhere."
In what way? The question was which commands give information regarding the make and model of the hard drive, just running the command I gave is pretty self-explanatory.
If you're unconvinced read the output I posted and look for names of manufacturers.
I apologise if I missed some condition that the answers muse be given in a particular format or obvious to people who have never used Linux.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
For completeness, since it seems I misread this as a casual question on a site for people using Linux to help each other rather than a customer service query by a customer you could do the following:
Code:
dmesg|grep ATA-
[ 5.044300] ata4.00: ATA-9: WDC WD30EZRZ-00Z5HB0, 80.00A80, max UDMA/133
[ 5.045103] ata3.00: ATA-8: TOSHIBA DT01ACA300, MX6OABB0, max UDMA/133
[ 5.055525] ata1.00: ATA-8: OCZ-AGILITY3, 2.25, max UDMA/133
[ 5.058772] ata2.00: ATA-8: OCZ-VERTEX3, 2.28.20, max UDMA/133
My apologies for expecting people to understand what grep was doing, read the output, then make changes themselves. I realise now that I am not being paid to give ideas but to give accurate solutions to the customers.
Edit: Oh, no, terribly sorry again I need to point out that this only works for SATA drives and that the manufacturer names will be those given by the drives and may not be spelled out or capitalised correctly. If any customer needs these translating I would be happy to google it for them. I am sorry I suggested that anybody ought to do any of my work themselves.
cat /proc/scsi/scsi
cat: /proc/scsi/scsi: No such file or directory
Might be lack of cd/dvd rom support in your kernel.
Quote:
Code:
cat /sys/devices/pcixxxx:xx/xxxx:xx:xx.x/atax/hostx/targetx:x:x/x:x:x:x/wwid
cat: /sys/devices/pcixxxx:xx/xxxx:xx:xx.x/atax/hostx/targetx:x:x/x:x:x:x/wwid: No such file or directory
Huh what, you'd need to replace those xs with the correct targets.
Quote:
Code:
inxi -plu
Double huh what. Doesn't look like a slackware command but any way it doesn't return make/model.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.