Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#83404 - 25/03/2002 14:42 My empegs sprouted hdc!
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
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.
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#83405 - 25/03/2002 14:46 Re: My empegs sprouted hdc! [Re: genixia]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
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?

Top
#83406 - 25/03/2002 15:45 Re: My empegs sprouted hdc! [Re: mlord]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
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/


?
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#83407 - 25/03/2002 17:21 Re: My empegs sprouted hdc! [Re: genixia]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
You should see /proc/ide/hdb if you have a mark2(a) player.

Top
#83408 - 25/03/2002 21:07 Re: My empegs sprouted hdc! [Re: mlord]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
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
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#83409 - 26/03/2002 09:39 Re: My empegs sprouted hdc! [Re: genixia]
smu
old hand

Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
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
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord

Top