Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Oct 1997 11:21:38 +0200
From:      jsaenz@netflow.es (Jon Saenz)
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   read-only root filesystem... = disaster?
Message-ID:  <19971005111731334.AAA201@jon>

next in thread | raw e-mail | index | archive | help
Hello, there.

My root filesystem filled up yesterday {or | and } I had some problems with
permissions in /dev directory when trying to make my ZIP disk available to
all users to mount and unmount it. I don't exactly know which is the cause
of the problem, but my system (FreeBSD 2.2.2) doesn't boot now.

After trying some solutions like mounting a minimal 2.2.1 distribution in a
SCSI ZIP disc, removing the extra space in the root filesystem, making a
Custom installation and Commiting the disklabels/distributions to the hard
disk (extracting just a XF86 server which I don't need for my hardware) and
some other actions, I have reached to the following status.
a) My system refuses to boot.
b) I only have the 2.2.1 CD-ROM distribution, because the 2.2.2 CD-ROM
distribution was not mine :-(.

The booting process shows the following output (#My comments inside
hashes#):

#The startup kernel is MY kernel, and it loads OK. My SCSI devices are
correctly recognized and loaded at the LUNs I have assigned to them. It
seems that all works OK up to this point.....#
npx0: INT 16 interface
swapon: adding /dev/wd0s2b as swap device #It's really my swap device!#
Automatic reboot in progress...
/dev/rwd0a: clean, 20990 free (62 frags, 2616 blocks, 0.2% fragmentation) #
My root partition WAS /dev/wd0s2a #
/dev/rwd0s2g: clean, 990073 free (433 frags, 123705 blocks, 0.0%
fragm..)#/home #
/dev/rwd0s2f: clean, 120069 free (4517 frags, 14444 blocks, 0.6%
fragm..)#/usr#
/dev/rwd0s2e: clean, 27989 free (117 frags, 3484 blocks, 0.9% fragm...)
#/var#
fstab: /etc/fstab:0: Permission denied. # Here start the problems... #
mount can't find fstab entry for /. # /etc/fstab HAS a / entry! I can cat
/etc/fstab and it is there!#
Filesystem mount failed, startup aborted
Enter pathname of shell or RETURN for sh:

When typing RETURN, sh starts and when I type df, I get the following
answer:

Filesystem	512-blocks	Used	Avail	Capacity	Mounted on
root_device 	67742		25762	36562	41%		/

I am NOT allowed to:
1. edit files
2. sh MAKEDEV
3. mounting other disks
4. writing disklabel files to root filesystem
nor .... writing any single bit to the disk, because the answer is always
the same:

read-only filesystem
====================

I am quite ashamed to explain this, but, of course, I have no fixit floppy,
I didn't prepare a boot floppy, I have not the FreeBSD 2.2.2 CD-ROMs and,
as usual, I have some files in the system that I want to recover. I do
really know that you can flame me by this, but... I can accept to be flamed
if I get a solution ;-)

Is there any possibility to recover these files under the previously quoted
constraints? Which?

Thanks in advance!

***************************************************************
* Jon Saenz                       |jsaenz@netflow.es          *
* Barrio de la Cruz 5, 3D         |jsaenz@lcpxbi.wm.lc.ehu.es *
* 48006 - Bilbao                  |wdpsaagj@lg.ehu.es         *
***************************************************************





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971005111731334.AAA201>