SUMMARY: Changing boot device (part 1)

From: <Peter.Stern_at_weizmann.ac.il>
Date: Fri, 12 Nov 1999 10:22:46 +0200 (IST)

I received several useful pointers, some very quickly, which
enabled me to get the system up and running, but which did not
yet solve the basic problem.

An almost immediate reply by Marco Luchini <Marco.Luchini_at_acco-uk.co.uk>
suugested to: mount -u /dev/rz0a /

and Rolf-Peter Kienzle <kienzle_at_felis.uni-freiburg.de> remonded me that
I had to change the swap partition in:
1. fstab
2. rc.config
3. /sbin

I had fixed all that except for #3 (when I first tried it the
file-system was still read-only, then I forgot), but none of this
has solved the basic problem.

When I boot DKA0 it mounts /dev/rz0a as / (read-only) but the root
file systen I get is the OLD one and I need to:
  mount -u /dev/rz0a /
to get it mounted read-write (but this is not what I want).

When I boot DKA100 df shows that /dev/rz1a is mounted as / (read-only)
but it is the NEW root and mount -u or mount -u /dev/rz0a / gives:
Specified device does not match mounted device, however,
  mount -u /dev/rz1a /
works, dk shows /dev/rz1a as / and bcheckrc mounts the rest of the
system corectly and then df-k shows:
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/rz0a 256133 64855 165664 29% /
/proc 0 0 0 100% /proc
usr_domain#usr 1203272 575378 547192 52% /usr
usr_domain#var 1203272 6444 547192 2% /var

So now all the definitions seem to be correct, nevertheless, when I try
to boot DKA0 (the NEW system disk) I get the original root file system
while when I boot DKA100 (the original system disk) I get the NEW file
system. In both cases, I get the message:
Specified device does not match mounted device
during boot and finally it gives the message:

SIA INITIALIZATION ERROR
THIS REBOOT WILL RETURN TO SINGLE USER MODE
TO REPAIO THE SIA SECURITY CONFIGURATION.

Then, as I said I can mount root, run bcheckrc and init 3 and everything
is fine, BUT, obviously something is wrong and I can't figure out what
it is.

Thanks also to:
Sean O'Connell <sean_at_stat.Duke.EDU>
John J. Francini <francini_at_progress.com>
Volker Becker <becker_at_eurocontrol.de>
Alan Nabeth <alan_at_nabeth.cxo.dec.com>
Alan Davis <Davis_at_Tessco.Com>

Just to be complete, the relevant lines in /etc/fstab:
/dev/rz0a / ufs rw 1 1
/proc /proc procfs rw 0 0
/dev/rz0b swap1 ufs sw 0 2
usr_domain#usr /usr advfs rw 0 0
usr_domain#var /var advfs rw 0 0

/etc/rc.config:
PAGEFILE="/dev/rz0b"
PARTITION="rz0b"
PARTITIONTYPE="RZ28"

ls -l /sbin/swapdefault:
lrwxrwxrwx 1 root system 11 Nov 11 18:40 /sbin/swapdefault
-> ../dev/rz0b

I hope somebody understands this mystery better than I do.

Regards,
Peter Stern


Original question:

I have a serious problem. For reasons which I won't go into
here, I wanted to move my system (Tru64 v4.0E) from one disk
(rz1) to another (rz0). I believe that I did everything
correctly, however, when I tried to boot from DKA0 it
mounted /dev/rz1a as / and when I booted from the original
DKA100 it mounted /dev/rz0a as / BUT I can only mount it
read-only and I can't get out of single-user mode.

The command
# mount -u /
is greeted with:
specified device does not match mounted device.
I get his message at boot too.

The only mistake that I know that I made is that when I edited
the /etc/fstab file I forgot to change the swap device from
/dev/rz1b to /dev/rz0b and similarly I did not change the
swap partition definitions in /etc/rc.config.

Can anybody guess what I did wrong and if it is the issue of
swap, how do I fix it since I cannot get out of the read-only
state for the file system. I did try swapon /dev/rz0b
Received on Fri Nov 12 1999 - 08:24:37 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT