Unoffical empeg BBS

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

Page 2 of 2 < 1 2
Topic Options
#59928 - 19/01/2002 14:58 Re: e2fsck? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
So do you recommend that I change my FAQ entry to your lines instead of the ones that are there?

I don't understand any of this, I'm just parroting.
_________________________
Tony Fabris

Top
#59929 - 19/01/2002 17:31 Re: e2fsck? [Re: tfabris]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I still think it's safer to umount the filesystems you can (/drive0 and /drive1). Then there's not much need to sync or reboot. However, it makes a lot of sense to run sync before rebooting after fscking an un-umountable filesystem, like /.

Edit: After rereading your FAQ entry, you should make the following changes:

  • add `a' and `y' flags to the fsck commands you have now so that it reads ``fsck -fay ...''.
  • add info about how to fsck the root filesystem:

    ro

    fsck -fay /

    sync

    [reboot]

  • the caveat about rebooting need only apply to the root fsck


Edited by wfaulk (19/01/2002 17:38)
_________________________
Bitt Faulk

Top
#59930 - 20/01/2002 13:01 Re: e2fsck? [Re: wfaulk]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
It seems as though there are differing opinions of how to go about this.

You experts please hash it out here and come to a consensus amongst yourselves. When you're all done and all agree, I'll put the "consensus" version in the FAQ.
_________________________
Tony Fabris

Top
#59931 - 21/01/2002 04:47 Re: e2fsck? [Re: tfabris]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Okay. Anyone disagree with my previous statement? I'm fine with keeping in the unnecessary reboots. It's hardly an issue with the empeg, as it has no uptime requirements, nor does it take a long time to reboot, and there's no need to babysit it, anyway. Adding the root fs info would be a plus, though.
_________________________
Bitt Faulk

Top
#59932 - 21/01/2002 09:28 Re: e2fsck? [Re: wfaulk]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
For simplicity, it is best to sync;reboot after any filesystem checks on the player. That is what the FAQ should recommend.

For those "in the know", if you run fsck on a "mounted read-only" filesystem, it is possible for fsck to "repair" something without that knowledge being passed on to the kernel filesystem code.. thus the kernel may have one view in memory, when in fact fsck has written a differing view to the disk.

This will confuse the player, and possibly result in filesystem corruption if the filesystem is later remounted rw (dubious, but perhaps possible). This is why the fsck program warns against running it on a mounted filesystem, even when the filesystem is "read-only".

So, again, the simplest rote sequence for everyone:

ro
fsck -fay /
fsck -fay /drive0
fsck -fay /drive1
sync

[reboot the player]

Strictly speaking, the "-fay" could be replaced with "-ay", to avoid having fsck run on filesystems it "knows" are okay. But this discussion was about forcing checks, so..

-ml


Edited by mlord (21/01/2002 09:29)

Top
#59933 - 21/01/2002 11:22 Re: e2fsck? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
And that will definitely get rid of the error messages?

Empeg guys, is this good?
_________________________
Tony Fabris

Top
#59934 - 21/01/2002 11:25 Re: e2fsck? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Yes, that will definitely get rid of the "maximal mount count" warnings.. but so too will setting the Hijack "Filesystem Check on Sync" setting to "Disabled".

cheers

Top
#59935 - 21/01/2002 12:12 Re: e2fsck? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Yes, I'm aware of that neat feature in Hijack.

But I'm not just concerned about the maximal mount count. I'm also concerned about the other similar error that happens when you reboot the file systems in RW mode. Will this also clear that error as well?
_________________________
Tony Fabris

Top
#59936 - 21/01/2002 12:30 Re: e2fsck? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Yes, it clears all errors.

Top
#59937 - 21/01/2002 12:32 Re: e2fsck? [Re: mlord]
cwillenbrock
enthusiast

Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
Is this something to worry about? I ran the fsck -fay / and fsck -fay /drive0 commands without error, but I get the following message when running fsck -far /drive1

empeg:/empeg/bin# fsck -fay /drive1

Parallelizing fsck version 1.19 (13-Jul-2000)
e2fsck 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
ext2fs_check_if_mount: No such file or directory while determining whether /drive1 is mounted.
fsck.ext2: Is a directory while trying to open /drive1

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193

empeg:/empeg/bin#


I can see and browse through /drive1 through http/ftp and command prompt. Is there a problem with the partition if the filesystem check is giving me this message?
_________________________
- Chris Orig. Empeg Queue position 2

Top
#59938 - 21/01/2002 12:40 Re: e2fsck? [Re: cwillenbrock]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
I suspect that fsck is not looking in /proc/mounts to find the partition name of the disk -- either that or it's not actually mounted. The default /etc/fstab doesn't ship with /drive1 listed in it.

You need to change those commands so that /drive0 reads /dev/hda4 and that /drive1 reads /dev/hdc4

_________________________
-- roger

