PDA

View Full Version : [ubuntu] GRUB2 hangs if external drive is connected



cosmicgr
May 13th, 2012, 05:41 AM
Hello
I have GRUB2 on my laptop's internal SATA, with Win7 and Ubuntu 10.10. I also have an external USB HDD (WD 320GB) with Ubuntu 10.10 and its own GRUB2 on the external drive. This external Ubuntu with its own GRUB2, works well on other computers, which do not have GRUB2 on their internal HDDs. But if I plug in my external HDD in my laptop, which already has its own copy of GRUB2, it hangs. I mean when i power on, i all i get is a blinking cursor on the top left with black screen, no GRUB2 boot screen or anything. I have tested my external USB with other computers which have GRUB2 installed on their internal drives. I get the same problem. What could be the reason for this strange behavior?

wilee-nilee
May 13th, 2012, 05:48 AM
I have a 2 terrabyte external that does as well I just don't boot with it plugged in.

Why it does not, no idea.

cosmicgr
May 13th, 2012, 07:24 AM
I tried another external, same problem. I guess since both (internal and external) drives have GRUB2, they may get confused somehow and none of them starts GRUB2! But this is a bug indeed.. I cannot boot my external HDD in my laptop due to this. As a temporary fix, I have installed GRUB legacy in my external HDD which chainloads GRUB2 for Ubuntu 10.10. But this is a just a stupid workaround.

wilee-nilee
May 13th, 2012, 07:41 AM
I tried another external, same problem. I guess since both (internal and external) drives have GRUB2, they may get confused somehow and none of them starts GRUB2! But this is a bug indeed.. I cannot boot my external HDD in my laptop due to this. As a temporary fix, I have installed GRUB legacy in my external HDD which chainloads GRUB2 for Ubuntu 10.10. But this is a just a stupid workaround.

I suspect the bios to be honest this only happens with my Toshiba laptop, but not with my acer netbook, same OS's

cosmicgr
May 13th, 2012, 01:48 PM
I tried my friend's Toshiba laptop too..Same thing happens! Would try in some other laptop. Are you sure its with BIOS? I guess its with GRUB..as my HP and my friend's Toshiba have different BIOS, yet the same behavior with GRUB2..

dino99
May 13th, 2012, 02:19 PM
i beleive you should consider to not using uuid with grub, as they are dynamically set when you plug it, better to set a label to this external drive, then using it inside grub

cosmicgr
May 13th, 2012, 05:24 PM
Thanks for suggestion, but the problem is that GRUB2 doesnt show any message at all on power up. If it was due to UUID, it wud have thrown some error like so and so device does not exist or something like that.. I use my external on various laptops and desktops, it always boots up.. Only if the host system also has the same GRUB2 on its internal disk, then this situation arises.

oldfred
May 13th, 2012, 10:40 PM
Just to see if there is something in the configuration that looks wrong, run this report. If it is the BIOS then we will not know. We have seen were some systems will not boot from one computer but will from another due to BIOS settings.

Boot Info Script courtesy of forum members meierfra & Gert Hulselmans
Boot Info Script 0.61 is released April 2, 2012
boot_info_script.sh" file renamed to "bootinfoscript
http://sourceforge.net/projects/bootinfoscript/files/bootinfoscript/0.61/
Page with instructions and link to above new download:
http://bootinfoscript.sourceforge.net/
Paste contents of results.txt in a New Reply, then highlight entire file and click on # in edit panel(code tags) to make it easier to read.
Or You can generate the tags first by pressing the # icon in the New Reply Edit toolbar and then paste the contents between the generated [ code] paste here [ /code] tags.
Install these before running script:
sudo apt-get install gawk
sudo apt-get install xz-utils

YannBuntu
May 14th, 2012, 06:34 PM
Just to see if there is something in the configuration that looks wrong, run this report. If it is the BIOS then we will not know. We have seen were some systems will not boot from one computer but will from another due to BIOS settings.

Boot Info Script courtesy of forum members meierfra & Gert Hulselmans
Boot Info Script 0.61 is released April 2, 2012
boot_info_script.sh" file renamed to "bootinfoscript
http://sourceforge.net/projects/bootinfoscript/files/bootinfoscript/0.61/
Page with instructions and link to above new download:
http://bootinfoscript.sourceforge.net/
Paste contents of results.txt in a New Reply, then highlight entire file and click on # in edit panel(code tags) to make it easier to read.
Or You can generate the tags first by pressing the # icon in the New Reply Edit toolbar and then paste the contents between the generated [ code] paste here [ /code] tags.
Install these before running script:
sudo apt-get install gawk
sudo apt-get install xz-utils

or easier: indicate your BootInfo URL (http://ubuntuforums.org/showpost.php?p=11136267&postcount=1) ;)

choppyfireballs
May 14th, 2012, 06:49 PM
I probably missed this somewhere who is your laptop manufacturer because i know that some manufacturere's bios hangs when you have any kind of usb storage plugged in that's not bootable in the case of grub it might just be making it to the grub2 before it hangs.