[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 14:04:39 -0700, Stefan O'Rear wrote:

>> Mine is:
>> 
>> % cat /proc/partitions 
>> major minor  #blocks  name     rio rmerge rsect ruse wio wmerge wsect wuse running use aveq
>> 
>>    3     0   60051600 ide/host0/bus0/target0/lun0/disc 72159 136746 1668720 467190 383039 658435 8342136 1659840 -429 17038808 22703194
>>    3     1    1638598 ide/host0/bus0/target0/lun0/part1 0 0 0 0 0 0 0 0 0 0 0
>>    3     2    1028160 ide/host0/bus0/target0/lun0/part2 0 0 0 0 0 0 0 0 0 0 0
>>    3     3    3092512 ide/host0/bus0/target0/lun0/part3 0 0 0 0 0 0 0 0 0 0 0
>>    3     4          1 ide/host0/bus0/target0/lun0/part4 0 0 0 0 0 0 0 0 0 0 0
>>    3     5     514048 ide/host0/bus0/target0/lun0/part5 1458 7877 74680 9070 2140 18285 166272 42490 0 10100 52000
>> 
>> How can I get the format like yours? 
> 
> host0? bus0?
> I'm running:
> 
>    stefan:~$ uname -a
>    Linux stefans 2.2.20-custom_0 #6 Tue Aug 19 21:25:52 PDT 2003 i686 unknown
> 
> Would you by any chance be running a later-than-2.2.20 kernel?

Seems so. I accept everything default when installed as testing. How come
I'm different than yours? Mine is:

testing, 2.4.25-1-386, i686 GNU/Linux

> Maybe you upgraded your kernel and forgot to update sfdisk?

No idea about that, here is my info:

/sbin/sfdisk comes from util-linux. As to util-linux:

  Installed: 2.12-3
  Candidate: 2.12-3
  Version Table:
 *** 2.12-3 0
        500 http://debian.yorku.ca testing/main Packages
        100 /var/lib/dpkg/status

> Devfs, perhaps?

Hmm, what do you mean? 

You mean devfsd - Daemon for the device filesystem? No, I don't have that
installed. 

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? 





Reply to: