<br>feb 17 2009 success booting fc5copy on usb external disk<br> thanks to Mikkel for pointing me in right direction<br><br>this fc5copy was not an install, but rather a backup copy of my<br>mainfc5 on a scsi disk on sda1<br>
<br>for days i was getting "cant find /dev/root.... kernel panic"<br><br>finally fixed that with proper mkinitrd see below<br><br>then was getting cant access resume device /dev/sda2 for days<br>now understand that occuring bc of disk reordering<br>
<br>part of my problem was using reisrfs on the usb, but ext3 on mainfc5 on sda1<br>this required an extra --preload=reiserfs in mkinitrd cmd<br>and a further editing of the mkrootdev line in the initrd init file.<br>
<br>root@bootp ~]# mkdir cleanrs2; cd cleanrs2<br>[root@bootp cleanrs2]# mkinitrd --preload=ehci-hcd --preload=usb-storage --preload=reiserfs /boot/initrd_usbrs2.img 2.6.17-1.2174_FC5<br><br>expand:<br>[root@bootp cleanrs2]# gunzip -c initrd_usbrs2.img |cpio -i<br>
5551 blocks<br>[root@bootp cleanrs2]# ls<br>bin dev etc init initrd_usbrs2.img lib proc sbin sys sysroot<br><br>now modify the mkrootdev line<br>from <br>mkrootdev -t ext3 -o defaults,ro /dev/sda1<br>to<br>mkrootdev -t reiserfs -o defaults,ro /dev/sdc1<br>
<br>repack:<br>[root@bootp cleanrs2]# find . |cpio -c -o |gzip -9 >../initrd_usbrs2.img<br><br>at this point, still getting "cant access resume device /dev/sda2"<br>but no longer getting caught in "cant find /dev/root"<br>
<br>next problem was getting caught in filesytem check on sda1,sda3<br>which eventually forced a reboot, but no kernel panic!<br>The sda1,sda3 problems evidently bc of reordering of the disks (see below)<br>I got around this gotcha by <br>
commenting out the sda1, sda3 lines in the usb fstab<br><br>my mainfc5 grub.conf has following stanza for the usb boot<br><br>title FC5copy (2.6.17-1.2174_FC5_usbrs2.img) /media/disk-1 (hd1,2) <br> root (hd1,2) ## sdb3<br>
kernel /boot/vmlinuz-2.6.17-1.2174_FC5 ro root=LABEL=rootusb rhgb quiet<br> initrd /boot/initrd_usbrs2.img<br><br><br>when booted up from usb:<br>fdisk clearly shows disks have been reordered<br><br>[root@bootp ~]# fdisk -l<br>
<br>Disk /dev/sda: 250.0 GB, 250059350016 bytes<br>255 heads, 63 sectors/track, 30401 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br><br> Device Boot Start End Blocks Id System<br>
/dev/sda1 1 30401 244196001 83 Linux <<<<was sdc1<br><br>Disk /dev/sdb: 36.7 GB, 36703934464 bytes<br>255 heads, 63 sectors/track, 4462 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br>
<br> Device Boot Start End Blocks Id System<br>/dev/sdb1 * 1 2676 21494938+ 83 Linux <<< was sda1,2,3<br>/dev/sdb2 2677 3163 3911827+ 82 Linux swap / Solaris<br>
/dev/sdb3 3164 4462 10434217+ 83 Linux<br><br>so to get swap working need /dev/sdb2 instead of /dev/sda2 in usb fstab<br><br><br>Disk /dev/sdc: 36.7 GB, 36703934464 bytes<br>255 heads, 63 sectors/track, 4462 cylinders<br>
Units = cylinders of 16065 * 512 = 8225280 bytes<br><br> Device Boot Start End Blocks Id System<br>/dev/sdc1 * 1 13 104391 83 Linux <<<was sdb1-7<br>/dev/sdc2 14 268 2048287+ 82 Linux swap / Solaris<br>
/dev/sdc3 269 281 104422+ 83 Linux<br>/dev/sdc4 282 4462 33583882+ f W95 Ext'd (LBA)<br>/dev/sdc5 282 1301 8193118+ 83 Linux<br>/dev/sdc6 1302 2321 8193118+ 83 Linux<br>
/dev/sdc7 2322 4462 17197551 83 Linux<br>[root@bootp ~]# <br> <br>if want mainfc5 (on sda1) mounted when boot from usb<br>need<br>/dev/sdb1 /fc5hold in usb fstab<br><br>finally i think i have fixed the "cant find resume device"<br>
<br>i changed the fstab swap line to use sdb2 in place of sda2<br>but it seemed to require<br>rebooting twice for it to take effect <br><br>at this point, my usb backup copy of my mainfc5(which is on a scsi disk)<br>
is booting without complaint<br><br><br>The only thing i cant do is to have the fc5copy /boot found on the usb,<br>evidently bc my bios cant see the usb disk<br><br>so my fc5copy /boot was copied to sdb3 --> root (hd1,2) in grub.conf<br>
<br>this is just a holding tank for the /boot files:<br>I am not treating it as a "separate /boot partition", not listed in fstab<br><br>regards,<br>Jack<br>