LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 09-28-2006, 07:43 PM   #1
flobadob
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Rep: Reputation: 0
Upgrade kernel (FC5) loses root partition


Hello, I did a fresh install of FC5. Everything works fine with kernel.x86_64 .2.6.15-1.2054_FC5 when I yum update to kernel.x86_64.2.6.17-1.2187_FC5 I cannot boot the new kernel. I get an error along the lines of 'mount: can't find root'. I have tried the solution where I gunzip /boot/initrd-2.6.17-1.2187_FC5.img and edit init to be...
#mount /sysroot
mount -o defaults --ro -t ext3 /dev/sdb3 /sysroot
...but then I just get a similar message where it can't find /dev/sdb3. I have tried /dev/hdf3 and /dev/hde3 also.

here is my fstab...
Code:
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=SWAP-sdb4         swap                    swap    defaults        0 0
here is grub.conf...
Code:
#boot=/dev/sdb
default=2
timeout=20
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.17-1.2187_FC5)
        root (hd0,0)
        kernel /vmlinuz-2.6.17-1.2187_FC5 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.17-1.2187_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
        root (hd0,0)
        kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.15-1.2054_FC5.img
title Windows XP
        map (hd0) (hd1)
        map (hd1) (hd0)
        rootnoverify (hd1,0)
        chainloader +1
here is grubs device.map...
Code:
(hd1)     /dev/sda
(hd0)     /dev/sdb
here is fdisk -l...
Code:
Disk /dev/sda: 320.0 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda4   *           1       38912   312560608+   7  HPFS/NTFS

Disk /dev/sdb: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   83  Linux
/dev/sdb2           16908       19457    20482875    f  W95 Ext'd (LBA)
/dev/sdb3              14       16524   132624607+  83  Linux
/dev/sdb4           16525       16906     3068415   82  Linux swap / Solaris
/dev/sdb5           16908       19457    20482843+   b  W95 FAT32

Partition table entries are not in disk order
Any ideas please? Doing my head in.
 
Old 09-29-2006, 08:19 PM   #2
Leisy
Member
 
Registered: Sep 2006
Location: Brno, Czech Republic
Distribution: Fedora
Posts: 56

Rep: Reputation: 15
I would try mount -o defaults --ro -t ext3 /dev/sda3 /sysroot

and I would also try to check disk/partition numbers in grub.conf when you get error 'mount: can't find root'
 
Old 09-30-2006, 04:29 PM   #3
flobadob
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Leisy
I would try mount -o defaults --ro -t ext3 /dev/sda3 /sysroot

and I would also try to check disk/partition numbers in grub.conf when you get error 'mount: can't find root'
Didn't work. grub.conf looks fine. Remember that everything worked ok on fc5 kernel 2.6.15 and the grub.conf is similar for the new kernel. My / partition is definately /dev/sdb3 I have tried /dev/hde also since I think this is equivolent?
 
Old 10-01-2006, 11:31 AM   #4
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
A few things to try...

1. Install the current FC5 testing kernel. It's based on kernel version 2.6.18 and may have a bugfix that helps you.

2. Add the following to your kernel command line: vga=791
This will result in more lines per screen displayed during boot. Check to see if libata.ko and scsi_mod.ko are listed in the boot messages. If they're not, you may have to make a new initrd. It's easy, but not necessary until we know for sure that's the problem.

3. In a working kernel, run "/sbin/lspci -v" and paste the results here.
 
Old 10-01-2006, 04:06 PM   #5
flobadob
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jcliburn
A few things to try...

1. Install the current FC5 testing kernel. It's based on kernel version 2.6.18 and may have a bugfix that helps you.
The update to the development 2.6.18 kernel is working. Thanks. Now all I need to do is find a kmod-nvidia for this kernel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
starting vncserver as non-root loses menu bar NullTerminator Linux - Networking 0 07-16-2006 01:37 PM
FC5: When will a kernel upgrade include alsa version 1.0.11? Dingus Fedora 1 06-01-2006 11:45 AM
mounted partition loses it's permissions titopoquito Linux - Software 2 02-27-2006 04:07 AM
8.0->8.1 upgrade results in failer to mount root partition dguy Slackware 5 05-04-2005 05:17 AM
SUSE 9.0 to 9.1 RC5 upgrade loses NFS mounts. pkelley5 Linux - Newbie 3 09-03-2004 05:55 PM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration