LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2009, 05:02 PM   #1
DaveStott
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
Lightbulb Error 15 booting Linux Mint


Hi, I'm new to Linux and am struggling. I have a Windows XP PC but set up a Linux Mint dual boot about 6 months ago. Everything worked fine and I am very happy with Linux Mint. However, my wife and family use Windows exclusively. The computer was bought with the hard drive partitioned into C (main NTFS) D (backup NTFS) and E (Recover FAT). As Windows had got too slow I tried to merge C & D to give more space (My first mistake !?!).

This caused me to lose any boot at all and I used a linux boot dvd to let me change where the grub loader was looking for the boot file. Everything was fine for a day. Until I decided to retry merging the C&D drives (does he ever learn?)

Now I get the boot menu and I can scroll down to Windows XP and boot this but when I try to load Linux Mint I get "Error 15" can't find the file.

I opened sudo gedit /boot/grub/menu.lst from the Mint boot dvd but there was no text visible (I was hoping to point it to the right file by editing it - if this is possible?) As there was nothing to see I presume the file has gone/is lost hence "Error 15".

My questions are:
1. Do I need to set up a new "menu.lst" and how do I do it?
2. Do I need to set up a new "grub loader" and how do I do it?
3. If I can't do this should I reformat the Linux partitions (sda5-EXT3 and sda6-LINUXSWAP) and re-install Linux Mint? Will this affect the Windows boot as there are historical files on there I need?
4. Is there anywhere I can find an easy guide to terminal "speak"?

Many thanks in advance
 
Old 03-06-2009, 05:50 PM   #2
Slokunshialgo
Member
 
Registered: Jan 2006
Distribution: Ubuntu 9.04, Fedora 10
Posts: 76

Rep: Reputation: 17
Are you only running Windows on this machine? If so, then simply boot into recovery mode from your Windows disk, and run "fixmbr", which will make it only boot into Windows, and remove GRUB from the system.

If you're still trying to keep it as dual-boot, it gets a bit harder than this. First off, the menu.lst you were likely looking at was the one on the disk, and you would need to make sure you have your Linux drive mounted, and view it on that.

Now, assuming you're looking at the right file, post the contents of your system's menu.lst here, along with the output you get from sudo fdisk -l Without this information, it's hard to help.
 
Old 03-07-2009, 11:48 AM   #3
DaveStott
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the Info. I've tried to answer what you suggest in each paragraph below.

I want to keep Linux Mint on the machine and when the PC boots up it lists 3 Mint options (Boot Mint, Boot Mint in Safe mode and another) plus an "Other operating systems" option which has Windows XP. None of the Mint options work but give back the "Error 15". I have modified this PC a lot since I got it and the OEM cd only gives me the option of reloading Windows XP. I can't find a recovery option.

I can't get into Linux Mint at the moment so don't know how to mount the Linux Drive and look at menu.lst. I tried using the same sudo commands to look at menu.lst in Knoppix but it didn't recognise them (which I presume means Knoppix is not based on the same Linux type)

I can't get menu.lst but I did look at sudo fdisk -l which gave me this:

Device Boot Start End Blocks ID System
/dev/sda1 * 1 4863 39062016 7 HPFS/NTFS
/dev/sda2 4864 9729 39086145 f W95 Ext'd (LBA)
/dev/sda3 4864 7045 17526883+ 7 HPFS/NTFS
/dev/sda5 * 7046 9244 17663436 83 Linux
/dev/sda6 9245 9346 819283+ 82 Linux swap / Solaris
/dev/sda7 9347 9729 3076416 b W95 FAT 32

I have the option of loading/reloading Linux Mint from the DVD I have but my main worry is losing the information (photos, music, documents) I have on the Windows Partitions. If the Windows partions would be safe I can see reloading Mint as the easiest option?? Though I don't know how the present Linux partitons would be affected?

Thanks again
 
Old 03-07-2009, 12:09 PM   #4
Udi
Member
 
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
I hope the following procedure will help you:

