LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-21-2006, 01:26 PM   #1
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Rep: Reputation: 30
Corrupted bootloader - can't repair it.


Hi all

I run a dual boot system with XP and Suse 10.0 on my Compaq Presario R3000 laptop, and it all worked fine for many months. However, I downloaded (in windows) a trial version of Acronis Disc Doctor and this came with an OS boot loader program... this was were my problems started.

The Acronis boot loader replaced Grub, worked for two days and then became corrupted and I couldn't boot my laptop at all. It also refused to boot from any CD despite this being set from Bios! To get into my laptop I eventually removed the hard drive, then it would boot from CD. I booted it from CD, quickly put the Hard drive back in (whilst it was booting) managed to get into windows and then uninstalled the Acronis program from my laptop.

On reboot, acronis disappeared (hurrah!) and Windows booted succesfully, although without the option of booting my Suse linux. I then rebooted from the Suse DVD (this is a long story isn't it - sorry!), used one of the options to check the linux installation and reloaded GRUB. So, I then rebooted again and Grub allowed Windows to boot, but on restarting and trying the Linux option, I just got a blank screen and nothing else. I can't get linux to reboot.

I have run several options from the Suse DVD (using GUI only as I'm a newbie still) and have checked the installation, and have even got it to boot as one of the repair options. Linux then worked fine (so it is still there) although it could no longer mount or recognise my windows files. I opened yast and checked a few things but didn't really know what to check as all of the stuff I know about was fine.

So, where do I go from here folks? I suspect something is corrupted somewhere, but don't know how to proceed. I suspect the partition system is messed up somehow.

I'm reluctant to start again and reinstall Suse as I have spent weeks trying to get it all set up as I want, using my wireless network, use the mouse correctly, etc etc. I really dont want to lose these settings, although there is no data on my Suse partitions that I need.

Sorry for rambling on, but I have tried to give as much detail as possible. Any suggestions welcome, but please keep questions simple as I'm still quite new to linux commands.

Thanks for listening.
 
Old 04-21-2006, 01:28 PM   #2
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Original Poster
Rep: Reputation: 30
Oh one other thing. The 'safe mode' Linux option will boot up from Grub, but this is only a text based Linux and although I can log on... I don't then know what to do!
 
Old 04-21-2006, 02:31 PM   #3
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Original Poster
Rep: Reputation: 30
Ok more info.....

I have booted again in Fail safe mode and then logged on and typed in: init 5

The full graphical Suse then loads correctly AND it recognises my windows files (although my internet connection didn't work)

I used this command before with another problem after a suggestion from this forum, and this helped someone understand what was going on. It doesn't help me much though!!!
 
Old 04-21-2006, 02:36 PM   #4
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
Could you post your menu.lst, can get this info when you're in the safe mode by typing cat /boot/grub/menu.lst I've think I've seen some distros have it called grub.conf also, not sure about suse. With that it would also be good to know what drives suse is supposed to be on.
 
Old 04-22-2006, 04:39 PM   #5
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Original Poster
Rep: Reputation: 30
Hi there - thanks for taking an interest

This is what I got (roughly...):


#Don't change this comment - yast2 identities: original name: windows###
title windows
chainloader (hd0,0)+1

#Don't change this comment - yast2 identities: original name: linux###
title Suse Linux 10.0
root (hd0,2)
kernel /boot/vmlinux root=/dev/hda3 vga=0x317 selinux=0
resume=/dev/hda2
splash=silent showopts
initrd /boot/initrd

#Don't change this comment - yast2 identities: original name: Suse linux 10.0###
title failsafe --Suse Linux 10.0
root (hd0,2)
kernel /boot/vmlinux root=/dev/hda3 vga=normal showopts ide=nodma apm=off acpi=off
noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd


Does this make any sense??

Last edited by Adrian Baker; 04-22-2006 at 04:40 PM.
 
Old 04-22-2006, 04:47 PM   #6
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
So it looks like you have to entries for booting suse, with different options. But only one has the title line, so the other doesn't show up as an option. Try editing the file to add a line saying:

title [whatever you want]

This should give a new option when you boot, see what happens trying to boot that one.
 
Old 04-22-2006, 05:41 PM   #7
beagle2
Member
 
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
Try editing /boot/grub/menu.lst to this -
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
root (hd0,2)
kernel /boot/vmlinuz root=/dev/hda3 vga=0x31a selinux=0 resume=/dev/hda2 splash=silent showopts
initrd /boot/initrd

Same info as you already have but better formatted.
 
Old 04-25-2006, 11:50 PM   #8
LinuxWannaBE916
LQ Newbie
 
Registered: Mar 2004
Location: Sacramento, CA
Posts: 11

Rep: Reputation: 0
I'm a NEWBIE, so please be gentle...

I have the same issue, except I attempted to repair GRUB with the SUSE Setup CD1, and all went well; however, when GRUB boots, I only have 2 options to boot from:

1) Windows
2) Floppy

I tried repair/reloading GRUB numerous times using the CD, but I still only have those 2 options!

I attempted to boot to the Linux partition through the Setup CD, and I was able to successfully boot into a shell, but I was unable to get the GUI to load (*startx or *init 5) because I rolled back the kernel because my wireless card stopped working when I upgraded (I'm assuming my NVIDIA driver was upgraded as well, which is now giving me the error).

I tried accessing my menu.lst file through the shell, but I don't know how to edit it while using the terminal. I know I need to update it, but is there a way I can do that without using the GUI? I looked around but I couldn't find anything. Any and all feedback would be greatly appreciated.
 
Old 04-26-2006, 01:00 AM   #9
beagle2
Member
 
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
You will have to use a text editor to edit your menu.lst file. Dunno which are installed by default but try nano or vi (as root) ie. nano /boot/grub/menu.lst - for nano just edit text then hit Ctrl-x, y, enter - vi I dont know much about. If you still have problems then try and post your menu.list, which partition suse is installed to and contents of /boot directory.
 
  


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
repair corrupted ext3 filesystem rvijay17 Linux - General 3 06-20-2009 11:35 AM
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
I need create bootloader. How make bootloader? swipple Fedora - Installation 3 01-23-2005 12:22 PM
corrupted reiserfs, can't repair antipop Linux - Newbie 8 05-04-2004 09:14 PM


All times are GMT -5. The time now is 12:03 AM.

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