My empegs sprouted hdc!

Posted by: genixia

My empegs sprouted hdc! - 25/03/2002 14:42

http://myempeg/proc/mounts


/dev/root / ext2 ro 0 0
none /proc proc rw 0 0
/dev/hda4 /drive0 ext2 ro 0 0
/dev/hdc4 /drive1 ext2 ro 0 0


What's going on? There is no hdc in this box - it should be hdb.
Posted by: mlord

Re: My empegs sprouted hdc! - 25/03/2002 14:46

The empeg software fools around with hard drive names.

On a Mark1 player, the REAL drives are hda and hdc,
but on a Mark2(a) they are hda and hdb.

The empeg software just conveniently uses the same names on both platforms. The kernel doesn't care what the name is, so long as the /dev/ entry has the right device numbers (ls -l /dev/hd[ab]). But the entries in /proc, including /proc/ide and /proc/mounts, will should the "standard" names regardless of what was used in /dev/

Confused?
Posted by: genixia

Re: My empegs sprouted hdc! - 25/03/2002 15:45

Yes!

If I understand you correctly, I shouldn't see:

http://myempeg/proc/ide

dr-xr-xr-x 3 0 0 0 Sep 23 03:46 ./
dr-xr-xr-x 35 0 0 0 Sep 23 01:12 ../
-r--r--r-- 1 0 0 0 Sep 23 03:46 drivers
lrwxrwxrwx 1 0 0 0 Sep 23 03:46 hdb -> ide0/hdb
lrwxrwxrwx 1 0 0 0 Sep 23 03:46 hda -> ide0/hda
dr-xr-xr-x 4 0 0 0 Sep 23 03:46 ide0/


?
Posted by: mlord

Re: My empegs sprouted hdc! - 25/03/2002 17:21

You should see /proc/ide/hdb if you have a mark2(a) player.
Posted by: genixia

Re: My empegs sprouted hdc! - 25/03/2002 21:07

But the entries in /proc, including /proc/ide and /proc/mounts, will should the "standard" names regardless of what was used in /dev/

Ok, I understand why the empeg guys would fool their software by having hdc across all models. That bit I got.
But from your statement above, I read it as meaning that both /proc/ide and /proc/mounts would have the same devices. (I assumed by 'standard' you meant 'linux-standard' and not 'empeg-standard', but the point is that your statement suggests that they should at least be the same!).

So anyway - I'm still a little confused. I'm sure a little kernel and /dev/ examination would clear it up for me....but my bedtime reading consists of empeg_power.c at the moment
Posted by: smu

Re: My empegs sprouted hdc! - 26/03/2002 09:39

Hi.

Well, /proc/mounts will always show the device name used to initiate the mount. That is either the device nodes name you specified in /etc/fstab or the name you gave on the commandline for "mount /dev/<device> /<mountpoint>. It couls even show /dev/rootpartition as the device if that node existed and had the correct device numbers (major and minor) and possibly also if that is just a symlink to the actually used device node.
/proc/ide* will show the linux standard names for the devices. It will always show hdb for the second drive on the first bus and hdc for the first device on the second bus, no matter how the device nodes in /dev/ where named.

cu,
sven