1) Boot Mint from the live CD.
2) From nautilus, open the linux partition (just to get Mint to mount that partition).
3) I think that by default the mount point is /media/disk, check if that's where Mint mounted your linux partition and run this command:

sudo grub-install --root-directory=/media/disk/boot/grub /dev/sda

This should correct the grub settings. See if you can boot both Windows and Mint now.
 
Old 03-08-2009, 12:13 PM   #5
DaveStott
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Udi

I booted Mint from the Live CD and went into Nautilus and browsed /media/disk which seemed to show the Linux files on the PC.
I ran the script you suggested in Terminal and got the following

"Probing devices to get BIOS Drives. This may take a long time" (which it didn't)
"The file /media/disk/boot/grub/boot/grub/stage2 not read correctly"

As an aside I opened GParted from the Mint boot DVD and it only showed a 74.53GiB drive with no partitions. I don't know if this is relevant or not?

Best regards
 
Old 03-08-2009, 02:20 PM   #6
Udi
Member
 
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
Don't browse to /media/disk... Before you can browse to it you have to click the disk icon which is on the left side of the nautilus window in the "Places" section. After you click on it you can browse to /media/disk and then you'll see the linux partition mounted there. Then you can run the grub-install command.

As for GParted - I don't know why it showed you that. Check again with "fdisk -l /dev/sda" to see that your partition table is intact.
 
Old 03-08-2009, 02:36 PM   #7
Udi
Member
 
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
I may have misunderstood your last post. I am sorry for the confusion. It seems like you mounted the linux partition correctly so that's not the problem... Sorry.

You may find this post helpful:
http://ubuntuforums.org/archive/index.php/t-24113.html

I never tried it myself, but you can find 2 solutions in that thread - and I suggest you try the 2nd one first.
I hope it will help you.
Udi.
 
Old 03-08-2009, 08:16 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,990

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Boot from Linux Mint Live CD. Open terminal window. Enter following commands consecutively:

sudo grub (prompt for your password, enter it, get grub prompt=grub>)
root (hd0,4)
setup (hd0)
quit

the root (hd0,4) is where your Linux Mint files are and by doing this the stage1 file should be installed to the mbr pointing to that partition.
 
Old 03-10-2009, 03:22 PM   #9
DaveStott
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I'm back in Linux. I tried your suggestions and suggestions from the ubuntu forum but nothing seemed to work. I could get to menu.lst from the boot DVD in Mint and Knoppix but it wouldn't let me save the file (it came up blank when I opened it anyway). I tried to change the root but every time I booted up it had reverted back to (hd0,6) which is my windows FAT partition. I searched for Stage1 and Stage2 and these were both in (hd0,4).
After trying one last time I found that I could get in and edit Grub after a failed Linux boot. The boot info was showing:
root (hd0,6)
File system type is fat, partition type 0x6
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda7 ro quiet splash
I changed (hd0,6) to (hd0,4) and /dev/sda7 to /dev/sda5 and it allowed me to boot into Mint. I've just restarted tonight and its reverted back to (hd0,6) and sda7 but I reckon I'll be able to change this permanently if I re-edit and boot into the installed Mint.

I just thought I'd post this to thank you for your help. I've probably learned more from your suggestions and trying to understand what they were doing than I could have reading a book or reading a thread I didn't fully understand.

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I replace Linux Mint with Suse 11.0 on PC with Win XP Mint and Ubuntu? jremsen Linux - Software 4 02-15-2009 07:54 AM
linux mint meta package error trailer8713 Linux - Newbie 0 07-14-2008 10:57 PM
re installation of grub in Linux mint after installing xp over mint sampad.sarangi General 1 01-15-2008 06:37 PM
LXer: Linux Mint is.....Mint! LXer Syndicated Linux News 0 11-18-2007 07:41 AM
Booting error in puppy linux while booting it from fedora why ? senthilarumugam LinuxQuestions.org Member Intro 1 02-22-2007 03:43 PM


All times are GMT -5. The time now is 09:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration