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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-21-2006, 10:02 AM
|
#1
|
Member
Registered: Jun 2005
Posts: 374
Rep:
|
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
|
|
|
03-21-2006, 01:26 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
03-21-2006, 04:13 PM
|
#3
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
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?
|
|
|
03-21-2006, 04:18 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
03-22-2006, 02:59 AM
|
#5
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|