LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2011, 04:09 PM   #1
tripleh
LQ Newbie
 
Registered: Apr 2010
Posts: 15

Rep: Reputation: 0
grub menu problem


Hi,

i've 2 OS installed in my desktop pc: win xp and linux debian etch4.0, it worked witout troubles during more than 3 years , but these days i've got this msg:

"no boot sector found on your system , please reboot your computer"

i use supergrubdisk to boot windows , but i can't boot linux partition in any way using this disc -because when i tried to boot it it stopped" , i 've verified that it exixts with knoppix but my question is:

How to repair grub menu using one of these 2 cds without formatting my data or uninstalling one of the 2 systems because i need them all with my data.

please help me.

thanks in advance.
 
Old 01-03-2011, 05:12 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
well your MBR has been written over use knopix or puppy linux to install grub back on the MBR. before you do this back up your menu.1st then install grub from puppy
then put your menu.1st. if you have an image in /boot/grub like most systems. looks like this for my sda drive
Quote:
mbr.sda.28181
then as root
Quote:
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.28181'. You can restore it like this.
# dd if=mbr.sda.28181 of=/dev/sda bs=512 count=1
Or just reinstall it from puppy or knopix
 
Old 01-04-2011, 07:09 PM   #3
zzron357
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Thanks Drakeo, I too will use your advice. I am big Puppy fan. I multi-boot
too, and have mastered menu.lst edit to get to Puppy frugal installs from
older Ubuntu etc. but now stuck with Grub2. I got the need to edit 40_custom, activate, and "sudo grub-update" but I need to see an example of the syntax for puppy within 40_custom. Content of 40_custom is not showing in grub at start-up. Has anyone done this and written a little
step-by-step? I think best solution to multi-boot is a separate boot partition, 300 Mb, so independent of other linux. On this pc I have XP
and Ubuntu, Mint and Omega, along with 4 frugal puppies. Old grub.
I hesitate to go to grub2 until I grasp the method. Thanks and best wishes,
ZZRON357
 
Old 01-04-2011, 07:15 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
I learned everything on this tutorial about dealing with grub2. as like you ubuntu wants to control the computer. I have super grub2 boot disk it will load ext4 file systems. Once you learn how to use the CLI in it you will be ok.
I learned then uninstalled it did not care for grub2. Hard to beieve it was set up for multiple systems. What they mean is multiple Ubuntu systems.
 
Old 01-04-2011, 08:06 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Here is another good tutorial,especially the Live CD install

grub2

Last edited by Larry Webb; 01-04-2011 at 08:08 PM.
 
Old 01-05-2011, 01:29 AM   #6
tripleh
LQ Newbie
 
Registered: Apr 2010
Posts: 15

Original Poster
Rep: Reputation: 0
grub menu problem

Hi,

Thanks every body for these intersting responses , and sorry for the delay.

So i've DVD of knoppix i'll boot from it to rewrite the MBR corretctly , i'm now trying to do this

i'll send results and steps after that.

Thanks .
 
Old 01-07-2011, 07:28 AM   #7
tripleh
LQ Newbie
 
Registered: Apr 2010
Posts: 15

Original Poster
Rep: Reputation: 0
grub menu problem

Hello,

i've tried knoppix but it failed so: i've find these results:

winxp installed on(hd0,0)

linux debian (hd0,1)

So, i want to be sure if : restoring backup of boot of windows partition earses my data or not -using super grub disc-

Thanks.
 
Old 01-07-2011, 08:50 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,508

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
Quote:
i've tried knoppix but it failed so: i've find these results:
tripleh:

Tried what with Knoppix?
Are you still able to boot xp?
Were you previously booting both with Debian Grub?
Using your Knoppix disk, are you able to view folders/files on Debian partition?
You should have Grub files in your Debian /boot directory. Installing Grub is pretty simple, the problem is getting it to the correct partition. From your post, it should be (hd0,1). Did you use the Knoppix DVD to get to the Grub prompt to verify Debian is on (hd0,1)? If you are sure Debian /boot is on (hd0,1), you can reinstall Grub from a terminal as root user at grub prompt:

root (hd0,1)
setup (hd0)
quit

Quote:
So, i want to be sure if : restoring backup of boot of windows partition earses my data or not -using super grub disc-
I'm not sure what the above means?? Are you referring to Drakeos suggestion above?
 
