also @ TechSpot: HDD supply to recover by Q3 2012, prices to remain high
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > The Alternative OS

Download Now:

Rewriting Linux bootloader

Thread Tools Search this Thread
  #1  
Old 11-27-2003
Vehementi's Avatar
TechSpot Paladin
 
Location: Bellevue, WA
Member since: Feb 2002, 3,199 posts
System specs
Rewriting Linux bootloader

Hello all,

Here's my problem: Windows rewrote my MBR after installing a different version on a different partition, and now I can't access Linux. I didn't make a boot floppy () and even booting from the (seperate) hard drive Linux is on gets a "Error loading operating system". Can I re-write LILO to the MBR through linux rescue?
  #2  
Old 11-27-2003
MattG's Avatar
TechSpot Member
 
Location: Maine
Member since: Aug 2003, 147 posts
We will need to know what flavor your using....you might be able to boot off the CD, mount the linux partition through that and just run linuxconf or liloconfig -- i know that is the case with slackware 9.
  #3  
Old 11-28-2003
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
boot from linux CD, type "linux rescue" at the prompt.

Let it automatically mount your / partition, which it will do under a mount point of /mnt/sysimage . the actual system you are seeing exists in RAM only, but its mounted your old system (which IS on HDD) as /mnt/sysimage.

Now, issue this command to make /mnt/sysimage the new /

chroot /mnt/sysimage

now, assuming you want the same LILO as before:

/sbin/lilo

now get out

exit

exit

until machine reboots.
  #4  
Old 11-30-2003
Vehementi's Avatar
TechSpot Paladin
 
Location: Bellevue, WA
Member since: Feb 2002, 3,199 posts
System specs
Ah thank you Phant! Everything is all fine and well now.
  #5  
Old 11-30-2003
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
heehhe cool!

Actually, I think you can combine the two commands into one:

chroot /mnt/sysimage /sbin/lilo

would do the trick as well, I think.

Take care,

P66.
  #6  
Old 06-17-2005
Newcomer, in training
 
Member since: Jun 2005, 1 posts
major problem

i recently installed linux mandrake 9.1 onto an 8.5 gig partition of a 40GB HD, some how the boot loader got messed up so i went into rescue to have it re write it; the problem is though that it targeted the MBR on my Western Digital 200GB HD and now it looks like an 8.5GB HD and i cant access anything, none of the drives are listed on the 200GB HD, however it does show up in the windows device manager; is there any utilities or some way of restoring the factory MBR? bios shows the same thing. any kind of help is appreciated more than i can say.
Closed Thread

Similar Topics
Topic Replies Forum
The best way to reinstall Grub bootloader 3 The Alternative OS
XP/Server 2003 Bootloader issues 3 Windows OS
Editing the GRUB bootloader 2 The Alternative OS
rewriting cds in WinXP 5 Windows OS
OS Order in Mandrake's Bootloader 4 The Alternative OS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 12:39 PM.