LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-19-2011, 05:04 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Program to print hdd manufacturer name.


Kernel 2.6.21.5, Slackware 12.0

Hi:
Is there a linux/unix program that gives the following info?:
(a) Installed hard disks manufacturers names.
(b) Disk geometry (number of cylinders, heads and sectors per track).
Regards.
 
Old 01-19-2011, 05:12 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
Hya,

How did you install your Slack without using fdisk?

fdisk can give you (2).

lshw would answer (1).
 
Old 01-19-2011, 05:13 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look at the man page for hdparm:
Code:
man hdparm
hdparm -I /dev/<yourdisk> for example will give you heaps of information.

Kind regards,

Eric
 
Old 01-19-2011, 05:42 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by kaz2100 View Post
Hya,

How did you install your Slack without using fdisk?

fdisk can give you (2).

lshw would answer (1).
Thank you for your reply. I lack lshw but I did dmesg|less and I could find the brands: SAMSUNG and WDC (Western Digital). As to (2), it is true: fdisk gives that data, but it does not match what the BIOS sees. When I tell the BIOS to scan the hdd devices, it gives 4092 cyls, which forces her to use LBA. But fdisk (actually cfdisk, I'll try with fdisk) gives cyls= 1023, just the 10bit limit for BIOS. Of course the total byte counts match each other, as a result of BIOS detecting 16 heads and cfdisk 64 heads. Regards.
 
Old 01-19-2011, 05:54 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by EricTRA View Post
Hello,

Have a look at the man page for hdparm:
Code:
man hdparm
hdparm -I /dev/<yourdisk> for example will give you heaps of information.

Kind regards,

Eric
Fantastic!
 
Old 01-19-2011, 06:00 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

You're welcome! If you consider your question/problem solved then please mark it as such using the Thread Tools.

Kind regards,

Eric
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Program doesn't print output palisetty_suman Linux - Newbie 7 02-01-2009 06:50 PM
a program to print photos from brotell Ubuntu 4 01-28-2007 05:34 PM
HDD spy program? Euronymous Linux - Software 1 04-09-2005 11:57 AM
Program to print out pictures frankieboy Linux - Software 2 11-01-2003 07:52 AM
Any program to print CD-Covers? Mega Man X Linux - Software 2 07-22-2003 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration