Comment 2 for bug 368428

Revision history for this message
peehoo (peehoo) wrote : Re: 9.04 upgrade lose my Raid1

Hey fellows...

I managed solve this problem with Google and help with a friend...

What I did is under here:

Booting from live-cd

sudo mount /dev/md0 /mnt
sudo mount -t proc none /mnt/proc
sudo mount -t devpts none /mnt/dev/pts
sudo chroot /mnt /bin/bash

sudo cp /etc/mdadm/mdadm.conf /etc/mdadm/mdadm.conf.old
grep -v ARRAY /etc/mdadm/mdadm.conf > /tmp/mdadm.conf
sudo mv /tmp/mdadm.conf /etc/mdadm/mdadm.conf
sudo mdadm --examine --scan >> /etc/mdadm/mdadm.conf
sudo update-initramfs -k all -c
exit

sudo umount /mnt/dev/pts
sudo umount /mnt/proc
sudo umount /mnt
reboot

After that Ubuntu was booted but there was problem with Gnome

Ctrl-alt-f2 I was able to go shell which tolds that I have Ubuntu 9.04

Mount command tolds me that:

/dev/md0 on /
/dev/md1 on /mnt/varmistus

uname -a told that kernel is 2.6.27-11-generic (and I believe that it should be 2.6.28....?)

ctrl-al-f1

19+0 records in
19+0 records out
kinit: name_to_dev_t (/dev/sda3) = dev(8,3)
kinit: trying to resume /dev/sda3
kinit: No resume image, doing normal boot.....

So after that:

ls /boot

I found new kernel and then:

sudo dpkg --configure -a
sudo aptitude update
sudo aptitude dist-upgrade
sudo aptitude install ubuntu-desktop
dpkg -l | grep ^r | awk '{print $2}' | xargs sudo dpkg -P

And bang.... everythis is kicking and alive...!!!