It is currently Fri Jul 26, 2024 3:19 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Linux Help?
PostPosted: Mon Dec 19, 2011 11:20 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
I need some help from the linux gurus here...

I have two hard drives in my notebook. Windows 7 on sda and Ubuntu 10.10 on sdb. Grub is on the MBR of sdb

I have the bios set to boot to the sdb, and grub gives me a prompt to select either Ubuntu or Windows, with the default Windows in two seconds so I can tell my wife just turn it on and wait....and you will get Windows.

Well..... After the last round of updates in Ubuntu last week (which I think included a kernal update? Not sure...) Ubuntu wanted a restart to finish updates...

After the restart, grub comes up with only the windows option. No other menu entries.

I've looked at the grub2 docs and am really confused.

I've got a 10.04 on USB I can run, and I have the original 10.10 install disk I can boot from.

Any pointers on getting grub fixed?

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Linux Help?
PostPosted: Tue Dec 20, 2011 12:05 am  (#2) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
I can't imagine a standard update trashing grub but Ubuntu does some strange things at times, especially the LTS version.

Can you post output from fdisk -l (as su) and the contents of grub.cfg?

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Linux Help?
PostPosted: Tue Dec 20, 2011 5:29 am  (#3) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2446
Grub2 aka 'grub disaster'. Whatever you do procede with caution, (No backups to revert to an earlier MBR/installation that would get you back to the previous kernel I suppose?)

I had similar problems with a LinuxMint 9 installation where trying to update the kernel broke grub2. Maybe the previous kernel is still on the disk. As GnuTux you need to look at your /boot/grub/grub.cfg file (the one that says DO NOT EDIT, which of course you can)

Some possible tools.
It has been some time since I tried an original Ubuntu, does the live CD/DVD have an option for fixing grub.

There is a grub rescue disk 'supergrub2' http://www.supergrubdisk.org/ free, small (fd size), live CD , worth a try. It should get you into the actual installation instead of working off a live CD/usb.
( did not have much luck with rescantux which is a bigger beast, its the same site, that might be worth a try as well).

_________________
Image


Top
 Post subject: Re: Linux Help?
PostPosted: Tue Dec 20, 2011 5:59 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Try reinstalling Grub2 from LiveCD:
http://www.noobslab.com/2011/07/install ... ve-cd.html

But for some reason Grub seem not being detecting Ubuntu.

You might have had a bad update or updates interrupted. If the above does not work you can try something like this:
Start LiveCD or LiveUSB (same system architecture as installed) and make sure you have internet available. Open terminal and:
sudo mount /dev/sdb1 /mnt

sudo mount --bind /dev /mnt/dev

sudo mount --bind /dev/pts  /mnt/dev/pts

sudo mount --bind /proc /mnt/proc

sudo mount --bind /sys  /mnt/sys


sudo chroot /mnt


From here you will be as root from the LiveCD, but within the installed system
dpkg --configure -a

apt-get update

apt-get install -f

apt-get install grub2

update-grub2

exit


Reboot.
Remember that I wrote "sdb1" because I understand that this is where you have installed the system. You have to use "sdb1" then when you log in as root to the installed system with "chroot" and reinstall Grub2, it install in the MBR of "sdb" (As was supposedly set on your installed system)

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: Linux Help?
PostPosted: Sat Dec 24, 2011 11:31 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Thanks allot YAFU! That was almost what fixed me up, but I did have to add a :
sudo mount --bind /etc /mnt/etc


as well as that is where the grub conf lives.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Gimp on Linux with OpenCL

11

No new posts Attachment(s) Installing SCM in Fedora Linux

2

No new posts Attachment(s) I am looking for a UserFilter 64 bit plugin for Linux

3

No new posts Attachment(s) Voronoi 2.2 for Linux Ubuntu 64bit

1

No new posts Attachment(s) New Gimp 2.10.19 appimage 2020402 (Linux)

6



* Login  



Powered by phpBB3 © phpBB Group