Hello!
In short
I'm having a problem with booting up the Ubutu server 12.04 on different computer that was orignally installed.
The boot process hangs at upstart. Mountall spawns two processes that do not ever finish.
Background
The purpose was to make an image of system so it can be quickly deployed on several computers (computing nodes in cluster).
The installation was standard:
- partition for swap, and /
- minimal install + ssh server
- static IP
- ldap for user accounts
- nfs-mounted /home
At this point I tested everything (in computer A) and prepared system image:
Code:
tar -cvpzf /mnt/data/ubuntu-12.04-node.v1.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev --exclude=/home --exclude=/tmp /
I made systemrescuecd-usb and booted up the computer B.
I made some scripts to do the work for me. In particular:
- To partition the hard drive with parted
- To make filesystems and mount dev/sda2 to /mnt/sys
- To extract system image:
Code:
tar -xpzf ubuntu-12.04-node.v1.tar.gz -C /mnt/sys/
- To make missing dirs (dev, proc, sys, ... )
- To delete MAC address associated with ethx
Code:
sed -i '6,$ d' /mnt/sys/etc/udev/rules.d/70-persistent-net.rules
- To change IP in int /mnt/sys/network/interfacess
- To change hostname
- To chroot and install grub:
Code:
#!/bin/bash
mount -o bind /dev /mnt/sys/dev
mount -o bind /proc /mnt/sys/proc
mount -o bind /sys /mnt/sys/sys
cat > /mnt/sys/root/grubfix.sh << END
#!/bin/bash
update-grub2
grub-setup /dev/sda
grub-install /dev/sda
END
chmod +x /mnt/sys/root/grubfix.sh
chroot /mnt/sys /root/grubfix.sh
rm -fr /mnt/sys/root/grubfix.sh
I confirmed the changes and rebooted the machine.
Problem
The boot process hanged just after "init-bottom .. done."
I managed to get more information by appending init=/bin/sh to the kernel line in grub.
I spawned new console at tty2
Code:
getty -8 -n -l /bin/sh 38400 tty2 &
And run the init in verbose mode:
Code:
exec init --verbose
It halted after spawning mountall deamon:
Code:
init: mountall state changed from spawned to post-start
The ps at tty2 told me that there are two mountall processes and one is "<defunct>"
Killing them did not change anything for the first one, and made "<defunct>" the second one.
I've run mountall --verbose at tty2 and got information that it stucks after reading and processing everything at /etc/fstab. It prints what is what (/, /dev, /proc, swap, ...) at that's it.
According to what I managed to google, I exprimented with fstab and even uninstalled nfs.
No effect.
I suspect that I missed some hardware realted infomration that should be deleted prior to booting on a different machine.
Any suggestions are very, very welcome.
Regards,
Onufry