
Hi all, Yesterday, I did nothing special with the computer... However, this morning, something special came to me when I booted it up "/etc/init.d/rcS line 227: /sbin/fsck fsck failed. Please repair manually ... "more text"... " Does anyone got any idea what the problem is this and how to get over ? Thanks lot people Nigel -- Ask not what the computer can do for you Ask what you can do with your computer.

On Thu, 2005-01-06 at 14:46 +1300, Nigel Nguyen wrote:
Hi all,
Yesterday, I did nothing special with the computer... However, this morning, something special came to me when I booted it up
"/etc/init.d/rcS line 227: /sbin/fsck fsck failed. Please repair manually ... "more text"... "
Does anyone got any idea what the problem is this and how to get over ?
Fsck is a file system check. It's usually run on boot when the filesystem was not umounted properly, or sometimes it runs every n mounts, etc. When a fsck fails it probably means that some part of your file system has been corrupted. There are a number of things that could have caused this and it's not necessarily fatal. In my experience Linux is very good at recovering filesystem inconsistencies caused by forced shutdowns, of course if your hard disk is dying... who knows. I suggest you read the fsck manpage which has plenty of information on the suggested steps for recovering from a failed fsck (it basically involves invoking fsck again with some special options to try and recover). If you're still stuck, let us know what filesystem you're using and we can go from there. Regards -- Matt Brown matt(a)mattb.net.nz Mob +64 275 611 544 www.mattb.net.nz

Yesterday, I did nothing special with the computer... However, this morning, something special came to me when I booted it up
"/etc/init.d/rcS line 227: /sbin/fsck fsck failed. Please repair manually ... "more text"... "
Does anyone got any idea what the problem is this and how to get over ?
fsck is to linux what scandisk is to windows. It checks your partitions for inconsistencies. If fsck fails, it normally means it came across an error which it prefers to ask for permission to fix. The "more text" bit should have told you how to run fsck manually to fix this problem. It'll definitely tell you which partition was at fault, so you'll need to boot into single user more and run that command. This generally means there has been some sort of filesystem corruption, although why and where it happened can be for any number of reasons - broken kernels, broken hardware, sunspots, etc.

Hi guys, Thank for responses first Here is the full text that include the "more text": [snip] /etc/init.d/rcS line 227: /sbin fsck permission denied fsck failed. Please repair manually. Please note that root filesystem is current mounted read-only to remount it read-write #mount -n -o remount, rw / Ctrl-D will exit from shell and reboot the system. [/snip] [roll-eyes] I try to get to rescue mode (single user, init=/bin/bash)... - Get to shell: try /etc/init.d/rcS -> same error - run: $> mount -n -o remount, rw / it says: EXT3 FS on hdc1, internal journal - try: /sbin/fsck /dev/hdc1 error come up: Permission denied so I got a feeling something wrong with permission in fsck thing :) b'coz currrent i'm root but cannot execute it :) Thanks in advance Nigel On Thu, 2005-01-06 at 14:59 +1300, Daniel Lawson wrote:
Yesterday, I did nothing special with the computer... However, this morning, something special came to me when I booted it up
"/etc/init.d/rcS line 227: /sbin/fsck fsck failed. Please repair manually ... "more text"... "
Does anyone got any idea what the problem is this and how to get over ?
fsck is to linux what scandisk is to windows. It checks your partitions for inconsistencies. If fsck fails, it normally means it came across an error which it prefers to ask for permission to fix.
The "more text" bit should have told you how to run fsck manually to fix this problem. It'll definitely tell you which partition was at fault, so you'll need to boot into single user more and run that command.
This generally means there has been some sort of filesystem corruption, although why and where it happened can be for any number of reasons - broken kernels, broken hardware, sunspots, etc.
-- Nigel Nguyen Email: nigel(a)nigelnguyen.org Website: www.nigelnguyen.org Phone: +64 21 484628 Ask not what computer can do for you, Ask what you can do with your computer.

You have to be i root to fix it su - rgds harry ----- Original Message ----- From: "Nigel Nguyen" <nigelnguyen(a)gmail.com> To: "Waikato Linux Users Group" <wlug(a)list.waikato.ac.nz> Sent: Thursday, January 06, 2005 3:21 PM Subject: Re: [wlug] /etc/init.d/rcS error
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

On Thu, 2005-01-06 at 16:49 +1300, Harry Wieldraayer wrote:
You have to be i root to fix it su - rgds harry
I thought in rescue mode, I'm already "root". Anyway try issue "su" => bash: no job control in this shell . Well, no helps yet.. :) Any ideas ppl ? Thanks lots in advance, Nigel -- Nigel Nguyen Email: nigel(a)nigelnguyen.org Website: www.nigelnguyen.org Phone: +64 21 484628 Ask not what computer can do for you, Ask what you can do with your computer.

