LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 12-15-2011, 12:46 AM   #91
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,345

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399

Quote:
Originally Posted by shravankumar View Post
What is LDAP?
Which directory we are accessing through LDAP?
Why the LDAP used
Try opening a thread of your very own on this subject. I am sure it will be appreciated here and also get the kind of attention that it needs.
 
Old 12-15-2011, 03:35 PM   #92
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
OK.. big progress.

The following (for the benefit of those from google in the future) WORKS;
Code:
First, copy the /boot/grub/i386-pc folder contents from the floppy, to /i386 on /dev/sda5

insmod part_msdos
insmod ext2
set prefix=(hd0,msdos5)/i386

NOW, 'insmod linux' or 'insmod configfile' work sucessfully
[edit: 'insmod ata' is not needed, and 'set root=...' is not essential]
I can boot debian as described in post #76.
If i do 'configfile /boot/grub/grub.cfg' (@ sda5), then the grub boot menu comes up, with debian and my various voyage kernels. NOT like here with options like 'detect any OS'. Do we need the grub.cfg from the floppy??

EDIT: by not using 'insmod ata' I can now load the floppy's boot.cfg, and get the menu shown.

NOW WHAT?

[note: this site needs --strikethrough--]

Last edited by sdfi; 12-15-2011 at 04:03 PM.
 
Old 12-15-2011, 08:50 PM   #93
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 51
If you can boot debian just redownload and reinstall grub2 from within debian.

(If you want to use/try the menu like shown in supergrubdisk.org you need to copy everything in floppy to /dev/sda5 and pay attention to folder hierarchy.)

'set root=' is not needed if you have set it in 'set prefix='. If 'root=' is different from 'prefix=', then you need to set it.

'insmod ata' is needed to bypass BIOS (like when you are in floppy or CD).
 
Old 12-15-2011, 10:54 PM   #94
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,388

Rep: Reputation: 187Reputation: 187
@ hurry_hui This thread has really been informative and you know grub2 really well, I have learned a few things while following this thread, however how can the op install grub2 to the mbr if they still have this problem:

Quote:
grub-setup: warn: This msdos-style partition label has no post-MBR gap; embedding won't be possible!
Did I miss something? Just wondering.

I came across a problem with grub legacy a few years ago where sometimes it would not boot if the partition it was installed from is not flagged bootable. I have been wondering if when debian installed, if it moved the boot flag from the voyage partition to the debian partition and maybe that is why the reinstall of grub legacy didn't work. just a thought

Last edited by colorpurple21859; 12-16-2011 at 10:33 AM.
 
Old 12-16-2011, 07:27 PM   #95
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 51
There are other problems, IIRC from RESULTS-1.txt apart from

('grub-setup: warn: This msdos-style partition label has no post-MBR gap; embedding won't be possible!'):

1. Grub2 cannot find its files. (It seems because grub2 cannot run with --force during debian setup.)

2. Grub1 does not have its file (or cannot detect its files--stage1, stage2, menu.lst).

3. Bootable flag which may be needed.


Solution to the above problems:

(1 & 2). (Although some attempts have been made within chrooted environment) Reinstall grub2 with --recheck, if failed, try again with --force. To see if it is installed properly recheck with boot_info_script.sh.

Run (instead of 'update-grub')

Code:
grub-mkconfig -o file_name
to check whether it can pick both voyage and debian kernels. If successful, run 'update-grub' or

Code:
grub-mkconfig -o /boot/grub/grub.cfg
If failed, try no.(3).

(Btw, there are some discussions on internet on making custom (smaller?) core.img by grub-mkimage -o name_of_grub_image -0 [some_options].)

(3). Copy files (from voyage cd or another distro) needed by grub1, to its folder /boot/grub/.

Boot to voyage, reinstall grub1 by running grub. on grub prompt (grub>) type this:
Code:
find /boot/grub/stage1
If grub generates (hd0,0) continue with
Code:
root (hd0,0)
setup (hd0)
quit
To see if it is installed properly recheck with boot_info_script.sh.

(4). Set the boot flag.

Last attempt is to boot from supergrub2 disk.

HTH
 
Old 12-17-2011, 12:32 PM   #96
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
It detected both distros, but 1&2 failed.

I haven't run the script yet but 3 did not give me normal booting.

4- how?
 
Old 12-17-2011, 01:22 PM   #97
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
OK, i'm pretty sure no one has any idea how to fix this. I'm throwing in the towel now and formatting.

And none of that had anything to do with supergrub2disk, so wasting all that time on that was pretty shitty.
 
Old 12-17-2011, 05:41 PM   #98
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,388

Rep: Reputation: 187Reputation: 187
if you haven't formatted your hard drive yet, you still might be able to get grub legacy to work. First go to voyage /boot/grub folder and make it sure it has a stage1 and stage2 file, a menu.lst, a devicemap file, and about seven more stage files with different names. If they are missing the files can be copied from the /usr/lib/grub/x386 folder.
With a partition manager, such as gparted, parted, cfdisk or any one that you can use flag the voyage partition bootable. To install grub legacy manually, boot into voyage and issue the following commands
Quote:
grub
root (hd0,0)
setup (hd0)
quit
as suggested in post 58

Last edited by colorpurple21859; 12-17-2011 at 06:01 PM.
 
  


Reply

Tags
grub, install, mbr


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
[SOLVED] cannot install grub (grub-probe says 'unknown fs' with ext4 and md raid) cusco Linux - Software 3 03-15-2011 02:58 AM
Grub - Does fedora automatically install a bootloader like grub? or... mitchell7man Linux - Software 10 05-09-2007 11:49 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 03:01 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM


All times are GMT -5. The time now is 07:54 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration