- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: finding IDE SCSI disks
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2003 03:01 AM
тАО10-10-2003 03:01 AM
finding IDE SCSI disks
Iam aware that
#fdisk -l
will display both scsi and IDE harddisk but the same is displaying all the partitions too.
Is there a seperate command to display on harddisk and not the partitions (with out using grep)
Thanks
Jagadesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2003 03:22 AM
тАО10-10-2003 03:22 AM
Re: finding IDE SCSI disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2003 04:56 AM
тАО10-10-2003 04:56 AM
Re: finding IDE SCSI disks
As root
#cdrecord -scanbus
or
# cat /proc/scsi/scsi
For ide
As root
#for i in a b c d ; do hdparm -I /dev/hd$i ;done
only put in the require in a b c d (ex: only a if you have only hda drive)
hdparam --help
reveals a lot of options so you can tailor the above to suite your needs.
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2003 07:47 PM
тАО10-10-2003 07:47 PM
Re: finding IDE SCSI disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2003 08:24 PM
тАО10-10-2003 08:24 PM
Re: finding IDE SCSI disks
The best I can think is to make a sript do what you want
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2003 12:54 AM
тАО10-11-2003 12:54 AM
Re: finding IDE SCSI disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2003 12:38 PM
тАО10-12-2003 12:38 PM
Re: finding IDE SCSI disks
grep "^[hs]d[a-zA-Z]" /var/log/dmesg
The 'dmesg' command that Mark mentioned is available on all Linux distributions, however it's a circular buffer of which can only hold a few kb of data (16 by default). RH, by default, dumps this out right after boot-up so the boot messages get recorded successfully, and not lost when the buffer fills up.
This will only find standard drives, not those based upon some of the more advanced controllers (I'm unaware of how fibre-channel based controllers device out their nodes, and the SmartArray use /dev/cciss/ nodes).
Hopefully this will give you a start.
As far as I'm aware however, there is no tool that will successfully list all drives, as I know 'fdisk' does not ('sfdisk -l' comes close though).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2003 06:29 PM
тАО10-12-2003 06:29 PM
Re: finding IDE SCSI disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2003 08:45 PM
тАО10-12-2003 08:45 PM
Re: finding IDE SCSI disks
There is no equivalent however for IDE devices. As far as I'm aware, they are found and maintained at bootup, spitting out messages for dmesg to capture (thus the commands I suggested).
Failing that, I'm sure someone here suggested 'cdrecord -scanbus' from the CDRecord packages. This is limited to SCSI devices once again, but using the 'ide-scsi' kernel emulation, it will allow CD's to be viewed as SCSI devices, but not block IDE hdd's.
/proc/ide/ has some semblance of a device list, but it's a bit messy (having symbolic links to internal structures). If the IDE chipset driver does it (mine here does), it might list devices in a psudo-file here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2003 08:54 PM
тАО10-12-2003 08:54 PM