/etc/init.d/rcS line 227: /sbin fsck permission denied fsck failed. Please repair manually. Please note that root filesystem is current mounted read-only to remount it read-write #mount -n -o remount, rw / Ctrl-D will exit from shell and reboot the system.
[/snip]
Unix will give you permission denied if you ever try to execute a program but the program is not set executable. Run: ls -l /sbin/fsck* and check that they are all executable. As to why any of them may have been set not executable, I have no idea. If you are still having problems, send the output of that command back and we can check that it looks ok. Cheers, Jamie

Unix will give you permission denied if you ever try to execute a program but the program is not set executable. Run:
ls -l /sbin/fsck*
and check that they are all executable. As to why any of them may have been set not executable, I have no idea. If you are still having problems, send the output of that command back and we can check that it looks ok.
issue the command: yeah there are executable (a nice greeny, that mean to me executable) but at very first of the lines: ?rwxrwxrwx 9 <bignumber> <bignumber> <filesize> /sbin/fsck I guess the bignumber is b'coz i am in the rescue-mode right ? But I don't know about ?rwxrwxrwx => what "?" mean then ? Thanks lot, Nigel -- Nigel Nguyen Email: nigel(a)nigelnguyen.org Website: www.nigelnguyen.org Phone: +64 21 484628 Ask not what computer can do for you, Ask what you can do with your computer.

Nigel Nguyen wrote:
Unix will give you permission denied if you ever try to execute a program but the program is not set executable. Run:
ls -l /sbin/fsck*
and check that they are all executable. As to why any of them may have been set not executable, I have no idea. If you are still having problems, send the output of that command back and we can check that it looks ok.
issue the command: yeah there are executable (a nice greeny, that mean to me executable) but at very first of the lines:
?rwxrwxrwx 9 <bignumber> <bignumber> <filesize> /sbin/fsck
I guess the bignumber is b'coz i am in the rescue-mode right ? But I don't know about ?rwxrwxrwx => what "?" mean then ?
the ? is worrying. That means that fsck is a special file, and ls doesn't know what type of special file it is. fsck shouldn't be a special file, fsck should be a normal regular file. If thats the case then you've had some pretty nasty filesystem corruption. Normally I'd recommend running fsck to repair it but uh, that has issues :) If you're running gentoo on this machine (you were asking about gentoo earlier right?) then you might want to "emerge e2fsprogs" again. This will require the filesystem to be mounted readwrite (mount -o remount,rw /) which might be a bit dangerous. If you have any important files on this machine I'd suggest copying them off first. if you can't get emerge working, then you may have to tinker with debug2fs which is uh, painful.

the ? is worrying. That means that fsck is a special file, and ls doesn't know what type of special file it is. fsck shouldn't be a special file, fsck should be a normal regular file. If thats the case then you've had some pretty nasty filesystem corruption. Normally I'd recommend running fsck to repair it but uh, that has issues :)
If you're running gentoo on this machine (you were asking about gentoo earlier right?) then you might want to "emerge e2fsprogs" again. This will require the filesystem to be mounted readwrite (mount -o remount,rw /) which might be a bit dangerous. If you have any important files on this machine I'd suggest copying them off first.
if you can't get emerge working, then you may have to tinker with debug2fs which is uh, painful.
It not my new machine [phews, lucky me]. The new box is still on the way :)) (as most shop open yesterday) and this is the old box that running ubuntu :). Anyway that mean, I have suffered a ultra-multi-deep-sh*t severe file-corruption :), that remind me, yesterday we had an black-out for 20mins, that made me away from that computer. Uhm... what I think I should do is re-install the box and in the mean time called Genesis to complain that they screwed up my box. However if I do the full install and I currently had 3 partition on that box: hdc1 - / (root) hdc6 - swap hdc7 - /home so my /home should be okay right if I leave it intact and use it as /home for my new installation ? How can I check my /home partition is not corrupted (lots of my music and movies in there...)? Luckily, my laptop didn't blow up either... otherwise genesis office might burn-down in the next couple hrs [cheeky]... p.s: I am sitting on gentoo laptop and write this email. -- Nigel Nguyen Email: nigel(a)nigelnguyen.org Website: www.nigelnguyen.org Phone: +64 21 484628 Ask not what computer can do for you, Ask what you can do with your computer.

On Thu, Jan 06, 2005 at 06:53:18PM +1300, Nigel Nguyen wrote:
so my /home should be okay right if I leave it intact and use it as /home for my new installation ? How can I check my /home partition is not corrupted (lots of my music and movies in there...)?
It would need to be checked aswell (fsck). Depends what was happening at the time, IMO you'd be very unlucky to have a power cut do so much damage.
Luckily, my laptop didn't blow up either... otherwise genesis office might burn-down in the next couple hrs [cheeky]...
Saying silly things like this can get a person in a lot of trouble. James.

