hi !
it would really nice if someone could give a solution to the horrible
situation i have landed myself in. this is what had happened.
on my system i run freebsd, linux (Redhat 6.2) and windows 98. in attempt to free up
100 mb that i had allocated for linux swap parttion, by using the same swap
partion of freebsd, as suggested in the linux+freebsd howto.
i was making changes to the /etc/rc.d/rc.sysinit file. i was to add the following line
awk -- `/swap/ && ($1 !~ /#/) {system("mkswap "$1"") }' /etc/fstab
i had added only awk -- `/swap/ && ( when there was a power failure and in a
hurry to shutdown the system. i saved the file and halted. my nightmare started when i
booted the sytem after the power came. i have put the error messages at the end of
the mail.
What i tried
------------
1. I tried booting with the option l single (l being the label). it gave the set of
error messages as in the error file prior to "entering level 3". i tried to correct to
the entery in the rc.sysinit file. but it did not allow it, saying it was a readonly
filesystem.
2. Freebsd refused to mount the linux partion.
3. I then got Redhat 6.2 CD and started installation just enough to get the bash on
the 2nd virtual console. i then mounted the windows drive copied the correct
rc.sysinit ( i got that from another linux machine) and overwrote the existing
one. rebooted the system . said cannot execute /etc/rc.d/sysinit
file. and spewed error messages that i have appended to the err messages below.
4. Booted the system with option init=/bin/sh at lilo. then mounted the root
partion writable. i rechecked the permisions of rc.sysinit. they were
correct and eiverthing else looked order ( that's what i think )
tried ./rc.sysinit. (i had added /sbin, /usr/sbin to the $PATH).
it said : " init: ./rc.sysinit: No such file or directory "
even when working in single mode the smae error occur when i tried to
execute the file
so right now i am left with a linux installation in which i can work only at the
single user level. :(
what i don't understand is that at single user level mount command show that the
root partion is mounted as rw then why am i getting an error message of Read-only file
system when try to edit files ?
any suggestions ?
regards
harsha
i have given a summary of the booting sequence and the error message i have left that
message "[ok]" out
mounting the proc system
configuring the kernel parameters
setting clock
Loading default keymap
awk cmd line:2 /swap && (
awk cmd line:2 ^ unexpected newline
awk cmd line:3 action "Activating the swap ... "swapon
-a
awk cmd line:3 ^ unexpected newline
(gave parse errors for the if loops of HOSTANME, NISDOMAIN and fsck )
loading sound module (snd-card-0)
loading mixer settings
checking filesystems
mounting local filesystems
Turning on user and group quatas for local system
rm cannot unlink `/var/run/runlevel.dir ' :Read-only file system
rm cannot unlink `/var/run/utmp' : Read-only file system
/etc/rc.d/sysinit: /var/run/utmp : Read-only file system
touch /var/log/wtmp :Read-only file system
Enabling swap space
ln cannot remove `/boot/system.map' : Read-only file system
/etc/rc.d/rc.sysinit: /var/log/dmesg Read-only file system
Entering runlevel 3
/etc/rc.d/rc :/var/run/runlevel.dir Read-only file system
setting up network
bringing up lo
bringing up eth0
touch /var/lock/subsys/network : Read-only file system
starting system logger: FAILED (before the FAILED message there was gap of 5 min
touch /va/lock/subsys/identd : Read-only file system
starting INET services
touch /var/local/subsys/inet read-only system
starting keytable
starting console mouse services
touch /var/lock/subsys/gpm : Read-only
gpm : oops() invoked from gpmc(272)
/var/run/ gpm23m81r : no such file or direc.
/etc/rc.d/rc3.d/S99local : /etc/ issue read-only file system
the above message was repeated 3 times
cp. cannot remove old link to `/etc/issue.net`" Read-only file system
/etc/rc.d/rc3.d/S99local : /local/issue : Read-only file system
INIT: Id "1" respawing too fast disabled for 5 mins
the message was repeated till Id 6
INIT no more processes left in this level
then the same message INIT:Id "1" to Id "6" was getting repeated. i rebooted.
after correcting the rc.sysinit
-------------------------------
cannot execute "/etc/rc.d/rc.sysinit "
/etc/rc.d/rc : /var/run/runlevel.dir : Read-only filesystem
setting up network parameters
Bring up interface lo modprobe : cannot localte module net-pf-10
" net-pf-11
" net-pf-18
the above message got repeated for 3 more time and the same for interface eth0
syslod failed
klogd [ok]
then the loop of reswaping again started
_________________________________________________
Get Your Free Email At, http://www.rediffmail.com
Partcipate in crazy Re.1 auctions at http://www.rediff.com/auctions
----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH