LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-21-2006, 10:02 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
kernel & cat /proc/partitions?


Hi,
I've got 2 machines with 2.4 kernels and I was wondering if anyone knows why the output of "cat /proc/partitions" is different for the two, both are running ide disks off their motherboards, nothing fancy, but they seem to appear differently. The first shows:
Code:
major minor  #blocks  name     rio rmerge rsect ruse wio wmerge wsect wuse running use aveq

   8     0  390711296 sda 8894 20 71156 52530 449202 6556876 19283306 3336410 0 1031020 3391920
   8     1  390700768 sda1 8891 11 71132 52500 449202 6556876 19283306 3336420 0 1030990 3391860
   8     2       8032 sda2 0 0 0 0 0 0 0 0 0 0 0
   8    16  390711296 sdb 10516 20 84132 57590 457271 6516477 19023314 3593180 0 1018350 3654280
   8    17  390700768 sdb1 10513 11 84108 57570 457271 6516477 19023314 3593190 0 1018330 3654260
   8    18       8032 sdb2 0 0 0 0 0 0 0 0 0 0 0
   8    32  293057352 sdc 5 9 28 10 0 0 0 0 0 10 10
   8    33  293041633 sdc1 0 0 0 0 0 0 0 0 0 0 0
   8    34       8032 sdc2 0 0 0 0 0 0 0 0 0 0 0
  34     0  244198584 hdg 27 203 562 30 1 0 8 0 -5 6408980 10945392
  34     1  244196001 hdg1 24 194 538 10 1 0 8 0 0 10 10
  34    64  244198584 hdh 27 203 562 30 1 0 8 0 -5 6408980 10945412
  34    65  244196001 hdh1 24 194 538 10 1 0 8 0 0 10 10
  33     0  244198584 hde 27 203 562 20 1 0 8 0 -5 6409000 10945322
  33     1  244196001 hde1 24 194 538 10 1 0 8 0 0 10 10
  33    64  244198584 hdf 27 203 562 30 1 0 8 0 -5 6408990 10945362
  33    65  244196001 hdf1 24 194 538 0 1 0 8 0 0 0 0
  22     0  390711384 hdc 38 214 666 40 4 3 32 0 -5 6409010 10945312
  22     1  390708801 hdc1 35 205 642 20 4 3 32 0 0 10 20
  22    64  390711384 hdd 2023 254 16866 17660 11379 144886 1250096 798910 -5 6408840 11761872
  22    65  390708801 hdd1 2020 245 16842 17630 11379 144886 1250096 798910 0 23390 816540
   3     0  180941040 hda 5669 7431 103678 44000 12478 26280 311984 90690 -5 6407750 11079872
   3     1    2104483 hda1 3672 2291 47698 25480 9980 22358 260368 74070 0 31590 99550
   3     2     514080 hda2 20 21 328 100 77 693 6232 220 0 120 320
   3     3    7341705 hda3 1954 5003 55290 18340 2417 3226 45352 16400 0 18350 34740
   3     4  170971762 hda4 20 107 338 30 4 3 32 0 0 30 30
   3    64  488386584 hdb 9652 11739 169010 1072550 3445 4002 59552 826800 -5 6408970 12844582
   3    65  488384001 hdb1 9649 11730 168986 1072540 3445 4002 59552 826800 0 562580 1899330
which is what I'm used to but on the 2nd machine I get this horrible thing:
Code:
major minor  #blocks  name     rio rmerge rsect ruse wio wmerge wsect wuse running use aveq

  33     0  156290904 ide/host2/bus0/target0/lun0/disc 8399 8713 132558 32950 9689 14042 191010 24000 -2 23097097 39758081
  33     1     257008 ide/host2/bus0/target0/lun0/part1 29 536 1130 120 4 1 10 40 0 150 160
  33     2    1253070 ide/host2/bus0/target0/lun0/part2 2 1 24 10 1 1 16 0 0 10 10
  33     3   27808515 ide/host2/bus0/target0/lun0/part3 8348 8166 131242 32760 9672 14037 190864 23920 0 31240 56680
  33     4  126969727 ide/host2/bus0/target0/lun0/part4 18 4 146 50 12 3 120 40 0 90 90
  33    64  156290904 ide/host2/bus0/target1/lun0/disc 32 7 258 150 12 3 120 0 -2 23099107 39701281
  33    65  156288321 ide/host2/bus0/target1/lun0/part1 31 4 250 150 12 3 120 0 0 150 150
  22     0  120060864 ide/host0/bus1/target0/lun0/disc 162 7 1298 16090 245468 3613733 30873624 27789420 -1 23097627 4706402
  22     1  120053713 ide/host0/bus1/target0/lun0/part1 161 4 1290 16080 245468 3613733 30873624 27789420 0 497370 27805500
   3     0  156290904 ide/host0/bus0/target0/lun0/disc 21 7 170 20 12 3 120 0 -2 23099117 39701141
   3     1  156288321 ide/host0/bus0/target0/lun0/part1 20 4 162 20 12 3 120 0 0 20 20
   3    64  156290904 ide/host0/bus0/target1/lun0/disc 241433 3543713 30281042 2206440 317 164 3848 4250 -2 23013877 41911821
   3    65  156288321 ide/host0/bus0/target1/lun0/part1 241432 3543710 30281034 2206430 317 164 3848 4250 0 689360 2210680
 
Old 03-21-2006, 01:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the first will be udev (propbably), the second devfs i assume. devfs is now deprecated and would work by having /dev/hda1 (for example) as a sylink only to the more unweildly entry you see there.
 
Old 03-21-2006, 04:13 PM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
my devfs probably isn't working properly then since I have a /dev full of devices I don't have and it's making an ugly mess of my cat /proc/partitions...

I'm on debian, should I try to get rid of devfs and how would I do this, apt-get remove to get rid of a possible kernel module or just passing a kernel parameter to switch it off at boot time?
 
Old 03-21-2006, 04:18 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you'd generally recompile your kernel to use udev instead, the more recent 2.4 branch releases have udev back ported to it i'm sure. there's also the userland packages to install for it too.
 
Old 03-22-2006, 02:59 AM   #5
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
bearing in mind this is debian and therefore the kernel is precompiles, I'd rather just stick to the stock kernel and append a kernel parameter if possible, but I may end up just doing a vanilla kernel compilation if not possible.
 
  


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
cat /proc/cpuinfo on AMD3000+ 3saul Linux - Software 8 03-07-2006 07:38 AM
what's the difference between cat /proc/cpuinfo and x86info jayeola Linux - Hardware 1 12-15-2005 07:45 PM
cat /proc/acpi/thermal_zone/THRM/temperature qwijibow Linux - General 4 01-12-2005 04:48 AM
cat layer7 pattern to /proc/net/layer7_protocols joirnange Linux - Newbie 1 12-29-2004 02:58 AM
oops, ascii 'graphics' characters after cat /proc/kcore itsjustme Slackware 3 05-13-2003 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:33 AM.

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