Subject: RE:can't write fstab
To: None <bertram@ifib.uni-karlsruhe.de>
From: Rick Copeland <rickgc@calweb.com>
List: port-vax
Date: 03/26/1997 12:32:46
Hi Bertram,

Below is a copy of what goes on after I boot up the system (sorry for the
long listing).  As you can see I cannot copy in /etc.  I found an example of
a fstab file in /etc called "fstab.ra". It seems that all the file systems
are mounted as read and execute only. Further on I tried to mount /usr and
you can see what happened.  Then I booted up again and this time it let me
mount /usr.  However, as you can see vi is not accessable.  It really
doesn't matter here anyway because ed did work and you cannot write to /etc
because of the file system being read only. Quite a catch 22!

I think the question here is how to get /etc so I can write in it? 

Thanks,

Rick GC


********************************************************************************
(first boot)
>>>B DUA0



  2..
-DUA0
  1..0..


howto 0x0, bdev 0x11, booting...
10556+552+33996 start 0x0

Nboot
: /netbsd
618496+32768+92904 start 0x8aefc
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.1A (GENERIC) #132: Thu Mar 14 17:25:15 MET 1996
    ragge@urgoriyf:/usr/src/sys/arch/vax/compile/GENERIC

realmem = 33521664
avail mem = 27898880
Using 1636 buffers containing 1675264 bytes of memory.
backplane0 (root)
cpu0 at backplane0sbi0 at backplane0: Q22
uba0 at sbi0 tr0
uda0 at uba0 csr 172150 vec 774, ipl 17
uda0: version 8 model 13
uda0: DMA burst size set to 4
ra0 at uda0 slave 0: ra82, size = 1216665 sectors
tmscp0 at uba0 csr 174500 vec 770, ipl 17
tms0 at tmscp0 slave 0
qe0 at uba0 csr 174440 vec 764 ipl 17
qe0: delqa, hardware address 08:00:2b:0b:66:9f
Changing root device to ra0a
WARNING: Clock has lost time - CHECK AND RESET THE DATE.
Automatic boot in progress: starting file system checks.
fstab: /etc/fstab: No such file or directory
Can't open checklist file: /etc/fstab
Automatic file system check failed; help!
Enter pathname of shell or RETURN for sh:
# pwd
/
# cd /etc
# cp fstab.ra fstab
cp: fstab: Read-only file system
# cd /
# pwd
/
# mount /dev/ra0h /usr
/dev/ra0h: file system not clean; please fsck(8)
# fsck /dev/ra0h
** /dev/rra0h
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? [yn] n

BLK(S) MISSING IN BIT MAPS
SALVAGE? [yn] n

SUMMARY INFORMATION BAD
SALVAGE? [yn] n

3161 files, 40749 used, 505805 free (1597 frags, 63026 blocks, 0.3% 
fragmentation)

MARK FILE SYSTEM CLEAN? [yn] y


***** FILE SYSTEM WAS MODIFIED *****
# mount /dev/ra0h /usr
ffs: /dev/ra0h on /usr: Device busy
# pwd
/
#
*********************************************************************
(Second boot)

>>B DUA0



  2..
-DUA0
  1..0..


howto 0x0, bdev 0x11, booting...
10556+552+33996 start 0x0

Nboot
: /netbsd
618496+32768+92904 start 0x8aefc
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.1A (GENERIC) #132: Thu Mar 14 17:25:15 MET 1996
    ragge@urgoriyf:/usr/src/sys/arch/vax/compile/GENERIC

realmem = 33521664
avail mem = 27898880
Using 1636 buffers containing 1675264 bytes of memory.
backplane0 (root)
cpu0 at backplane0sbi0 at backplane0: Q22
uba0 at sbi0 tr0
uda0 at uba0 csr 172150 vec 774, ipl 17
uda0: version 8 model 13
uda0: DMA burst size set to 4
ra0 at uda0 slave 0: ra82, size = 1216665 sectors
tmscp0 at uba0 csr 174500 vec 770, ipl 17
tms0 at tmscp0 slave 0
qe0 at uba0 csr 174440 vec 764 ipl 17
qe0: delqa, hardware address 08:00:2b:0b:66:9f
Changing root device to ra0a
WARNING: Clock has lost time - CHECK AND RESET THE DATE.
Automatic boot in progress: starting file system checks.
fstab: /etc/fstab: No such file or directory
Can't open checklist file: /etc/fstab
Automatic file system check failed; help!
Enter pathname of shell or RETURN for sh:
# pwd
/
# mount /dev/ra0h /usr
# pwd
/
# cd /usr
# vi
vi: not found
#