SUMMARY: Changing boot device

From: <Peter.Stern_at_weizmann.ac.il>
Date: Sun, 14 Nov 1999 11:47:00 +0200 (IST)

Appended below is the original question and the partial summary
The bottom line is that I simply mixed up the two /etc/fstab files.
The /etc/fstab file I changed to mount /dev/rz0a as /, etc. was
on the /dev/r1a (DKA100) filesystem while the /etc/fstab file on the
/dev/rz0a filesystem (DKA)) tried to mount /dev/rz1a as /. What
confused me so that I did not realize this was the fact that when
I did a:
mount -u /dev/rz1a /
df -k / showed:
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/rz0a 256133 64863 165656 29% /

Only when I did:
mount -u /dev/rz0a /root
and did df -k /root:
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/rz0a 253895 68265 160240 30% /root

did I realize that although it looked as if I was mounting the
/dev/rz0a filesystem, in fact, two different filesystems are mounted
on the two different mount points. I still do not understand why
mounting rz1a shows up as rz0a, but the problem is solved.

Many thanks to all those who offered timely advice, including the
helpful observation by Olle Eriksson that the swap partitions have
nothing to do with this. But special thanks go to Marco Luchini who
was the first to respond with the advice on how to mount the filesystem
read-write which ultimately enabled me to boot to multi-user, and who
finally insisted (after my partial summary) that I swapped the
definitions in the fstab files on the two disks, which made me take a
closer look. And after I managed to mount both root filesystems
simultaneously, it became clear that he was right.

As we all know, this is a great list.

Best regards,
Peter


Peter Stern
Chemical Physics Department
Weizmann Institute of Science
76100 Rehovot, ISRAEL

email: Peter.Stern_at_weizmann.ac.il
phone: 972-8-9342096
fax: 972-8-9344123

attached mail follows:



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 Sun Nov 14 1999 - 09:48:52 NZDT

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