Old 01-08-2011, 02:59 AM   #9
tripleh
LQ Newbie
 
Registered: Apr 2010
Posts: 15

Original Poster
Rep: Reputation: 0
grub menu problem

hello,

1] i've tried :

-opening a root shell:
-type: grub
-root(hd0,0) at this step i've got:

error 27: unrcognized command. -here i didn't understand.

2]-after burning 90% of my data on a dvd+rw with k3b , now i can't boot my win xp partition it start booting and interrupt booting , it reboots automatickly .?

3]-Were you previously booting both with Debian Grub?

Yes, i did it for 3 years and a half.

4]using knoppix cd : yes i can view all my folders/files on the 2 partitions : hda1 and hda2 (win xp, linux debian)

5]well , this is my :/boot/grub/menu.lst : please do a review on it and tell me what to do exactly : either i use knoppix or debian dvd prompt.

6] i mean if i use super grub disc : there is option called: "restore backup of boot of windows partition".

with the post of Draeko i didn't use puppy , also i'm so afraid to lost my files doing a mistake , i've searched a lot of documents about this trouble .

Thanks.
Attached Files
File Type: pdf menu.pdf (8.5 KB, 13 views)

Last edited by tripleh; 01-08-2011 at 03:06 AM. Reason: error in attachement
 
Old 01-08-2011, 03:29 AM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If you download ubuntu-live-cd desktop version , you can just boot system and select "try ubuntu" and have gui to both window and debian system.
Once in open examples folder and you can do anything you need to.
To open terminal in file manager go to /usr/share/applications double click on terminal.
 
Old 01-08-2011, 03:36 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I'm also surprised that on your attachment it shows debian at hda2
With windows installed first wouldn't it take hda1 & hda2, making debian hda3?

Last edited by EDDY1; 01-09-2011 at 04:27 PM.
 
Old 01-08-2011, 05:00 AM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Hiren's bootcd has miniwinsxp and mini linux.
 
Old 01-09-2011, 03:28 PM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,508

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
Quote:
1] i've tried :

-opening a root shell:
-type: grub
-root(hd0,0) at this step i've got:
Did you do the above from a grub prompt? (grub>)
I assume you did not put the dash (-) in front of the command? If you typed it the way it is printed above, it won't work. You need a space between the word root and the (hd0,) like this: root (hd0,0) That's why you got the "unrecognized command error". You indicated above that you thought your Debian was on (hd0,1)? You need to get the right partition for it to work.

Quote:
5]well , this is my :/boot/grub/menu.lst : please do a review on it and tell me what to do exactly : either i use knoppix or debian dvd prompt.
Where??
 
Old 01-09-2011, 05:16 PM   #14
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Try from terminal using the knoppix live cd

fdisk -l and post the results
 
Old 01-10-2011, 05:14 AM   #15
tripleh
LQ Newbie
 
Registered: Apr 2010
Posts: 15

Original Poster
Rep: Reputation: 0
grub menu problem

Hi,

thanks for Yancek, larry web, and eddy1 for their responses ;

So : Yes i did from grub prompt and without (-) but for root(hd0,0) i didn't left space!

now this kis results of root commands:

grub>root (hd0,0)

this gives: file system type Unkown , partition type 0x7

grub> root (hd0,1)

this command gives: file system type ext2fs , partition type 0x83

but i think that my file system is ext3 when i had installed debian the first time?

my menu.lst is joined as an attachement such as a pdf file : it is at the end of my post.


now: for larry web :

fdisk -l : gives unrecognized command error 27 (and with tabulation does not exist : i have:

find and fstest just for commands starting with f) ???

knoppix version: 5.3

grub version: 0.97999.

Thanks.
 
  


Reply



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
[SOLVED] lost grub menu after windows installation & forgot to backup menu.lst jesman1 Linux - Kernel 4 08-12-2010 11:57 PM
Does changing FAT32 into NTFS create problem in GRUB menu? ITMountains Linux - Newbie 3 01-29-2010 04:46 PM
Problem editing /boot/grub/menu.lst baldur2630 Linux - Server 10 10-03-2008 12:12 PM
Grub menu problem????? lin_myworld Linux - Newbie 2 12-23-2007 04:35 AM
Grub Boot floppy / menu.lst problem uncle-c Linux - Newbie 4 02-26-2007 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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