6

Moving FC10 from SATA to PATA - UUID probs?

view full story
linux-howto

http://forums.fedoraforum.org – I'm trying to move an existing FC10 install (created by someone else) from a 160GB WD1600AAJS SATA disk to a 160GB WD1600AAJB PATA disk (cursed trend of horizontally mounting SATA connectors at the end of the motherboard means the latest rev mobo doesn't fit in our enclosure!). I've used DD to copy the disk image from one to the other, but when attempting to boot, I get the following error: Code: Unable to access resume device (UUID=946f216f-0c24-4b02-a996-f42059970de7) mount: error mounting /dev/root on /sysroot as ext3: no such file or directory That particular UUID maps to sda2, which is the swap partition. Interestingly, both the SATA and PATA disk come up as /dev/sda on the motherboard. I kind of grok that the UUIDs are substitutes for directly naming the disks, and that they're referred to in fstab, initrd-2.6.27.12-170.2.5.fc10.i686.img, and in /dev/disk/by-* I'm guessing the problem is that the GUIDs (at least the one for swap) are no longer the same. How are they assigned to the partitions during boot? I tried doing Code: swapoff -a mkswap /dev/sda2 swapon -a and put that new GUID in fstab and into initrd-* (using some steps I found elsewhere on how to gunzip/rezip it). At that point, I get a kernel panic on boot Code: Kernel panic - not syncing: CFS: Unable to mount root fs on unknown-block(0,0) So I'm guessing that the other UUUDs have changed as well and I need to update them. How would I figure out what they are? I suppose I could change the references to /dev/sda*, but I didn't build this original image and I'm thinking whoever did had a good reason to go with UUIDs. Or, I'm totally barking up the wrong tree and something else is wrong. Any ideas? (HowTos)