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

Re: /proc/partitions (was: Get a list of hard disks)



On Fri, 13 Aug 2004 15:00:42 -0700, Stefan O'Rear wrote:

>> Here is something I think might be relavent:
>> 
>> $ lsmod | grep ide
>> ide-scsi                8464   0  (autoclean)
>> scsi_mod               85312   2  (autoclean) [sd_mod ide-scsi]
>> ide-cd                 27936   0 
>> cdrom                  25056   0  [ide-cd]
>> ide-detect               288   0  (autoclean) (unused)
>> ide-disk               12512   7  (autoclean)
>> ide-core               94108   7  (autoclean) [ide-scsi ide-cd ide-detect sis5513 ide-disk]
>> 
>> Are they all necessary? 
> 
> I wouldn't know, my kernel has everything I use compiled in, don't have
> any ide-* modules.
> 
> BTW, how are you booting? if ide-disk is a module, it would have to be loaded
> before it could be loaded off your HD! (probably /initrd?)

This is how, using grub:

title           Debian Sarge, kernel 2.4.25-1-386 
  root          (hd0,7)
  kernel        (hd0,7)/boot/vmlinuz-2.4.25-1-386 root=/dev/hda8 ro hdc=scsi hdd=s
csi max_scsi_luns=1
  initrd        (hd0,7)/boot/initrd.img-2.4.25-1-386

> Try looking at the files in your /proc/ide:
> 
>    stefan:~$ tail /proc/ide/hd*/{cache,model,media}

That seems ok, similar to yours:

$ tail /proc/ide/hd*/{cache,model,media}
==> /proc/ide/hda/cache <==
2048

==> /proc/ide/hdb/cache <==
7936

==> /proc/ide/hda/model <==
Maxtor 6Y060L0

==> /proc/ide/hdb/model <==
Maxtor 6Y160P0

==> /proc/ide/hdc/model <==
SONY CD-RW CRX195E1

==> /proc/ide/hdd/model <==
Toshiba DVD-ROM DSM-1712

==> /proc/ide/hda/media <==
disk

==> /proc/ide/hdb/media <==
disk

==> /proc/ide/hdc/media <==
cdrom

==> /proc/ide/hdd/media <==
cdrom

Anything else I can check? 

Thanks





Reply to: