Boot error fsck failed

Hi

OpenSuse 11.3
Windows XP system

Everything worked fine. But all of a sudden when I boot I get a bunch of error messages

fsck failed and I must tdo it manually
then it says that the root is only mounted read to mount read write do
enter root pw

bash# mount -n -o remount,rw /

I get a red prompt

(repairfilesystem)#

I dont know what to do

if I run fsck it says root is already mounted and if i continue severe damage will occur, do I want to continue!

please help!

thanks!

On 2011-09-20 16:56, ClrScr wrote:

> I dont know what to do
>
> if I run fsck it says root is already mounted and if i continue severe
> damage will occur, do I want to continue!

Boot from a live system (CD) and run an fsck on that filesystem.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Thanks Carlos

now the next question

I have the install dvd and when I choose the repair option it goes to a text screen asking me to login to root but I do not remember what my root username is! (redface)
I set it so that it boots up automatically and never need to use it!
how can I find that out!
i definitely knwo the root pw! I use it when using yast

thanks!

If you booted the install DVD, then you need the root password for the install DVD. You don’t need to one that you have forgotten.

The root password for the install DVD should be empty. When asked for root password, just hit ENTER.

Thanks!

I will try that NOW!

If you run repair you should not need to login.

The root user name is root. If you took all the defaults on install the root password is the same as you user password.

Thanks but not real success

I get the following messages when trying to boot now
Code:
EXT4 -fs (sdb: unable to read superblock
mount: wrong fs type, bad option, bad superblock on /dev/sdb6, missing codepage or helper program or other error
_

could not mount root filesystem – exiting to /bin/sh
sh:cannot set terminal process group (-1): Inappropriate ioctl for device
sh:no sub control in shell

what to do next?
reinstall?

On 2011-09-20 18:36, ClrScr wrote:

> what to do next?

The same, you have to repair that partition (/dev/sdb6) using a live system.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Uhm, meaning?

Thanks Carlos! I appreciate your help and patience!

On 2011-09-20 19:46, ClrScr wrote:
> Uhm, meaning?

Boot from CD and then run fsck on that broken partition.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Note if the FS is sufficiently messed up you may not recover all the files into their original location those pieces that could not be fitted back into the puzzle are found in the Lost&Found directory. For practical purposes these are really lost particularly for binary files. You would need to reinstall to fix things. Note also that when this happens it may indicate a drive going bad.

Once you get up and running in a Live CD environment (you can use any Live CD, Suse, Ubuntu, Knoppix - it really does not matter) you can run the fsck commands on your partitions. The exact step on how to get to the command prompt in the live CD environment differ slightly depending on what tool you use - but all of them will give you some way to just get to a command prompt - - ctrl+alt+f1 works great.

Once there you can use fsck to repair the file system. While you are there, you might also run: smartctrl -a /dev/sda and see how many pending and reallocated sectors the table of results shows - any non-zero values are basically bad, even one pending sector can make for a very bad day. (Your live environment may or may not have this tool installed, though you can do zypper install smartmontools, etc. to install it)

I know learning to use a Live CD environment might seem complex, and a pain - but I can honestly tell you the time you spend doing so will pay off hugely in the long run. It is honestly one of the best things about Linux! Once you get to know the power of the tools you have at your fingertips on a Live CD, the world changes forever.

Cheers,
Lews Therin

I took the risk with my virtual appliance that is running Suse Linux as well. Ran the e2fsck command and it worked perfectly.
Here is the post I followed: http://www.virtualizationteam.com/server-virtualization/vcenter-appliance-fsck-failed.html