LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-26-2004, 09:42 PM   #1
mc_03
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Rep: Reputation: 15
Rescuing my Debian!


I seem to have overwritten the MBR (and consequently, LILO) in a recent Windows re-install, and now I can't log into Linux when my computer boots (goes straight into Windows.) The Linux partition is otherwise untouched and all my files are there, I in my n00bliness just can't find any way of booting into it. (I lost my rescue disk.) Any suggestions?

Thanks

Edit: I DO have a Knoppix disk, if that can be of any use.

Last edited by mc_03; 03-26-2004 at 09:53 PM.
 
Old 03-26-2004, 09:54 PM   #2
tr4nsfix
Member
 
Registered: Mar 2004
Location: Toronto, Ontario
Distribution: Debian
Posts: 36

Rep: Reputation: 15
you can rescue from your debian install disk... (check the options when you boot off CD)

assuming you know which partition you installed linux on you specify your root. so it will be something like this:

rescue root=/dev/hda1

once you're booted you just need to modify your /etc/lilo.conf to include your windoze partion like this:

other=/dev/hda3
label=windoze

run lilo as root. reboot and you should be able to dual boot.
 
Old 03-26-2004, 09:56 PM   #3
mc_03
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Original Poster
Rep: Reputation: 15
I installed Linux off a Knoppix disk, so while it's pretty much Debian I don't have a Debian install disk. Any way I can do it from Knoppix?
 
Old 03-26-2004, 10:03 PM   #4
tr4nsfix
Member
 
Registered: Mar 2004
Location: Toronto, Ontario
Distribution: Debian
Posts: 36

Rep: Reputation: 15
I'm not familiar with knopix... maybe give it a try.

Also you might want to try using the rescue floppy from this page: http://pigtail.net/nicholas/linux/debian.html
 
Old 03-26-2004, 11:21 PM   #5
mc_03
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Original Poster
Rep: Reputation: 15
I booted from the rescue floppy, and used rescue root=/dev/hdb1 (knoppix root partition.) It starts loading linux.bin and then gives me an error.

Does anyone know if the Knoppix cd has rescue features or how to make a boot disk for my knoppix partition?
 
Old 03-27-2004, 09:24 AM   #6
tr4nsfix
Member
 
Registered: Mar 2004
Location: Toronto, Ontario
Distribution: Debian
Posts: 36

Rep: Reputation: 15
Whats the error?
 
Old 03-27-2004, 11:42 AM   #7
mc_03
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Boot failed. Please insert another disk and press any key.

I tried booting the Knoppix CD, chrooting to /dev/hdb1 and running lilo but it gave me an error too, something along the lines of Failure to open /dev/hda.
 
Old 03-28-2004, 01:21 AM   #8
tr4nsfix
Member
 
Registered: Mar 2004
Location: Toronto, Ontario
Distribution: Debian
Posts: 36

Rep: Reputation: 15
You can use a debian boot CD (download image here: http://linuxiso.org/distro.php?distro=4)
You only need the first CD. It'll let you do the rescue.
 
Old 03-28-2004, 05:59 PM   #9
urzumph
Member
 
Registered: Jan 2004
Location: Australia
Distribution: Debian
Posts: 168

Rep: Reputation: 30
Quote:
Originally posted by mc_03


I tried booting the Knoppix CD, chrooting to /dev/hdb1 and running lilo but it gave me an error too, something along the lines of Failure to open /dev/hda.
did you mount /dev/hdb1 -o rw,remount first?

The other option without chrooting is to /mnt/hdb1/sbin/lilo -r /dev/hdb1
(I never could get it to work chrooted for some reasion, but that works...)
 
Old 03-30-2004, 06:19 PM   #10
mc_03
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Success! I somehow got it working by booting Knoppix in text mode, chrooting from there and running LILO.

Thanks for the help!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference between debian and other debian-based distro like knoppix? Akhran Debian 11 08-28-2005 06:07 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Rescuing Fedora Core 4 ethics Fedora 3 07-14-2005 06:28 AM
attn linux groups in chicago. girl needs rescuing marytuesday General 2 05-06-2005 06:22 PM
Best live-cd distro for rescuing a system Coume Linux - Distributions 3 07-20-2004 09:50 PM


All times are GMT -5. The time now is 02:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration