Unoffical empeg BBS

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

Topic Options
#20147 - 12/10/2000 05:35 Partitions
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Okay, here's what I know so far about the default partitions available on the Empeg. Someone correct me if I'm wrong about any of this

empeg:/# cat /proc/partitions
major minor #blocks name

3 0 17716608 hda
3 1 1 hda1
3 2 33264 hda2 ext2 partition for user stuff
3 3 16632 hda3 ???? partition for settings, playlists, etc
3 4 17633448 hda4 ext2 partition for /drive0 (music)
3 5 16569 hda5 ext2 root partition
3 6 16600 hda6 swap partition

So here's what I'm not certain of. I've read several times that the disks are mounted read-only and kept spun down most of the time, etc. But if hda3 is a dynamic partition that stuff is written to (playlists and such) how is it kept read only? Also, I've read that it's some custom Empeg filesystem type, and "is not suitable for developer use." That's okay, but is there any way to *read* the contents? I was looking for a way I could drop to a shell and get the name of the song that was currently playing in the player (from this partition) and then find the corresponding FID file and delete it with a script. Like I know the "mark track" feature is coming, but until then, I thought I could quit the player to a shell and run a script to delete the currently playing tune. To do this it seems I'd need to be able to read something from /dev/hda3.

So regardless of whether that's possible or not, can someone tell me what the deal is with this partition? If the drives are kept read only, I'm a little confused as to how data gets to this guy.


-Tony
MkII #554

_________________________
- Tony C
my empeg stuff

Top
#20148 - 12/10/2000 05:45 Re: Partitions [Re: tonyc]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Partitions are always read/write; the ext2 partitions are *mounted* read only. /dev/hda3 is not ever "mounted", we deal with it ourselves, using it at sector level.

You can open a block device as you would any other file, but (ISTR) you need to start any i/o requests at sector boundaries, though the lengths you request don't have to be sector multiples.

The partition doesn't store the currently playing file, just the current playlist - the index into the playlist is stored in /dev/empeg_state. The problem with us documenting this is that we treat it as internal data and we change it regularly - 1.1 uses the partition differently to 1.01 for example. Deleting the currently playing fid may well be problematic, as you'd have to remount the partition when it had files open (which it may well not let you do).

Hugo



Top
#20149 - 17/10/2000 05:20 Re: Partitions [Re: altman]
anti
member

Registered: 10/07/2000
Posts: 117
Loc: BaWue, Germany, Europe
assuming I would manage to
- resize hda4 (make it smaller) without harming the ext2fs in any way
- move hda5 and hda6 "up" by the amount I just shrunk hda4
- create a new hda7 in the free space

Would that bother the player at all ?
(I assume it just reads the partition table and then uses the (standard?) ext2fs-driver.)

If I break the player in the process (e.g. ruining the partition-table or killing the fs on hda4/5/6)
will I be able to rescue it ? Easily ?

Why ?
I would prefer to have all my "applications" on a seperate partition.
And maybe have a small partition with a journaled fs for dynamic data.

just a thought
anti


_________________________
-------------------- MKII 08000073 40GB BLUE

Top
#20150 - 17/10/2000 16:13 Re: Partitions [Re: anti]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
When you upgrade the player, it rewrites the partition table; it's not a good idea to change it, everything will break horribly.

If you need space, use /dev/hda2 or create a directory on the music partition otherwise you won't be able to use upgrade files without trashing the unit.

Hugo



Top
#20151 - 17/10/2000 18:01 Re: Partitions [Re: altman]
bmihulka
enthusiast

Registered: 15/06/1999
Posts: 259
Loc: Lincoln, NE
Durring an upgrade does the installer touch the partition table of the second harddrive?


-Finally received my Mark2 no thanks to customs.
_________________________
Brian

-See my empeg <a href="www.hulkster.net/empeg" target="_blank">here</a>-

Top
#20152 - 18/10/2000 02:04 Re: Partitions [Re: bmihulka]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Not at the moment, no.

Hugo



Top
#20153 - 18/10/2000 03:08 Re: Partitions [Re: anti]
Wire
member

Registered: 11/09/2000
Posts: 143
Loc: Jylland, Denmark
Apropos journaled filesystem....

http://slashdot.org/features/00/10/13/2117258.shtml

Sounds nice, as it's an extension for the ext2fs.




Lars
_________________________
Lars MkII 40gig 090000598

Top