LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-26-2011, 06:30 PM   #1
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Rep: Reputation: 16
Try custom kernel, now system is unbootable


I compiled my own custom kernel for the first time. I tinkered with different options, nothing to difficult. I actually didn't expect it to work the first time.

I had kept the original lilo boot config just in case something was to go wrong. Now when I try to boot the system, I always get a "VFS: cannot mount root system on (8,3)". I googled this and found that my kernel did not support my root filesystem (btrfs). So I made an initrd with btrfs kernel module, but it didn't help. I then got a string of errors about how /dev could not be mounted.

My question is two-fold. First, how come when I configure the system back to when it was first installed, it still won't boot? Im using the same kernel (2.6.37.6-smp). Second, how can I get myself out of this rut without reinstalling?

lilo.conf
Code:
lba32
append=" vt.default_utf8=0"
boot=/dev/sda

vga = normal

# Linux - Slackware
image = /boot/vmlinuz-huge-smp-2.6.37.6-smp
root = /dev/sda3
label = Linux
read-only
BTW, I have been maintenancing the system by chrooting into the device off of my slackware boot disk. Im on slack 13.37

Thanks!
 
Old 06-26-2011, 07:03 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
reinstall the kernels and modules from the boot disk.

First thing you should learn about using a custom kernel is to leave the old kernel in place and making an extra entry in lilo.conf. That usualy means copying the new vmlinuz/system.map to /boot with custom names so they don't overwrite the original ones.
 
Old 06-26-2011, 07:50 PM   #3
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
well I did copy the custom kernel to the /boot directory with a custom name but somewhere along the way something got messed up.

I just reinstalled the kernel packages from the cd and it works great. Thanks for your help.
 
Old 06-26-2011, 11:28 PM   #4
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Rep: Reputation: 30
http://alien.slackbook.org/dokuwiki/...kernelbuilding
 
  


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
kernel panic - custom kernel won't mount file system j-osh Fedora 8 11-19-2008 01:13 AM
Unbootable Mandriva System Nether Linux - Newbie 8 09-18-2005 06:33 PM
Now that my system is Unbootable........can someone help me! matthewa Linux From Scratch 1 06-06-2005 09:18 PM
Custom Kernel and System.map tmoorman Linux - Software 6 10-23-2003 04:12 PM
Custom kernel and System.map tmoorman Mandriva 1 10-22-2003 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:45 PM.

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