Grub repairs

Posted by auburn on October 18th, 2008 — Posted in cloning

I’ve had a lot of fun recently cloning a drive to another drive. I had grub and drive identifier problems.
First of all I used cpio to copy the drive that I had mounted through knoppix (so I wasn’t actively using it). I learned this from an article in linux journal.
find ./ -xdev -print0 | cpio -pa0V /mnt/sdb1

But the drive wasn’t bootable, so I tried to reinstall grub, which failed because the device.map file wasn’t populated with an accurate list of available drives. So I called:
grub-install --recheck
Please see my other post about grub-install to see how to do this.
But even after grub-install was successful, I found that I was still booting the original drive, not the clone. I needed to update the drive identifiers in grub’s menu.lst, and fstab. To find the uuid’s for the partitions, I needed to call:
sudo vol_id -u /dev/sda1
Don’t forget to update the swap partition uuid too…

Another cloning software

Posted by auburn on October 18th, 2008 — Posted in cloning

Samba frustration

Posted by auburn on October 5th, 2008 — Posted in miscellaneous tech