LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-08-2006, 11:20 AM   #1
markcole
LQ Newbie
 
Registered: Apr 2006
Location: FL
Distribution: Used to be slack, fedora(sometimes), now arch
Posts: 15

Rep: Reputation: 1
FC5 panic after install


I have "successfully" installed FC5 (just downloaded last night) and when I tried to boot into it, I get a kernel panic.

My system is:
AMD 2400, 2 HDs and 1 DVD-R drive

ide0 has 1 HD with winXP loaded
ide1 has dvd-R (as primary) and HD (as secondary) with FC5 loaded

I used grub on the MBR for booting.

When I boot, I get normal stuff until I notice:

Trying to resumer from LABEL=SWAP-hdd3
No suspend signature on swap, not resuming
..
..
It sets up root device and filesystem
unmounts old dev,proc and sys
then
kernel panic - not syncing:Attempted to kill init!

Does anyone have any suggestions? Thanks

-mark
 
Old 04-08-2006, 08:06 PM   #2
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Hello,

Does this problem happen every time you boot? The first time I installed FC5 I had same problem, but when I rebooted, it was fine. It didn't happen at all the other two times I installed FC5.
 
Old 04-08-2006, 08:27 PM   #3
markcole
LQ Newbie
 
Registered: Apr 2006
Location: FL
Distribution: Used to be slack, fedora(sometimes), now arch
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by JMJ_coder
Hello,

Does this problem happen every time you boot? The first time I installed FC5 I had same problem, but when I rebooted, it was fine. It didn't happen at all the other two times I installed FC5.
Yes, every time.
 
Old 04-08-2006, 08:43 PM   #4
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Where did you locate your swap partition. On the first or second hard drive? How is the second hard drive partitioned?
 
Old 04-08-2006, 09:06 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
There are usually a few error messages displayed before the "Not syncing" message. Usually they relate to trying to boot using a read-only partition, and not being able to create, e.g., tty[0-4].

If there were any such messages, can you tell us what they said?

Review your GRUB settings (displayed when you type "e" on the boot menu item) to be sure that the kernel line specifies the correct root partition. If you used the default installation settings, it should look something like this:
Code:
title Fedora Core 5 (2.6.16-1.2080)
        root (hd1,1)
        kernel /vmlinuz-2.6.16-1.2080_FC5smp ro root=/dev/FC5/Root rhgb quiet
        initrd /initrd-2.6.16-1.2080_FC5smp.img
where the red section is more typically VolGroup00/LogVol100, but I prefer my own names for the logical volumes I use.

Note that the boot partition "(hd1,1)" is hdb1, and that both the swap and root (i.e., "/") file systems are inside the logical volume.

If you used the manual partitioning option, your root line should be something like root=/dev/hdb2.

Also, check your BIOS for the suspend/resume settings. They may need changing.
 
Old 04-08-2006, 09:16 PM   #6
markcole
LQ Newbie
 
Registered: Apr 2006
Location: FL
Distribution: Used to be slack, fedora(sometimes), now arch
Posts: 15

Original Poster
Rep: Reputation: 1
I didn't see any error messages prior to the swap error, but i will check again and post a correction if I see any.

root partition was set correctly in grub. it is using labels and i verified that the label was correct in fstab. I even tried to hard code it in and got same results...

My disk set up is as follows:

hdd1 - /boot
hdd2 - /
hdd3 swap

all primary partitions

Now that i write this I seem to remember something about swap needing to be first...does this sound familiar to anyone?
 
Old 04-09-2006, 06:48 AM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
No, "swap" is a partition type, not a label, and it can be anywhere. In fact, I think that Linux may automatically "pool" all the swap partitions it detects into a "single" swap. I'm not sure about that, but I do have one distribution installed on hdh that uses a swap partition on hdb with no problem.

You say that
Quote:
My disk set up is as follows:

hdd1 - /boot
hdd2 - /
hdd3 swap
But your first post claimed only two hard drives and one DVD, which would normally imply that only /dev/hda, /dev/hdb and /dev/hdc would exist. Was your (repeated) reference to hdd a typo, or do you somehow actually have more drives then you first claimed?

