The Linux Administration group is for the discussion of technical issues technical issues that arise during the administration of Linux systems, including maintaining the operating system and supporting end-user applications.

FTAB problem on FEDORA CORE 4

Hi everybody.
I had a crash on my pc and so I had to turn off the power. When I restart ,type STARTX (as user or as root) I receive an error message:
"pam_console[1913]: could not open lock file in /var/run/console/mylogin, disallowing console access".

I made some check and my filesystem seems to be READONLY. I can read my data but I cannot do anything on them.

Easiest fix I know is to reboot into single user mode and run a manual
filesystem check:

reboot and then at the grub prompt type in "a" to append and at the end
put in one space and then a "1" and that will boot you into single user
mode and then run fsck -y / (and any other filesystems that you may
have)

when you reboot you will see the screen that comes up with a menu of
which kernel to boot to, there will probably only be two. Sometimes
Fedora tries to skip past those and it shows you a message stating that
it will automatically boot in 5,4,3,... seconds. If that happens you
need to hit the enter key before the countdown gets to 0 and this will
bring the grub or boot menu up. The top menu selection should be the
one you want to use so use the up or down arrows to highlight that one
and then enter the letter "a" to append and that will bring up another
screen. At that screen enter one space using spacebar and then the
number "1" and then hit the enter key. This will bring you up in single
user mode. Then run fsck -y /
and possibly fsck -y /usr

Check your filesystems using df -k and then you know what filesystems
you will have to run fsck on.

As for the shutdown command line options. -F on AIX is fast reboot on
RH EL 2.1/3.0 On Fedora it is force an fsck. best issue is RTFM => man
shutdown or info shutdown or shutdown --help or whatever other way you
get some docs for the command for your choice OS.

Anybody know where I would use sync;sync;sync;init 6 to reboot a system?
AT&T SYSV Rel. 3.1.1/3.2.2/3.2.3 ;)

As for the MTAB something is amiss with that file...
Now what is the hardware/OS that is being used. I get NO BIOS active on
several of my servers but that is because it is not active on the QLA
cards that attach my servers to the SAN. mtab should be recreated on
every boot based off of what gets put in by mounted file systems, so
something could be amiss in your /etc/fstab and not being put into the
mtab correctly.

But depending on OS again this could be something different Fedora Core
4 does not have /etc/mtab but it does have /proc/mounts -> self/mounts