LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   preupgrade from F15 to F16 : "Error 15 : File not found" (http://www.linuxquestions.org/questions/linux-general-1/preupgrade-from-f15-to-f16-error-15-file-not-found-916586/)

Moore 12-01-2011 11:49 AM

preupgrade from F15 to F16 : "Error 15 : File not found"
 
hello,
I was going to put this under the Fedora distro list but I have a feeling it might be a more general grub related issue.

would appreciate some guidance please on this issue if possible.

Performed preupgrade from f15 to f16 on a toshiba satellite pro laptop.
All seemed to go fine and the system rebooted.
Looks like the new shell is running as it gave me a new looking login prompt and screen background.
However then I checked the kernel and saw that the f15 kernel version was actually running.
I then rebooted and saw that "Upgrade to fedare16 (verne) was an option on the boot list along with the older linux kernels and windows xp.
But it has defaulted to the latest f15 kernel I had.
I then tried the f16 verne and immediately got:

Error 15 : File not found
Press any key to continue

and it gives back the grub menu list with the options again.

Here is the grub menu list:

Code:


cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_moore0-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Upgrade to Fedora 16 (Verne)
        kernel /upgrade/vmlinuz preupgrade repo=hd::/var/cache/yum/preupgrade ks=hd:UUID=117ae55c-20d6-4fe7-af15-5c96853839b6:/upgrade/ks.cfg
        initrd /upgrade/initrd.img
title Fedora (2.6.38.8-35.fc15.i686)
        root (hd0,1)
        kernel /vmlinuz-2.6.38.8-35.fc15.i686 ro root=/dev/mapper/vg_moore0-lv_root rd_LVM_LV=vg_moore0/lv_root rd_LVM_LV=vg_moore0/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=uk rhgb quiet
        initrd /initramfs-2.6.38.8-35.fc15.i686.img
title Fedora (2.6.38.8-32.fc15.i686)
        root (hd0,1)
        kernel /vmlinuz-2.6.38.8-32.fc15.i686 ro root=/dev/mapper/vg_moore0-lv_root rd_LVM_LV=vg_moore0/lv_root rd_LVM_LV=vg_moore0/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=uk rhgb quiet
        initrd /initramfs-2.6.38.8-32.fc15.i686.img
title WindowXP
        rootnoverify (hd0,0)
        chainloader +1

/etc/fstab

Code:


#
# /etc/fstab
# Created by anaconda on Sat Jun 18 12:00:44 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_moore0-lv_root /                      ext4    defaults        1 1
UUID=117ae55c-20d6-4fe7-af15-5c96853839b6 /boot                  ext4    defaults        1 2
/dev/mapper/vg_moore0-lv_home /home                  ext4    defaults        1 2
/dev/mapper/vg_moore0-lv_swap swap                    swap    defaults        0 0
tmpfs                  /dev/shm                tmpfs  defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                  /sys                    sysfs  defaults        0 0
proc                    /proc                  proc    defaults        0 0
/dev/sda1              /mnt/windows            ntfs    auto,user      0 0

fdisk -l
Code:


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7b54220b

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          63  309251249  154625593+  7  HPFS/NTFS/exFAT
/dev/sda2      309252096  310276095      512000  83  Linux
/dev/sda3      310276096  976773119  333248512  8e  Linux LVM

Disk /dev/mapper/vg_moore0-lv_swap: 5301 MB, 5301600256 bytes
255 heads, 63 sectors/track, 644 cylinders, total 10354688 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_moore0-lv_swap doesn't contain a valid partition table

Disk /dev/mapper/vg_moore0-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_moore0-lv_root doesn't contain a valid partition table

Disk /dev/mapper/vg_moore0-lv_home: 282.2 GB, 282226327552 bytes
255 heads, 63 sectors/track, 34312 cylinders, total 551223296 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_moore0-lv_home doesn't contain a valid partition table

I have read a number of issues related to this but I;m nowhere near solving.
The error makes sense in that I guess its looking for
kernel /upgrade/vmlinuz preupgrade repo=hd::/var/cache/yum/preupgrade ks=hd:UUID=117ae55c-20d6-4fe7-af15-5c96853839b6:/upgrade/ks.cfg
initrd /upgrade/initrd.img

but I could not find them on my system after the preupgrade.

Would really appreciate some guidance.
thanks.

kbp 12-01-2011 03:57 PM

I'd say the upgrade was incomplete .. does /boot/upgrade/vmlinuz still exist? .. if not just start again.

Moore 12-01-2011 05:37 PM

Thanks for reply. Strange thing is that it seemed to complete fine. That dir, the upgrade dir, is not present though. But I even have the new f16 wall paper. When you say try over, I presume you mean simply perform the pre upgrade command again. I will try assuming nothing else has to be done at this point. Thanks.

kbp 12-01-2011 07:34 PM

If everything looks ok then just clean up /boot/grub/menu.lst to remove the upgrade entry.

syg00 12-01-2011 11:34 PM

Go look at the "Common Problems" on the fedoraproject site.

Consider yourself lucky you only have one disk. At this reboot you should probably be booting grub2 - have you got a sane grub.cfg under /boot/grub2 ?.
I did similar yesterday. Got around this, then fell into the caribou problem on x_64, then gnome-shell, ...
I'll be doing a full (clean) install tonight - as I have tended to do in the past. Did one pre-upgrade; it worked, I got cocky.
Tried again, and of course, it all went to hell in a hand-basket. Live and learn ...

Moore 12-02-2011 03:42 AM

So I ran the preupgrade again, but this time it says no releases available to upgrade.
Guess that makes sense, since it has already ran thru the f16 upgrade. (even though kbp suggests it may not have completed)

In my /boot dir there is a grub and grub2 directory.

In grub2, there is a grub.cfg but it is empty.


In /boot, there is no upgrade directory.
However there is a vmlinuz-3.1.2-1.fc16.i686 file and initramfs-3.1.2-1.fc16.i686.img file (along with the older fc15 stuff)

Code:

[root@moore0 boot]# ls -lrt
total 61873
-rw-r--r--. 1 root root  176760 Mar  7  2011 memtest86+-4.20
-rw-r--r--. 1 root root  178436 Mar  7  2011 elf-memtest86+-4.20
drwxr-xr-x. 3 root root    1024 May 13  2011 efi
-rwxr-xr-x. 1 root root  3806192 Jun 13 21:06 vmlinuz-2.6.38.8-32.fc15.i686
-rw-------. 1 root root  1852537 Jun 13 21:06 System.map-2.6.38.8-32.fc15.i686
-rw-r--r--. 1 root root  120082 Jun 13 21:06 config-2.6.38.8-32.fc15.i686
drwx------. 2 root root    12288 Jun 18 11:53 lost+found
-rw-r--r--. 1 root root 14017516 Jun 19 10:23 initramfs-2.6.38.8-32.fc15.i686.img
-rwxr-xr-x. 1 root root  3852208 Jul  6 16:00 vmlinuz-2.6.38.8-35.fc15.i686
-rw-------. 1 root root  1857020 Jul  6 16:00 System.map-2.6.38.8-35.fc15.i686
-rw-r--r--. 1 root root  120094 Jul  6 16:00 config-2.6.38.8-35.fc15.i686
-rw-r--r--. 1 root root 14016153 Jul 21 15:24 initramfs-2.6.38.8-35.fc15.i686.img
-rwxr-xr-x. 1 root root  4066496 Nov 22 09:01 vmlinuz-3.1.2-1.fc16.i686
-rw-------. 1 root root  1902316 Nov 22 09:01 System.map-3.1.2-1.fc16.i686
-rw-r--r--. 1 root root  124475 Nov 22 09:01 config-3.1.2-1.fc16.i686
-rw-r--r--. 1 root root  1582979 Nov 30 21:44 initrd-plymouth.img
drwxr-xr-x. 2 root root    1024 Nov 30 22:00 grub2
-rw-r--r--. 1 root root 15643532 Nov 30 22:14 initramfs-3.1.2-1.fc16.i686.img
drwxr-xr-x. 2 root root    1024 Dec  1 17:17 grub
[root@moore0 boot]#


First time using the preupgrade too so a bit lost. Should I just bite the bullet and do a full install? Its a 64 bits system but using 32 bit OS so I wouldnt have the typical issues associated with 64 bit install.
thanks for replies.

syg00 12-02-2011 03:59 AM

To be honest, this F16 preupgrade just seems a (bigger) mess.
As I said, I've given up on it - my system is such a schemozzle now. I have a separate /home partition - it may be worth you while doing likewise. Note the change in base uid/gid with F16, so trying to use a common /home will get "interesting" especially if you try to fallback to F15.

Note my sigline.

Moore 12-02-2011 04:23 AM

your experienced opinion is good enough for me.
I'm going to leave it for now and may perform a full clean install at some stage later when I have the time.

thanks for your input.

kbp 12-02-2011 07:32 PM

Found the problem, it just happened to me as well ... https://bugzilla.redhat.com/show_bug...iple&id=751131

Preupgrade didn't handle the grub -> grub2 migration gracefully, /boot/grub2/grub.cfg is created blank.

Try the following :-

Code:

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda

.. and reboot.

Moore 12-04-2011 05:55 AM

that seemed to work sweet.
I'm up and running now and hopefully it will remain that way.
thanks ever so much!

syg00 12-05-2011 04:31 AM

And just as a clean-up note ...

My system was completely toast. I tried recoveries, rebuilds, finally a re-install over the top.
Even then the grub install fsck'd up. The Fedora devs have excelled themselves this time.

It's now working, but no help to them.


All times are GMT -5. The time now is 04:50 AM.