What happens if you delete the swap partition? (You don't actually need it to boot, and -- if you can boot without it -- you can recreate it and, hopefully, re-boot.)

Is your swap partition type correct? It should be type 0x82.

Did you check you BIOS settings for "suspend" and "resume?" Specifically, what disk area(s) -- if any -- are they set to use?
 
Old 04-09-2006, 09:55 AM   #8
markcole
LQ Newbie
 
Registered: Apr 2006
Location: FL
Distribution: Used to be slack, fedora(sometimes), now arch
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by PTrenholme
No, "swap" is a partition type, not a label, and it can be anywhere. In fact, I think that Linux may automatically "pool" all the swap partitions it detects into a "single" swap. I'm not sure about that, but I do have one distribution installed on hdh that uses a swap partition on hdb with no problem.

You say that But your first post claimed only two hard drives and one DVD, which would normally imply that only /dev/hda, /dev/hdb and /dev/hdc would exist. Was your (repeated) reference to hdd a typo, or do you somehow actually have more drives then you first claimed?

What happens if you delete the swap partition? (You don't actually need it to boot, and -- if you can boot without it -- you can recreate it and, hopefully, re-boot.)

Is your swap partition type correct? It should be type 0x82.

Did you check you BIOS settings for "suspend" and "resume?" Specifically, what disk area(s) -- if any -- are they set to use?
My first hard drive (/dev/hda) has my windows partitions. My second drive (/dev/hdd) has my linux partitions as noted above. hdd1, hdd2, hdd3 - 3 partitions.

As for the rest, i have decided to try a different distro. I installed FC5 about 5 times yesterday with different configurations, and every time it never booted for one resaon or the other.

Thanks for your help...
 
Old 04-28-2006, 12:23 AM   #9
masterxi
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
I'm having the same problem as well

I am having the same problem booting after I install Fedora 5. When I boot up, I get the following output:


.
.
.
Scanning logical volumes
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
Activating logical volumes
2 logical volume(s) in volume group "VolGroup00" now active
Trying to resume from /dev/VolGroup00/LogVol01
No suspend signature on swap, not resuming.
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesustems.
Setting up new foor fs
setuproot: moving /dev failed: No such file or 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 ew 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: No such file or directory
[<c011a32e>] panic+0x3e/0x170 [<c011cede>] do_exit+0x71/0x6c8
[<c011d5b9>] sys_exit_group+0x0/0xd [<c0102bc1>] syscall_call+0x7/0xb

There are no errors before this.

I've tried multiple entries for 'swap' in my /etc/fstab and I get the same output above. I've used the rescue CD and successfully used my swap file (by 'swapon /dev/VolGroup00/LogVol01'). Before I installed Fedora 5, I was running Red Hat 2.4 without problems. If more information is needed, I'll gladly provide it. Can someone please help me?


Thanks,
Master-Xi
 
Old 04-28-2006, 12:49 AM   #10
brianmay27
Member
 
Registered: Apr 2006
Posts: 82

Rep: Reputation: 15
well this is something that may work (i am not 100% sure still new but there is nothing to loose). this will make a new kernal with something added. go into linux rescue and mount you drives. then enter.
mkinitrd --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod /boot/[initrdname]-usb.img Your kernal (uname -r) then restart and go into the edit in grub and edit the initrd part where it had your kernal. hit enter and then b for boot. if that does not work at least i gave it my best.
 
Old 04-28-2006, 08:18 PM   #11
masterxi
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
mkinitrd doesn't work

I tried your suggest brianmay, but it is a bash script that assumes /dev/VolGroup00/LogVol00 is bound to /, not /mnt/sysimage. So I am getting loads of errors. I gave my 80% trying to fix the script, but it still didn't work. Do you have any other suggestions? Thanks for your previous input.
 
Old 04-30-2006, 09:27 PM   #12
masterxi
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
Here's the fix

After almost giving up on Fedora 5, I finally got the fix to this problem.

The suspend signature on swap error, "Trying to resume from LABEL=SWAP-hdd3. No suspend signature on swap, not resuming", can be ignored. It gives this error because when the volumes are activated (look at the output previous to this error), it resumes the swap partition in that step. Therefore, it's trying to resume something that isn't suspended.

The error that causes all the trouble is "mount: could not find filesystem '/dev/root'". Appartently, in the init script within initrd-2.6.15-1.2054_FC5.img, the command 'mount /sysroot' is trying to mount /dev/root to /sysroot. Fedora 5 does not use /dev/root like in the previous versions of Fedora. Instead, it uses '/dev/VolGroup00/LogVol00' or '/dev/hda1' (or whereever '/' is located) to mount to /sysroot. For some reason, when init calls 'mount /sysroot', it's trying to mount /dev/root to /sysroot, instead of /dev/VolGroup00/LogVol00 to /sysroot. This messes up everything after this step in the init process. When it does a switchroot at the end, it fails. After killing init, it causes the kernel panic.

Here's the fix:

1) Boot with the rescue CD
2) Type 'chroot /mnt/sysimage' (wherever it mounts the Fedora 5 partition)
3) 'cd /boot'
4) 'mkdir newinit'
5) 'cd newinit'
6) 'gunzip -c ../initrd-2.6.15-1.2054_FC5.img | cpio -idmv'
7) 'vi init'
8) Find 'mount /sysroot' (near the end of the file)
9) Delete or comment this out
10) Replace with 'mount -o defaults --ro -t ext3 /dev/VolGroup00/LogVol00 /sysroot' where /dev/VolGroup00/LogVol00 is the mount point for /
11) ':wq' out of vi
12) 'find . | cpio --quiet -c -o >../newinitrd'
13) 'cd ..' - you are now in /boot
14) 'mv initrd-2.6.15-1.2054_FC5.img initrd-2.6.15-1.2054_FC5.bak' - backup current initrd img file (just in case)
15) 'gzip -9 < newinitrd > initrd-2.6.15-1.2054_FC5.img'
16) Reboot the computer without the CD

