[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev and how to find a harddisk

On Wed, Oct 18, 2006 at 02:02:14PM +0200, Goran wrote:
> Hello,
> I'm searching for a way to identify my harddisk with a script (somethink
> similar to fdisk -l). For that I watched out in /sys/block/hd*
> or /sys/block/sd*. But which entry shows me that I've found a read/write
> (harddisk) device or just a read-only device (cdrom)?
hdparm -I 
dmesg | grep hd
grep hd /var/log/dmesg
cat /proc/ide/*/*/media

Changing husbands/wives is only changing troubles.
		-- Kathleen Norris

Reply to: