LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2009, 03:05 PM   #16
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850

Hello,

boot with a live-CD and do a chroot into the partition. Then you can reconfigure your lilo.conf and execute lilo.

Markus
 
Old 10-14-2009, 04:43 PM   #17
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
Thats what I meant with ATTENTION...

You now have to boot with the installation cd into recovery mode or such
or you have to use a live cd to reach a console:

download the iso image e.g. from www.grml.org
insert, reboot, boot from cd
you will end with a linux terminal.
type mount /media/hda1 (or mount /mnt/hda1, depending on the live cd)
type vi /media/hda1/boot/lilo.conf to revert the changes you made
(or use any other editor you are familiar in)
save the file, exit the editor and type reboot
eject cd, your old kernel should boot again.


When both kernels dislike sd1, it seems you are good with hda1, but missing the support for your root filesystem.
check if ext2 (or ext3 or whatever you use, see "mount" when running with the old kernel) and the partition support is compiled in.

For the FS support:

File systems --> <*> second extended fs support,
File systems --> <*> Ext3 journalling file system support

you can safely enable both.

For the partition table support:

either disable the advanced selection if you don't need it:
File systems --> Partition Types --> [ ] Advanced partition selection

or ensure that your type, usually DOS partition tables, is enabled:
File systems --> Partition Types -->[*] Advanced partition selection -->[*] PC BIOS (MSDOS partition tables) support


again, compiling as modules [M] does NOT work here.

Last edited by doc.nice; 10-14-2009 at 04:49 PM. Reason: missed the live-cd part
 
Old 10-14-2009, 05:49 PM   #18
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
bash-2.05b#mount -t vfat /dev/hda1 -o wr /mnt/hda1
bash-2.05b#chroot /mnt/hda1
bash-2.05b#vi /etc/lilo.conf
bash-2.05b#lilo
Fatal: open /dev/hda1: Permission denied
Process returned on error.
bash-2.05b#
 
Old 10-14-2009, 05:54 PM   #19
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
mount -o remount,suid,dev,rw /dev/hda1

the default in your live cd seems to mount (noexec,)nosuid...
then try again calling lilo
 
Old 10-14-2009, 05:57 PM   #20
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
ok its booting again YAY
 
Old 10-14-2009, 06:06 PM   #21
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
good to hear
 
Old 10-14-2009, 07:05 PM   #22
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
i mean the old kernel the new one is still busted
 
Old 10-14-2009, 09:30 PM   #23
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
bump
 
Old 10-15-2009, 03:30 AM   #24
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
bump again?
 
Old 10-15-2009, 05:30 AM   #25
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello smeezekitty,

if you want to do an upgrade from a 2.4 to a 2.6 kernel, I'd recommend to do a complete new installation. That is what I would do in this case. Don't forget to make a backup of your home-directory.

Markus
 
Old 10-15-2009, 08:52 AM   #26
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
sorry, in germany, your bumps where in the middle of the night...
Give an old man (TM) a little sleep

I think it's not necessary to do a reinstall, especially in this case:
the new kernel doesn't boot because some modules are missing, I suppose, a clean hd install would fix this.

Is there any reason you have to create your own kernel and cannot use a pre-packed one from your distribution?
this may work rather straightforward...

could you send your kernel .config file, the output of lspci and the exact kernel version you are trying to build?
I can then double check your settings in a virutal machine.
 
Old 10-15-2009, 01:05 PM   #27
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
kernel version 2.6.31 (i think its current, unpatched)
my .config is attached below
Attached Files
File Type: txt config.txt (28.0 KB, 6 views)
 
Old 10-15-2009, 01:43 PM   #28
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
OK, possibly found the bug:
You seem not to have selected any IDE controller driver.

Check the output of lspci to find out what ide controller you use.
then enable the driver under Device Drivers, ATA/ATAPI/MFM/RLL support.
You can also try the Generic/default IDE chipset support and/or Generic PCI IDE chipset support.
The Intel PIIX/ICH, AMD/NVidia and ATI drivers are also a good candidate to try.
Simple enable all possible candidates for you...

Alternative: Device Drivers, Serial ATA (prod) and parallel ATA (experimental) drivers:
ATA SSF support, and again: whatever seems appropriate (Generic, Intel PATA MPIIX, Ati, Via, AMD/NVidia, ...)

You should decide if you use the first OR the second alternative, not both. And again the second alternative may need to use /dev/sda1 instead of /dev/hda1, but you are more "future-safe".

HTH,
Florian
 
Old 10-15-2009, 01:51 PM   #29
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
ok:
Code:
root@box:~# lspci
00:01.0 ISA bridge: Generic ISA bridge
00:01.1 IDE interface: Generic IDE Controller
00:02.0 EGA compatible controller
00:03.0 ???
00:04.0 ???
00:05.0 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio Controller
00:06.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
 
Old 10-15-2009, 02:50 PM   #30
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
well, try the generic one, with that excat lspci info
 
  


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
Custom compiled kernel will not boot corgi Debian 11 10-18-2008 08:36 AM
new kernel compiled doesn't boot luca74 Slackware 13 02-22-2008 10:15 AM
kernel 2.6.21 wont boot after being compiled AceofSpades19 Linux - General 2 05-09-2007 07:47 PM
Newly compiled kernel won't boot nivantha Linux - Kernel 3 09-14-2006 04:02 AM
Which compiled kernel has been used to boot system? aliamiri Linux - General 2 05-02-2006 11:17 AM


All times are GMT -5. The time now is 10:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration