I am trying to move my root disk from a big disk to a smaller one. The new
root disk won't reboot. Does anyone have suggestions?
Here is what I did:
Shut down my target system
From a second system, CP LINK to the old root system and the new root
disk
dasdfmt -b 4096 -v -f /dev/dasdd
fdasd -a -b 4096 /dev/dasdd
mke2fs -j -b 4096 /dev/dasdd1
mount old root system as /oldroot
mount new disk as /mnt
cp --preserve=all --recursive /oldroot/* /mnt/
cd /mnt/etc
Create the zipl.ths.conf file below.
cd /mnt/sbin
./zipl -c /mnt/etc/zipl.ths.conf
cd /
umount /mnt
umount /oldroot
CP DET the two minidisks
Modify the directory of the targe system to swap the addresses of the
old and new root disks.
Boot the target system - Program check loop
<newroot>/etc/zipl.ths.conf:
# Generated by YaST2
[defaultboot]
default=ipl
[ipl]
target=/mnt/boot/zipl
image=/mnt/boot/kernel/image
parameters="dasd=201-20F root=/dev/dasda1 noinitrd"
<newroot>/etc/fstab:
/dev/dasda1 / ext3 defaults
1 1
/dev/dasdc1 /home ext3 defaults
1 2
/dev/dasdb1 /usr ext3 defaults
1 2
devpts /dev/pts devpts mode=0620,gid=5
0 0
proc /proc proc defaults
0 0
Zipl Results:
L342861Z:/mnt/sbin # ./zipl -c /mnt/etc/zipl.ths.conf
Using config file '/mnt/etc/zipl.ths.conf' (from command line)
Building bootmap '/mnt/boot/zipl/bootmap'
Adding IPL section 'ipl' (default)
Preparing boot device: dasdd (0204).
Done.
Console on reboot:
cpi: no system name specified
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 16Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
cryptoapi: loaded
kmod: failed to exec /sbin/modprobe -s -k block-major-94, errno = 2
VFS: Cannot open root device "dasda1" or 5e:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 5e:01
HCPGIR450W CP entered; disabled wait PSW 000A0000 80230D08
tom
- - - - - - - - - - - -
Toto, I have a feeling we're not in the mainframe world any more.
_/) Tom Shilson
~~~~~ GEDW & VM System Services
Aloha Tel: 651-733-7591 tshilson at mmm dot com
Fax: 651-736-7689
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390