Motherboard change impacts disk naming, requires grub reconfiguration?
Had my prior Soyo MBD stop appreciating my two SATA drives, decided to snub them. Would see IDE fine, etc. just not the SATA drives. BIOS changes, Knoppix browsing, nothing worked. So enter new MBD.
Now that the new Gigabyte board is installed, can see the drives again (verified under Knoppix). However, what was previously /dev/hde and /dev/hdf under the Soyo is now reported as /dev/sda and /dev/sdb under the Gigabyte. As a result, I can't boot any of the multiple OS installed. Would love to simply maintain my installs without having to start over. I have tried some edits to /etc/fstab and grub-related files as detailed below but still not having success. Grub menu comes up and starts the boot process on all the OS but they all crap out at some point during the boot sequence; FC5 gets the furthest along but then ends in a kernel panic after complaining about not finding root partition, etc. I've tried googling and looking at the Gnu Grub site but am not able to figure this out so far. Would appreciate any pointers on what to do at this point to recover operation of the system without reinstallation of the OS (FC5 at least, I'm moving off of Win98 so I can just recover my data files from there and I'll be fine). Code:
fdisk -l Code:
LABEL=/ / ext3 defaults 1 1 Code:
LABEL=/ / ext3 defaults 1 1 Code:
# grub.conf generated by anaconda Code:
# this device map was generated by anaconda Code:
# this device map was generated by anaconda |
BTW, here are some selected messages that are on the screen up to the point it hangs when attempting to boot FC5. The resume ones I find interesting... the old MBD showed a couple of flaky boots before it totally gave up on the SATA drives; I wonder whether that caused some resume/recovery files to be created?
lots of standard boot messages, sees and configures new chipset drivers, etc... ending with: . . . Trying to resume from LABEL=SWAP-hde6 <<NOTE, THIS IS A NEW MESSAGE BUT USES PRIOR DISK NAME NOTATION>> Unable to access resume device (LABEL=SWAP-hde6) Creating root device. Mounting root filesystem. mount: could not find filesystem '/dev/root' Setting up other filesystems. Setting up new root fs setuproot: moving /dev failed: No such file of directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! [<c011b2b2>] panic+0x3e/0x170 AND SO ON... |
This is where grub passes root info to kernel,
kernel /boot/vmlinuz-2.6.16-1.2111_FC5.stk16 ro root=LABEL=/ Not sure how or where LABEL gets resolved into a partition You could try changing the Label=/ to /dev/sda# where "#" is the partion number of / On my multiboot system this is one of my entries, (and it works) kernel /vmlinuz-2.6.12-1.1381_FC3 ro root=/dev/hda3 rhgb quiet Be interested to hear if it helps! Also core5 uses fstab diferently to earlier versions so I'd try this with an earlier version as well. |
Labels are carried with the partition table (not sure this is the correct term, but it is not part of the OS data, but rather part of the partitioning info on the disk). Apparently they are using this notation as a way to *help* in the instance of moving a drive, as the partition labels would not change but the device numbering could. By using labels it should avoid just what I'm running into. OK, that said...
I tried the change to move to disk/partition numbering instead of LABEL= notation (both in grub.conf and fstab), and I am still running into the same issue. I think the problem is really the "Resume" item I noted above. It seems there is something recorded in a file somewhere that has hardcoded the old SWAP-hde6 partition label to be sought and that is being used to point to the (originally right) wrong place, which then can't be found. I tried using QTparted to see the label for the swap partition and it does not show there (while others do). At this point, I believe I'm just going to punt and go for the reinstall as the above if it worked would only have fixed things for FC5 anyway. The things I had previously put most of my work into were stored in /home so I'll get to retain that and the install otherwise will go predictably. Thanks for your help! |
It would have been nice if I actually was a help!!!! But it's all part of the learning curve, onward and upward!!!!
Mike |
I've solved it.
I copied a Fedora 5 system from one machine to a new one using a tar archive of / and made it work. While doing this, I solved your problems.
Your boot problem is because the partition label didn't match the source system, my experience tells me. You COULD change grub AND /etc/fstab and I've made that work before, but just using the expected labels is much easier. Here's the whole of what I did and how I overcame your problem. Source: Athlon, SATA, 512MB ram Target: P2, PATA, 256MB ram I used the F5 rescue cd to boot the new machine and then fdisk to partition the drive into 9GB data and 512MB swap. Two primary partitions, the same as on the source system (both smaller, different device, no third 400GB "samba" partition, but matching closely enough). I then used "mkfs -t ext3 /dev/hda1" and "mkswap -L SWAP-hda2 /dev/hda2" to format the partitions. That also labelled swap properly. To put the proper label on the ext3 partition, I used "e2label /dev/hda1 /1" Tar produced with: tar --absolute-names --preserve-permissions \ --exclude '/proc/*' --exclude '/dev/*' \ --exclude '/sys/*' --exclude '/var/run/*' \ --exclude /samba \ --exclude '/var/log/*gz' \ -czf /samba/big/fedora5root.tgz / and restored by: mkdir /mnt/stuff mount /dev/hda1 /mnt/stuff cd /mnt/stuff ftp (to fetch tar) then tar -xzf fedora5root.tgz To build the boot information, I used: "grub" "root (hd0,0)" "setup (hd0)" "quit" This didn't all work the first time, of course, and I'm trying to net the procedure. The results are a clone of my first system on different hardware. All of my careful setup, customizing, and updating are now done on another system and I'm ready to change the name and IP address and make it distinct. fdisk should add support for partition labels, but the work around is easy once known. Maybe I'll contribute some fdisk code... |
All times are GMT -5. The time now is 10:00 PM. |