LinuxQuestions.org
Review your favorite Linux distribution.
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 09-30-2006, 06:15 PM   #1
Entheos
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Rep: Reputation: 0
Kernel Crash? While trying to Update


:/ well I tried to update Slackware 10.2 because the kernel it came with was too old and I messed up somehow everytime I boot to Linux it tries to load and it freezes,this happened a few months ago, I tried to fix it but I didn't have time to do research because school started and I barely have time to do anything on the computer or cut my hair sorry for the undetailed information but is there anyway to "rollback" to the old kernel because I got some important files in linux that im trying to get to but have no idea on how to get to it thank you for anybody that could help or tries.
 
Old 09-30-2006, 06:35 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
The other kernel should still be there. How did you install the new one?
 
Old 09-30-2006, 09:27 PM   #3
Entheos
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
I didn't delete the old kernel but I replaced vmlinux shortcut towards the new kernel
 
Old 09-30-2006, 10:11 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
OK, You may need to add it back to lilo.conf
1) Boot from the Slack install CD.
2) Press Ctrl&Alt&F2 to switch to a
terminal.
3) You may need to press enter to enable it.
4) You should now have a root prompt. Make a
directory for a mountpoint:
# mkdir /mnt/slack
5) Mount your root file system there:
# mount /dev/hdx /mnt/slack (whatever the root is)
6) You can now change your root to this,
effectively changing the system from the
setup to the installed OS:
# chroot /mnt/slack
7) Now check out the following:
cd /mnt/slack/boot
ls
The old kernel may have used and initrd so be sure to add that to lilo conf.
pico -w /mnt/slack/etc/lilo.conf
then edit as needed and use whatever editor you like.
make sure to rerun lilo
lilo
exit
umount /mnt/slack
reboot
something like that ...

Last edited by comprookie2000; 09-30-2006 at 10:13 PM.
 
Old 10-01-2006, 04:00 AM   #5
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
You need a live cd to get back in. The Slackware disk 2 from v9.x? used to do this but since at least v10 did not. Slax works.
I suspect that you forgot to run lilo after updating the kernel or forgot to update the modules package.
 
Old 10-01-2006, 07:08 AM   #6
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware
Posts: 573

Rep: Reputation: 59
In 10, 10.1 and 10.2 you use the FIRST disk (the boot disk). You don't have to use SLAX.

Also if you didn't overwrite your modules you can boot your installation from the boot disc by entering this at the first prompt (where it asks for the kernel):

mount root=/dev/hda1

replace hda1 with your root partition.

Then edit lilo.conf and rerun lilo following comprookie2000's instructions above.

EDIT checked FAQ.TXT and don't need ro at end of boot line

Last edited by Eternal_Newbie; 10-01-2006 at 07:13 AM.
 
Old 10-01-2006, 08:18 AM   #7
Entheos
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for y'all help, I appreciated it, I'll come back to say it worked, :\ well thats if it works I HOPE
 
Old 10-01-2006, 06:34 PM   #8
Entheos
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
ok guys this is what I did

I put my first cd of slack in, it runs...
I press Ctrl+Alt+F2 press Enter to no avial I still get into boot:...so I was like w/e
I Put: Sata.i root=/dev/sda2
login as "root"
mkdir /mnt/slack
mount /dev/sda2 /mnt/slack
chroot /mnt/slack ,works but heres the problem..
cd /mnt/slack/boot
No such directory found?
I was like w/e let me try the next step
pico -w /mnt/slack/etc/lilo.conf I get into it but its empty?

anyways reaccessing my memory from 3 months ago since I'm doing all of this for linux once agian is refreshing my memory , I remember I made a noobish mistake, I edited both initd and vmlinux to accommodate the new kernel, but never deleted the old kernel file, its directory and folders. is there anyway I could revert initd (w/e u call the file) back to its orginal form before I edited it, hope this helps before going back to school I was reading upon a file (can't remember if I was dreaming or not ) that said something about the function |more |less which would revert it back (maybe I got the wrong function)...sorry guys I just need to get to those darn files that I left in Linux they are irreplacable

Last edited by Entheos; 10-02-2006 at 10:08 PM.
 
Old 10-02-2006, 10:06 PM   #9
Entheos
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
anyone?...............
 
Old 10-02-2006, 11:28 PM   #10
311Sam
Member
 
Registered: Nov 2003
Location: waco, tx
Distribution: slackware & kubuntu
Posts: 108

Rep: Reputation: 15
you could try downlolading "damn small linux", its a live cd. then you could edit lilo with it
 
Old 10-02-2006, 11:38 PM   #11
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 905

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
After chroot /mnt/slack, then you would do
cd /boot
chroot does what it says: changes the root. Thus what was previously in /mnt/slack/boot is now in /boot.
 
Old 02-04-2007, 11:09 AM   #12
Entheos
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Sorry for resurrecting this thing again but I could get through the whole process up until I get to lilo.conf don't know what to change lol, I need to put 10.2 back to its original kernel or is there any alternative ways of retrieving files fromm this crashed kernel sorry mates but those files are a life work for me I should've never messed with the kernel in the first place/
 
Old 02-04-2007, 12:21 PM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Dude, use a live CD to get or change whatever you need on the disk. Use slax or DSL or knoppix or even the 1'st CD/DVD of Slackware.

Once you boot with that, mount your HDD and do whatever in there.

Code:
mount /dev/hda /mnt/tmp
cd /mnt/tmp  
ls # and here are you files
What filesystem you got on there ? If it's ext2 or ext3 then you'll be able to mount it with any live CD, if not then you'll need one with a kernel that supports it.
 
Old 02-14-2007, 03:52 PM   #14
Entheos
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Okay since now I got no time in my hands lol I did my research every time I
Code:
pico -w /mnt/slack/etc/lilo.conf
lilo seems to crash anyways Im just going to reisnatll the kernel using the cd by using
Code:
cp /mnt/cdrom/kernels/sata.i/config /usr/src/linux/.config
but for some reason when I /mnt/cdrom slackware doesn't recognize my mount?! I got two cdroms one is my bruner thats my master and the cd-rom thats my slave where do I have my cd mounted on?

lol I figured it out its my cd is on hda

screw this imma make a new thread

Last edited by Entheos; 02-14-2007 at 04:04 PM.
 
  


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
Quake4 crash after 1.3 update bobbyjoe Linux - Games 3 08-14-2006 06:13 PM
RH update causes crash? Darin Fedora 4 07-01-2005 05:33 AM
XFree crash after update (fonts) julian_s Linux - Software 2 07-23-2004 02:51 PM
Mandrake 10.0 Auto Update Crash billeyd0613 Mandriva 1 03-19-2004 06:31 PM
XawTV crash after RedHat Update! jpsrm Linux - Software 2 09-12-2003 07:39 AM

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

All times are GMT -5. The time now is 10:30 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