Nigel Nguyen wrote:
the ? is worrying. That means that fsck is a special file, and ls doesn't know what type of special file it is. fsck shouldn't be a special file, fsck should be a normal regular file. If thats the case then you've had some pretty nasty filesystem corruption. Normally I'd recommend running fsck to repair it but uh, that has issues :)
If you're running gentoo on this machine (you were asking about gentoo earlier right?) then you might want to "emerge e2fsprogs" again. This will require the filesystem to be mounted readwrite (mount -o remount,rw /) which might be a bit dangerous. If you have any important files on this machine I'd suggest copying them off first.
if you can't get emerge working, then you may have to tinker with debug2fs which is uh, painful.
It not my new machine [phews, lucky me]. The new box is still on the way :)) (as most shop open yesterday) and this is the old box that running ubuntu :).
Anyway that mean, I have suffered a ultra-multi-deep-sh*t severe file-corruption :), that remind me, yesterday we had an black-out for 20mins, that made me away from that computer. Uhm... what I think I should do is re-install the box and in the mean time called Genesis to complain that they screwed up my box. However if I do the full install and I currently had 3 partition on that box: hdc1 - / (root) hdc6 - swap hdc7 - /home
so my /home should be okay right if I leave it intact and use it as /home for my new installation ? How can I check my /home partition is not corrupted (lots of my music and movies in there...)?
Yeah that should be fine. I'd recommend fsck to verify that it's ok but uh... So perhaps mount /home then poke around in /home to see if it's ok. Remember to umount /home when you're done before you reboot the machine (since the machine won't)
Luckily, my laptop didn't blow up either... otherwise genesis office might burn-down in the next couple hrs [cheeky]...
p.s: I am sitting on gentoo laptop and write this email.
------------------------------------------------------------------------
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

You want to call WEL Networks not Genesis for line faults... (I work in Genesis call centre) On Thu, 06 Jan 2005 18:53:18 +1300, Nigel Nguyen <nigelnguyen(a)gmail.com> wrote:
the ? is worrying. That means that fsck is a special file, and ls doesn't know what type of special file it is. fsck shouldn't be a special file, fsck should be a normal regular file. If thats the case then you've had some pretty nasty filesystem corruption. Normally I'd recommend running fsck to repair it but uh, that has issues :)
If you're running gentoo on this machine (you were asking about gentoo earlier right?) then you might want to "emerge e2fsprogs" again. This will require the filesystem to be mounted readwrite (mount -o remount,rw /) which might be a bit dangerous. If you have any important files on this machine I'd suggest copying them off first.
if you can't get emerge working, then you may have to tinker with debug2fs which is uh, painful.
It not my new machine [phews, lucky me]. The new box is still on the way :)) (as most shop open yesterday) and this is the old box that running ubuntu :).
Anyway that mean, I have suffered a ultra-multi-deep-sh*t severe file-corruption :), that remind me, yesterday we had an black-out for 20mins, that made me away from that computer. Uhm... what I think I should do is re-install the box and in the mean time called Genesis to complain that they screwed up my box. However if I do the full install and I currently had 3 partition on that box: hdc1 - / (root) hdc6 - swap hdc7 - /home
so my /home should be okay right if I leave it intact and use it as /home for my new installation ? How can I check my /home partition is not corrupted (lots of my music and movies in there...)?
Luckily, my laptop didn't blow up either... otherwise genesis office might burn-down in the next couple hrs [cheeky]...
p.s: I am sitting on gentoo laptop and write this email. -- Nigel Nguyen
Email: nigel(a)nigelnguyen.org Website: www.nigelnguyen.org Phone: +64 21 484628
Ask not what computer can do for you, Ask what you can do with your computer.
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

When/if you re-install it may be worth noting to use a newer design fs (yes, EXT3 is new, but an attachment to EXT2) like Reiserfs or xfs. I always recommend reiser ever since I did some "stress" testing (which involved mashing the power button while running quick and dirty thrashing/multi-threaded file copy/heavy mysql stuff tests) when I was looking at using it on a production machine. I havn't come accross an error in reiser that wasn't automagically fixed -except when the drive control electronics of this one harddisk decided to melt violently. Though other filesystems *may* be better, can never be sure on stuff like that. Otherwise, feel free to ignore. BTW - Ian, you poor guy :|. Ian McDonald wrote:
You want to call WEL Networks not Genesis for line faults...
(I work in Genesis call centre)
On Thu, 06 Jan 2005 18:53:18 +1300, Nigel Nguyen <nigelnguyen(a)gmail.com> wrote:
--snip--
participants (9)
-
Daniel Lawson
-
Harry Wieldraayer
-
Ian McDonald
-
James Clark
-
Jamie Curtis
-
Malcolm
-
Matt Brown
-
Nigel Nguyen
-
Perry Lorier