PDA

View Full Version : Booting problem due to Linux filesystem in Readonly



Saketram
22nd August 2006, 06:04 PM
Hello!!

I just had deleted all partition in additional hard-disk and repartition there (I did not touch anything in Fedora Core 5 linux hard disk), and then modified /etc/fstab in order to mount the newly created partition.

Since then I got the following problem, I just removed the lines in fstab which should mount the newly created paritions, though the problem still presists.

================================================
..........
NORMAL BOOT
.............
.............
Setting clock [ok]
starting udev [ok]
loading default keymap (us): [ok]
setting hostname localhost.localdomain: [ok]
setting up logical volume manager: 2 logical volume in volume group "VolGroup00" now active [ok]
checking filesystems
/boot: clean, 36/26208 files, 17171/104420 blocks [ok]

Remounting root filesystem in read-write mode: mount: can't find / in /etc/fstab or /etc/mtab [failed]
mount can't find / in /etc/fstab or /etc/mtab
mounting local filesystems: mount: devpts already mounted or /dev/pts busy
mount: sysfs already mounted or /sys busy
Init entering runlevel: 5
.............
..............
HERE FIND MANY LINES which telling "Read-only file system"
..............
.............
Starting auditd [ok]
Starting system logger: <<<<<<< here takes very long time >>>>>>>>
............
............
FINALLY I GET MESSAGE ABOUT ERROR IN GDM START UP
.............
..............
================================================== =

In this situation, I tried to log in (Character User Interface) by pressing Ctrl+6 and I get the login promt and logged in as root.
But I can see everything, but hard disk is in "Read-only" mode, so I could not write/modify anything.

Then I using Fedora Core 5 installation CD, I tried "linux rescue", but I get there error something like "unable to find the root", though I got /mnt/sysimage direcotry, but in that directory, I could see only two directory "boot" and "mnt". That is all.

I am using Fedora Core 5 [2.6.15-1.2054_FC5].

Requesting someone to help.

Thanking very much for considering my OS problem.

Saketram

grosminet
22nd August 2006, 06:15 PM
put your DVD or CD1 or CD rescue
boot on it
enter
rescue
your system was on the directory
/mnt/sysimage
cd /mnt/sysimage
cd etc
more fstab
and after
vi
the rescue system is the important
you can take the rpm by ftp

Saketram
22nd August 2006, 07:04 PM
yes, I could go up to "cd /mnt/sysimage" command, but and then I could, as there is no "etc" directory.

I see only the following directory under "/mnt/sysimage"
boot
mnt

No other directory of my Linux is found there as usual. I used CD1 for rescue boot.

And then I could not under the following commands in your help.
===
more fstab
and after
vi
the rescue system is the important
you can take the rpm by ftp
====

Thank you anyway.

Saketram
22nd August 2006, 07:42 PM
At the same time, I have Ubuntu is also installed in another partition, and it was also working well. I tried to access the Fedora file system while on Ubuntu, but I could not mount the Fedora LVM parition.

Still waiting for your help....

grosminet
22nd August 2006, 08:49 PM
test
chroot /mnt/sysimage
have forgotten the command chroot
ls
logily you can see your directory
your fstab
if you have more than one disk
it s possible you must
if your disk is ou hda par exemple
linux: rescue root=/dev/hda

Saketram
23rd August 2006, 06:27 AM
Yes, I tried that too. Here below I give the report.

================================================== =========
sh-3.1# chroot /mnt/sysimage
chroot: cannot execute /bin/sh: No such file or directory
sh-3.1# cd /mnt/sysimage
sh-3.1# ls -l
total 2
drwxr-xr-x 4 root root 1024 Aug 22 23:44 boot
drwxr-xr-x 4 root root 0 Aug 23 15:18 mnt
sh-3.1# ls ..
runtime
source
sysimage
sh-3.1# ls -l ../../
total 0
lrwxrwxrwx 1 root root 4 Aug 23 15:03 bin -> sbin
drwxrwxrwt 6 root root 2780 Aug 23 15:18 dev
drwxr-xr-x 5 root root 0 Aug 23 15:18 etc
lrwxrwxrwx 1 root root 10 Aug 23 15:03 init -> /sbin/init
lrwxrwxrwx 1 root root 16 Aug 23 15:17 lib -> /mnt/runtime/lib
drwxr-xr-x 5 root root 0 Aug 23 15:18 mnt
drwxr-xr-x 2 root root 0 Aug 23 15:03 modules
drwxr-xr-x 2 root root 0 Aug 23 15:03 oldtmp
dr-xr-xr-x 42 root root 0 Aug 23 15:03 proc
drwx------ 2 root root 0 Aug 23 15:03 root
drwxr-xr-x 2 root root 0 Aug 23 15:03 sbin
drwxr-xr-x 3 root root 0 Aug 23 15:03 selinux
drwxr-xr-x 11 root root 0 Aug 23 15:03 sys
drwxr-xr-x 4 root root 0 Aug 23 15:18 tmp
lrwxrwxrwx 1 root root 16 Aug 23 15:17 usr -> /mnt/runtime/usr
drwxr-xr-x 6 root root 0 Aug 23 15:03 var
sh-3.1# fdisk -l /dev/hda
Disk /dev/hda: 15.3 GB, 15382241280 bytes
16 heads, 63 sectors/track, 29805 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 5931 2989003+ b W95 FAT32
Partition 1 does not end on cylinder boundary.
/dev/hda2 5945 10009 2048287+ 5 Extended
Partition 2 does not end on cylinder boundary.
/dev/hda3 10009 10216 104422+ 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/hda4 10216 29804 9871942+ 8e Linux LVM
Partition 4 does not end on cylinder boundary.
/dev/hda5 5945 10009 2048256 b W95 FAT32
[root@localhost ~]# cat > test
-bash: test: Read-only file system
================================================== =========


It is incredible how I got this problem. I hope I had given enough information.
Is it possible to recover the Operating System, or I will have to re-install??

grosminet
23rd August 2006, 07:41 PM
You have a possibilite
At the boot, you put install
during the install, you have the possibility into 2 case
new install or realease
you made the choice realease you keep data and partition
If think you have broken your MBR