Top
#59939 - 21/01/2002 12:46 Re: e2fsck? [Re: Roger]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
And would that work on a Mk1 as well?
_________________________
Tony Fabris

Top
#59940 - 21/01/2002 13:03 Re: e2fsck? [Re: tfabris]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Should do -- I don't have my mk1 handy to check this, unfortunately.
_________________________
-- roger

Top
#59941 - 21/01/2002 13:20 Re: e2fsck? [Re: Roger]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
Yes, /drive1 is /dev/hdc4 on a MkI too. Actually it's on the MkI that this is "same as on an ordinary PC". You relabel the devices for the first IDE channels slave drive to /dev/hdcX on the MkII (where it would "normally" be called /dev/hdbX), I guess so that it can use the same code/same instructions as the MkI...

/Michael
_________________________
/Michael

Top
#59942 - 21/01/2002 14:11 Re: e2fsck? [Re: mtempsch]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
So then, I should have the FAQ say:

ro
fsck -fay /
fsck -fay /dev/hda4
fsck -fay /dev/hdc4
sync

[reboot the player]


Will that work in all cases? Is there a consensus on this?
_________________________
Tony Fabris

Top
#59943 - 21/01/2002 14:13 Re: e2fsck? [Re: tfabris]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Should work in all cases. I think it's a little overkill, and very slightly undersafe, but there's not a lot of drawback to the overkill and the undersafe is kinda irrelevant considering the machine is in, basically, a single-user mode. Anyone who has a system where it won't work safely knows enough not to do it that way.
_________________________
Bitt Faulk

Top
#59944 - 22/01/2002 04:50 Re: e2fsck? [Re: tfabris]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Greetings!

You might want to add a line about turning the swap on and off...
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#59945 - 22/01/2002 05:21 Re: e2fsck? [Re: pgrzelak]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Oh yeah, good point.
_________________________
-- roger

Top
#59946 - 22/01/2002 10:13 Re: e2fsck? [Re: pgrzelak]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Arg, okay, how do I add a line about turning the swap on and off?

Will somebody please give me an exact list of things to type that everyone agrees on?
_________________________
Tony Fabris

Top
#59947 - 22/01/2002 11:40 Re: e2fsck? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
The command to turn swap off is
swapoff -a
.
_________________________
- Tony C
my empeg stuff

Top
#59948 - 22/01/2002 11:48 Re: e2fsck? [Re: tonyc]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
And this goes... where?
_________________________
Tony Fabris

Top
#59949 - 22/01/2002 11:55 Re: e2fsck? [Re: tonyc]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Except that you might want to turn swap on before starting the fsck -- it can use a lot of memory, and you wouldn't want it to run out half-way through.
_________________________
-- roger

Top
#59950 - 22/01/2002 12:05 Re: e2fsck? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
I dunno, I rarely need to use swap space on my Empeg so I've never had to turn it on/off for fsck. I've never had it run out of memory as Roger suggests it might, but I think this is what we're getting at:


ro
swapon -a
fsck -fay /
fsck -fay /dev/hda4
fsck -fay /dev/hdc4
sync
swapoff -a

[reboot the player]



I guess the swapoff could be before the sync but I don't think that matters.

The whole swapon/swapoff bit assumes you've created swap space somewhere, and I don't know that the player, by default, has that. I know it has a partition designed for swap space (hda6) but I dunno if it's used in an "out of the box" configuration. In thatcase, the user would have had to execute a mkswap command to set up the swap space, like "mkswap /dev/hda6" or something.

Is this the longest discussion of a FAQ entry ever, or what!
_________________________
- Tony C
my empeg stuff

Top
#59951 - 22/01/2002 12:28 Re: e2fsck? [Re: tonyc]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
The player's swap space is configured correctly. The player itself turns swap on when doing an fsck, which is why I suggested it. I'm still not convinced about leaving the music partitions mounted while running fsck, though, and in deference to the fact that the /etc/fstab file might not have everything in it, I'd go with this:

ro
umount /dev/hda4
umount /dev/hdc4
swapon /swapfile
fsck -fay /
fsck -fay /dev/hda4
fsck -fay /dev/hdc4
swapoff /swapfile
sync


and then reboot.

The swapon/off lines are actually what the player does. /swapfile is a symlink to /dev/hda6

_________________________
-- roger

Top
#59952 - 22/01/2002 12:39 Re: e2fsck? [Re: Roger]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Okay, so is this good with everyone?
_________________________
Tony Fabris

Top
#59953 - 22/01/2002 12:44 Re: e2fsck? [Re: tfabris]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Okay, so is this good with everyone?

Roger that!

(ducking to avoid tomatoes)
_________________________
- Tony C
my empeg stuff

Top
#59954 - 22/01/2002 12:48 Re: e2fsck? [Re: tonyc]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Okay. That's one vote. Mark?
_________________________
Tony Fabris

Top
Page 2 of 2 < 1 2