LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-09-2004, 08:00 AM   #1
Mahony
Member
 
Registered: Jan 2004
Location: Glasgow
Distribution: Gentoo 2004.0, Debain 3.0r2, Mandrake 10.0 and Slackware 9.1
Posts: 173

Rep: Reputation: 30
Major problem (LILO)


Hello,
I have been having trouble recently with my computer and I had to install Windows (noooooooo). Anyway, Windows overwrited my MBR and now I need to install it again to access Linux (if I still can). I formated my Swap partition and installed windows onto that. Does anyone know how I could boot into Linux?

Thank you

I have some very important data there, please help.
 
Old 04-09-2004, 08:04 AM   #2
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
I assume your using slackware cos thats what it says your distribution is.
Load up your slackware install cd and login
create a folder to mount your linux installation to then mount your linux installation to it e.g.
mkdir /mnt/linux
mount /dev/hda2 /mnt/linux
then chroot to /mnt/linux
chroot /mnt/linux
and type lilo
 
Old 04-09-2004, 08:14 AM   #3
Mahony
Member
 
Registered: Jan 2004
Location: Glasgow
Distribution: Gentoo 2004.0, Debain 3.0r2, Mandrake 10.0 and Slackware 9.1
Posts: 173

Original Poster
Rep: Reputation: 30
Unfortuantly I don't have a my Slackware install CD but I think I have a Debain CD, a College Linux CD and a Knoppix CD ... I'm not sure I'll have to look, is there anyway I could do it from one of them?
 
Old 04-09-2004, 08:18 AM   #4
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
College linux is based on slackware so possibly
Knoppix definitely
 
Old 04-09-2004, 08:48 AM   #5
Mahony
Member
 
Registered: Jan 2004
Location: Glasgow
Distribution: Gentoo 2004.0, Debain 3.0r2, Mandrake 10.0 and Slackware 9.1
Posts: 173

Original Poster
Rep: Reputation: 30
Damn! I can't find my knoppix CD. I do however have a College Linux CD, what could I do with this? When I use it, is says "boot:" what should I type here?
 
Old 04-09-2004, 08:54 AM   #6
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
Press enter then follow the instructions i gave before
 
Old 04-09-2004, 09:04 AM   #7
Mahony
Member
 
Registered: Jan 2004
Location: Glasgow
Distribution: Gentoo 2004.0, Debain 3.0r2, Mandrake 10.0 and Slackware 9.1
Posts: 173

Original Poster
Rep: Reputation: 30
Then it starts to install...
 
Old 04-09-2004, 09:19 AM   #8
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
Ok i thought seeing as it was based on slackware it might install like slackware. You could always try your debian cd, not sure if that will work
 
Old 04-09-2004, 09:46 AM   #9
Mahony
Member
 
Registered: Jan 2004
Location: Glasgow
Distribution: Gentoo 2004.0, Debain 3.0r2, Mandrake 10.0 and Slackware 9.1
Posts: 173

Original Poster
Rep: Reputation: 30
Is there any other way?

Last edited by Mahony; 04-09-2004 at 09:49 AM.
 
Old 04-09-2004, 09:53 AM   #10
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
You could try writing a kernel to a floppy and booting with that
when it comes up with the boot prompt type
root=/dev/hda3
 
Old 04-09-2004, 10:02 AM   #11
Mahony
Member
 
Registered: Jan 2004
Location: Glasgow
Distribution: Gentoo 2004.0, Debain 3.0r2, Mandrake 10.0 and Slackware 9.1
Posts: 173

Original Poster
Rep: Reputation: 30
How exactly would I write a kernel to a floppy?
 
Old 04-09-2004, 10:09 AM   #12
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
in linux use dd
#dd if=kernelnamehere of=/dev/fd0
in windows you can use rawrite
 
Old 04-09-2004, 10:17 AM   #13
Mahony
Member
 
Registered: Jan 2004
Location: Glasgow
Distribution: Gentoo 2004.0, Debain 3.0r2, Mandrake 10.0 and Slackware 9.1
Posts: 173

Original Poster
Rep: Reputation: 30
rawrite doesn't work
 
Old 04-10-2004, 10:45 PM   #14
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
It should ive never had troubles with it. What are you typing?
 
Old 04-10-2004, 11:24 PM   #15
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
linux root=/dev/hda3
if that's your linux root partition anyway. that will boot into linux for you. /sbin/lilo will reinstall your lilo on the mbr if that's where you had it before. you might want to look at your /etc/lilo.conf to make sure that you have a windows boot prompt in it. if not add-

other=/dev/hda1
label="windows"

that's pretty much off of memory, since i dont' have any windows i really can't specify it perfectly. someone else should be able to.

cheers.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Major printing problem. Baldorg Linux - Software 4 02-26-2006 12:33 PM
it seems a major networking problem. bruse Linux - Networking 7 07-19-2005 08:41 PM
Major problem with IPtables abefroman Linux - Security 1 06-30-2005 09:26 PM
Please Help Me!! Major Problem!! cbe_7093 Linux - Hardware 1 11-14-2003 02:45 PM
Major Problem! Ghettozn Linux - Newbie 7 07-22-2003 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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