LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-07-2003, 04:52 AM   #1
usernamed
LQ Newbie
 
Registered: Jun 2003
Location: By the sea
Distribution: LFS/BLFS
Posts: 24

Rep: Reputation: 15
Unhappy Help! I've killed Slackware 9! - SOLVED


Hi to all,

I'm hoping that someone here can help me recover my trashed Slackware 9 install. Basically, I downloaded swaret (a very impressive tool) and ran an 'upgrade all', which all seemed to run according to plan. I then ran LILO afterwards to make sure that no errors were thrown up, and that it all seemed to work ok, which it did. I rebooted, and everything came up as normal.

'Great!', I thought, 'who says linux is tricky?'

However, the next time I rebooted (having not changed anything at all except getting ALSA going on my machine) the screen filled up with '07 07 07' repeatedly for half a screen. Nothing else happened. By booting from my Slackware CD, I've used cfdisk to switch the bootable drive from /dev/hda2 to /dev/hda1 (where my Windows partition is) I've managed to get into Windows, and it's from there that I'm writing this.

I've tried reinstalling/reconfiguring LILO from the Slackware CD I originally installed from, but this hasn't changed the situation, and I REALLY don't want to start from scratch again unless I have to.

Any help would be gratefully appreciated! And yes, I am a newbie, so please be gentle with me...

Last edited by usernamed; 06-07-2003 at 10:52 AM.
 
Old 06-07-2003, 06:11 AM   #2
labr@
Member
 
Registered: May 2003
Location: Dallas, TX
Distribution: Slackware. (There are others?)
Posts: 46

Rep: Reputation: 16
Try this.

When you boot to the CD.
It will ask you something at the "boot:" Pass the parameters for the bare.i kernel to the "boot:" and see if it will load.
 
Old 06-07-2003, 07:07 AM   #3
usernamed
LQ Newbie
 
Registered: Jun 2003
Location: By the sea
Distribution: LFS/BLFS
Posts: 24

Original Poster
Rep: Reputation: 15
Hi labr@,

OK, I've done that following the on-screen instructions to point the kernel to my own root partition, so the boot parameter that I used was actually along the lines of 'bare.i=dev/hda2'

hda2 being where my Slackware 9 installation resides. This has allowed me to boot into Linux from the cd, and log in as root without needing a password. This is how I got into Linux last time and tried (without success) to reinstall/reconfigure LILO. Any further help much appreciated, thanks...
 
Old 06-07-2003, 08:50 AM   #4
X_shadow_X
LQ Newbie
 
Registered: Apr 2003
Posts: 27

Rep: Reputation: 15
Try to clean MBR and reinstall LILO or Wrilte lilo into floppy (just try it )
hope this helps.
 
Old 06-07-2003, 09:15 AM   #5
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
This has allowed me to boot into Linux from the cd, and log in as root without needing a password.
If you got in without a password, I don't think you actually booted "Your" system...you should still need to login using a valid username and password.

Quote:
'bare.i=dev/hda2'
If this is exactly what you entered, you did not boot your system, which is why you had no luck with repairing Lilo. Instead, do...

bare.i root=/dev/hda2 noinitrd ro

This will boot your system using the bare.i kernel from the cd. You can then log in and reconfigure Lilo. I think you can reinstall Lilo to the mbr using lilo /M /dev/hda...check the man pages and see what switch installs Lilo to the mbr.
 
Old 06-07-2003, 09:23 AM   #6
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
If you don't want to install Lilo to the MBR, you can just install it to / (root) and use the Windows boot loader. To do this...

Boot the Linux system (using the steps described in previous post), install Lilo to /, configure and run lilo...then do...

dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1

Then format a floppy disk...
mkfs -t msdos /dev/fd0

Then copy bootsect.lnx to the floppy...
mcopy /bootsect.lnx a:

Boot into Windows, and add this to boot.ini...
C:\BOOTSECT.LNX="Linux"

Copy bootsect.lnx from floppy to Windows C: drive...

When you reboot, you can choose linux which will run Lilo, and you can choose which kernel you want to boot.

Just another thought

Last edited by DaOne; 06-07-2003 at 09:24 AM.
 
Old 06-07-2003, 10:51 AM   #7
usernamed
LQ Newbie
 
Registered: Jun 2003
Location: By the sea
Distribution: LFS/BLFS
Posts: 24

Original Poster
Rep: Reputation: 15
Thanx DaOne,

I'm pleased to report problem solved. It seems that somehow despite the fact that I was installing LILO to /dev/hda2 and not the MBR LILO was still looking on the MBR.

As you said above, I wasn't booting into my system initially, just the standard Slackware shell for setting up Slackware. Once I'd got past that (thanks again) an uninstall and reinstall of LILO (plus a boot into Windows Recovery Console to write a new MBR to the beginning of the disc) was all it took to get up and running again.

My apologies for being so dozy, and thanks again to all who've helped.

Mark
 
Old 06-08-2003, 02:13 AM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
hehehe
linux isn't tricky

Lilo is.
 
  


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
I Killed It HELP Kwestion SUSE / openSUSE 1 10-23-2005 01:54 AM
Swaret KILLED sound for Slackware 10.1 NetRAVEN5000 Slackware 35 08-13-2005 06:32 PM
Slackware 10.1 kernel upgrade killed my network - help! clowntoe Slackware 13 06-10-2005 11:52 AM
X locks when killed gf3 Linux - Software 0 07-22-2004 09:42 AM
processes that can't be killed :-\ Syncrm Linux - General 8 06-24-2002 02:33 PM

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

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