* Steps 4-6,12,13,15 were taken from another site, but I couldn't post the URL. I'll try in my next post.

This should fix it. I'm glad I can finally run Fedora 5 on my box.

MarkCole, I'm not sure if you were experiencing the exact same problems I was with mounting root. However, I hope this helps anyone else experiencing the same problems I had.

Andy
 
Old 04-30-2006, 09:28 PM   #13
masterxi
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
The URL where I got some steps

Steps 4-6,12,13,15 were taken from https://www.redhat.com/archives/fedo.../msg07843.html
 
Old 05-03-2006, 02:30 PM   #14
bricox
LQ Newbie
 
Registered: May 2004
Posts: 12

Rep: Reputation: 0
Also having problem

I'm having the same problem as described here. I tried about everything I can think of. I was previously running FC2 before upgrading to FC5. Does anyone have any other suggestions?

After trying the above my error changes slightly. It becomes "no fstab.sys, mounting defaults". Then I receive the kernel panic.

Thanks,
Brian

Last edited by bricox; 05-03-2006 at 02:32 PM.
 
Old 05-31-2006, 02:37 AM   #15
bbaron
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Code:
sorry for my english
I hate this problem. Now it is all ok.
So you must boot from other linux (live CD od rescue)
make chroot (mount root and boot fs), you must have correct /dev and /proc and /etc/mtab! (mount -type proc none /proc ; cat /proc/mounts > /chroot/etc/mtab)
then go to /boot/grub - here is device.map - correct it [ (hd0) /dev/hdb  - for example]
then do: 'grub-install /dev/hdb'

and then follow this:
4) 'mkdir newinit'
5) 'cd newinit'
6) 'gunzip -c ../initrd-2.6.15-1.2054_FC5.img | cpio -idmv'
7) 'vi init'
8) Find 'mount /sysroot' (near the end of the file)
9) Delete or comment this out
10) Replace with 'mount -o defaults --ro -t ext3 /dev/VolGroup00/LogVol00 /sysroot' where /dev/VolGroup00/LogVol00 is the mount point for / (I haven't VolGroup00 etc so I give: 'mount -o defaults --ro -t ext3 /dev/hdb3 /sysroot')
11) ':wq' out of vi
12) 'find . | cpio --quiet -c -o >../newinitrd'
13) 'cd ..' - you are now in /boot
14) 'mv initrd-2.6.15-1.2054_FC5.img initrd-2.6.15-1.2054_FC5.bak' - backup current initrd img file (just in case)
15) 'gzip -9 < newinitrd > initrd-2.6.15-1.2054_FC5.img' 
16) this point I edit /etc/fstab
17) Reboot the computer without the CD

I got two disks: 
hdc - old linux (Mandrake 9.2 i use it for chroot)
hdb - new FC5
      hdb1 - /boot
      hdb2 - swap
      hdb3 - /root
 
  


Reply



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
Flash Install Problem (FC5) filterfann Fedora 4 09-30-2006 07:20 AM
FC5 does not install bootloader TigerLinux Fedora - Installation 2 04-01-2006 06:41 AM
How to install YUM for FC5 FireGunz Fedora 6 03-28-2006 08:20 AM
System hangs during FC5 install sidebuster Linux - Newbie 3 03-27-2006 02:13 PM
Boot failure after upgrading FC5 TR3 to FC5 Official Release fsb1284 Fedora 3 03-25-2006 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration