Debian This forum is for the discussion of Debian Linux.
|
| 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. |
|
 |
|
12-11-2011, 03:21 PM
|
#46
|
|
Member
Registered: Oct 2011
Distribution: debian
Posts: 107
Original Poster
Rep: 
|
I thought i'd given the relevant information from df -h but here is exactly what it says, when i have mounted both sda1 and sda5
Code:
Filesystem Size Used Available Use% Mounted on
tmpfs 124.7M 32.0K 124.7M 0% /dev
/dev/sr0 648.0M 648.0M 0 100% /cdrom
/dev/sda5 27.0G 664.6M 25.0G 3% /mnt/sda5
/dev/sda1 9.2G 2.9G 5.8G 33% /mnt/sda1
Quote:
|
rerun the boot script again.
|
How?
Last edited by sdfi; 12-11-2011 at 03:22 PM.
|
|
|
|
12-11-2011, 04:08 PM
|
#47
|
|
Senior Member
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing
Posts: 1,669
|
Use this link from a Live Session and post the results.text completely.
http://bootinfoscript.sourceforge.net/
|
|
|
|
12-11-2011, 05:54 PM
|
#48
|
|
Member
Registered: Oct 2011
Distribution: debian
Posts: 107
Original Poster
Rep: 
|
results.txt
Edit: done the rest of post #45.. the 40_custom file was printed, but i saw no recognition of /dev/sda5 containing linux.
Quote:
|
They should be below the entry that you currently see on your menu screen.
|
Just to make it clear (again) I do NOT see any menu screen on booting the HDD. Grub does NOT load.
Last edited by sdfi; 12-11-2011 at 06:18 PM.
|
|
|
|
12-12-2011, 01:56 AM
|
#49
|
|
Senior Member
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing
Posts: 1,669
|
I am about knackered.
As far as the boot info script goes in section one. Grub should load.
Have you had Voyage on there a long time? There seems to be a lot of kernels for it installed.
How are you using the internet? Are you on a different box or using a Live CD?
Sdb claims to have grub legacy installed on the MBR but no files to go to. Where is it getting this idea from, any idea? Was Voyage handling the MS boot?
Back to sda there is no mention of MS in the grub.cfg file (grub) or for that matter in your menu.lst (grub-legacy). Boot info script makes no real sense of either Debian or Voyage grub files. They appear to be faulty as hell.
I thought about trying to restore the grub-legacy from Voyage to the MBR but I think that is a waste of time as it doesn't look at all healthy either.
I have seen a lot of boot info script results. Even, ineptly, helped folks get MS to boot even though I don't use it and don't like it a bit. I have never seen a script result like this.
I really think this one has me whipped. Have no real idea at all where to go with this one.
The only thing I can think of is, if you are using or have a Debian Live CD you could boot to it, us apt to install "testdisk" on the live session and use it. May straighten your drive out, I just do not know.
Other wise I would back up your data from sda, format the bugger and start over.
Hopefully someone will jump in here with a lot better idea and we will both learn something.
Sorry, I am just out of options.
|
|
|
|
12-12-2011, 08:31 AM
|
#50
|
|
Member
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Rep:
|
Quote:
Originally Posted by sdfi
results.txt
Edit: done the rest of post #45.. the 40_custom file was printed, but i saw no recognition of /dev/sda5 containing linux.Just to make it clear (again) I do NOT see any menu screen on booting the HDD. Grub does NOT load.
|
Grub (both grub) does not load because it cannot find certain files.
We need to use manual check whether grub can see files it need to load.
We also need supergrub disk.
I will use grub2 to detect and boot manually via grub prompt (to access, on grub menu press C to enter command-line); hence we need supergrub disk or any bootable cd which boots grub2 (usually they boot isolinux). We only use device (hd0,1) and (hd0,5).
First we need to find files needed by (hd0,1)/boot/grub/menu.lst
expected results vmlinuz, initrd.img
expected results vmlinuz-2.6.38-voyage, initrd.img-2.6.38-voyage (+ several vmlinuz and initrd.img)
Code:
ls (hd0,1)/boot/grub/
expected results stage2, menu.lst
----------------------------------------------
you can do similarly with (hd0,5)
directory we need to check:
(hd0,5)/boot/ ---> vmlinuz-2.6.32-5-686, initrd.img-2.6.32-5-686
(hd0,5)/boot/grub/ ---> core.img, grub.cfg
----------------------------------------------
having found expected files we need to type following line by line followed by ENTER and pay attention to output before executing next line
Code:
set root=(hd0,1)
linux /boot/vmlinuz-2.6.38-voyage root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.38-voyage
boot
likewise you can do above for (hd0,5) and change parameter as necessary.
HTH
|
|
|
|
12-12-2011, 08:46 AM
|
#51
|
|
Member
Registered: Oct 2011
Distribution: debian
Posts: 107
Original Poster
Rep: 
|
i guess i should be using 'super grub2 disk', right?
|
|
|
|
12-12-2011, 09:26 AM
|
#52
|
|
Member
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 959
Rep: 
|
The only issue I see is that
Quote:
Filesystem Size Used Available Use% Mounted on
tmpfs 124.7M 32.0K 124.7M 0% /dev
/dev/sr0 648.0M 648.0M 0 100% /cdrom
/dev/sda5 27.0G 664.6M 25.0G 3% /mnt/sda5
/dev/sda1 9.2G 2.9G 5.8G 33% /mnt/sda1
|
if debian a full install on sda5 and voyager on sda1, if so then there is something wrong with the debian install with only 644m of hardrive space being used for a full install of debian on /dev/sda5 as the root partition. Something isn't right there.
Last edited by colorpurple21859; 12-12-2011 at 09:36 AM.
|
|
|
|
12-12-2011, 10:28 AM
|
#53
|
|
Member
Registered: Oct 2011
Distribution: debian
Posts: 107
Original Poster
Rep: 
|
It does not have the GUI, that would probably be why it is so small.
Also, I have been able to get into both installs (booting from external floppy) using smartbootmanager.
edit: it seems smartbootmanager should be ok as a replacement for supergrub disk as it has grub 1.98
update: all files found (plus many more).. also entering commands returned nothing.. it started the boot process.. currently thrashing the floppy drive. It seems you are trying to boot into an old voyage kernel, fwiw. I stopped it after about 5 minutes. [but as above, i can boot them w/ smartbootmanager]
Last edited by sdfi; 12-12-2011 at 11:04 AM.
|
|
|
|
12-12-2011, 10:35 AM
|
#54
|
|
Member
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 959
Rep: 
|
okay, I understand now. It was just something I notice out of the ordinary.
|
|
|
|
12-12-2011, 10:37 AM
|
#55
|
|
Member
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, LMDE
Posts: 820
Rep: 
|
Quote:
Originally Posted by sdfi
Also, I have been able to get into both installs (booting from external floppy) using smartbootmanager.
|
What happens if you try to reinstall grub from the debian install?:
Code:
update-grub
grub-install /dev/sda
|
|
|
|
12-12-2011, 10:53 AM
|
#56
|
|
Member
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 959
Rep: 
|
wouldn't it be easier to reinstall grub legacy from voyager to the mbr edit /boot/grub/menu.lst to add the following
Quote:
menu Debian on sda5
root=(hd0,5)
kernel /vmlinuz root=/dev/sda5 ro quiet
initrd /initrd.img
|
to boot into debian. That way if debian still don't boot you can at least boot into your voyager distro, untill debian is fixed. If you want to use grub2, install it to debian's partition and chainload from grub legacy. I know grub 2 is the up and coming thing, but in my opinion grub legacy is easier to use.
Last edited by colorpurple21859; 12-12-2011 at 11:22 AM.
|
|
|
|
12-12-2011, 10:59 AM
|
#57
|
|
Member
Registered: Oct 2011
Distribution: debian
Posts: 107
Original Poster
Rep: 
|
Quote:
Originally Posted by odiseo77
What happens if you try to reinstall grub from the debian install?:
Code:
update-grub
grub-install /dev/sda
|
Same as when i've done it before. complains
Code:
grub-setup: warn: This msdos-style partition label has no post-MBR gap; embedding won't be possible!
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists.
However, blocklists are UNRELIABLE and its use is discouraged.
grub-setup: error: If you really want blocklists, use --force.
using --force it says the same but 'Installation finished. No error reported' in the last line, instead. No change in terms of the actual booting.
|
|
|
|
12-12-2011, 02:37 PM
|
#58
|
|
Member
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, LMDE
Posts: 820
Rep: 
|
Quote:
Originally Posted by sdfi
Same as when i've done it before. complains
Code:
grub-setup: warn: This msdos-style partition label has no post-MBR gap; embedding won't be possible!
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists.
However, blocklists are UNRELIABLE and its use is discouraged.
grub-setup: error: If you really want blocklists, use --force.
using --force it says the same but 'Installation finished. No error reported' in the last line, instead. No change in terms of the actual booting.
|
That's what I feared. According to the Archlinux wiki, this error message happens when there is not a necessary 1 mb gap between the MBR and the first partition, so Grub2 can't store the core.img file there. The strange thing is that the boot info script doesn't seem to show this problem. Apparently, one way to fix it is to repartition the hard drive (note that this will destroy everything you have in this drive, so you would have to backup your data somewhere else first). Another possibility, is restoring the old grub from your Voyage partition to the MBR as suggested by colorpurple21859 on post #56, since the old grub doesn't seem to have this issue. For this, you can either try Rescatux, or booting into Voyage, editing your menu.lst (as suggested by colorpurple21859), and then issuing these commands as root:
Code:
grub
root (hd0,0)
setup (hd0)
quit
Hope it works. However, if it does work, you will still have the 1 mb gap missing between your MBR and the first partition, and this could cause problems in the future when you upgrade to grub2, so maybe it would be better to repartition, just to be safe.
(More information about your problem here).
|
|
|
|
12-12-2011, 03:23 PM
|
#59
|
|
Senior Member
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing
Posts: 1,669
|
This is very interesting. It has been a while sense I last used grub-legacy but during that transition I never had trouble with the size of the MBR at all, still haven't either.
I had Ubuntu 9.04 on here installed with the default grub-legacy before grub-pc came on the scene. Decided I preferred grub-pc and installed it from the 9.10 repo. No problem.
I thought the 1Mb size was standard on the dos partition scheme.
|
|
|
|
12-12-2011, 03:25 PM
|
#60
|
|
Member
Registered: Oct 2011
Distribution: debian
Posts: 107
Original Poster
Rep: 
|
SO.. i did that. With voyage. old grub definitely installed.. because now smartbootmanager loads it. but still no change from boot.
|
|
|
|
| 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 08:51 PM.
|
|
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
|
|