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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
01-03-2011, 04:09 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2010
Posts: 15
Rep:
|
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.
|
|
|
|
01-03-2011, 05:12 PM
|
#2
|
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Pclinux, Mandriva, Kubuntu 10.10 Slck13_64-current
Posts: 2,040
Rep: 
|
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 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
|
|
|
|
01-04-2011, 07:09 PM
|
#3
|
|
LQ Newbie
Registered: Dec 2008
Posts: 2
Rep:
|
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
|
|
|
|
01-04-2011, 07:15 PM
|
#4
|
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Pclinux, Mandriva, Kubuntu 10.10 Slck13_64-current
Posts: 2,040
Rep: 
|
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.
|
|
|
|
01-04-2011, 08:06 PM
|
#5
|
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
Here is another good tutorial,especially the Live CD install
grub2
Last edited by Larry Webb; 01-04-2011 at 08:08 PM.
|
|
|
|
01-05-2011, 01:29 AM
|
#6
|
|
LQ Newbie
Registered: Apr 2010
Posts: 15
Original Poster
Rep:
|
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 .
|
|
|
|
01-07-2011, 07:28 AM
|
#7
|
|
LQ Newbie
Registered: Apr 2010
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
|
01-07-2011, 08:50 AM
|
#8
|
|
Senior Member
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Peppermint
Posts: 3,469
|
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?
|
|
|
|
01-08-2011, 02:59 AM
|
#9
|
|
LQ Newbie
Registered: Apr 2010
Posts: 15
Original Poster
Rep:
|
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.
Last edited by tripleh; 01-08-2011 at 03:06 AM.
Reason: error in attachement
|
|
|
|
01-08-2011, 03:29 AM
|
#10
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,300
|
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.
|
|
|
|
01-08-2011, 03:36 AM
|
#11
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,300
|
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.
|
|
|
|
01-08-2011, 05:00 AM
|
#12
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,300
|
Hiren's bootcd has miniwinsxp and mini linux.
|
|
|
|
01-09-2011, 03:28 PM
|
#13
|
|
Senior Member
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Peppermint
Posts: 3,469
|
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??
|
|
|
|
01-09-2011, 05:16 PM
|
#14
|
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
Try from terminal using the knoppix live cd
fdisk -l and post the results
|
|
|
|
01-10-2011, 05:14 AM
|
#15
|
|
LQ Newbie
Registered: Apr 2010
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:48 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|