LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 02-16-2010, 08:23 PM   #1
Emma77
Member
 
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43

Rep: Reputation: 16
grub rescue


Firstly, I apologise because I'm aware there are lots of threads about this, i've read them. None of them quite match my situation. I've got myself in a right bl**dy mess!

I decided to try Ubuntu, and installed it on hdb, leaving Debian on hda. Didn't really like it (although it is astonishingly beautiful) so I got rid of it and made use of the drive.

I did anticipate this problem, I checked the /boot directory, but could only see references to Debian, so I thought it'd be okay.

There's not many commands available to me from this prompt, but:
Code:
ls (hd0,1)/boot
./ ../ grub/ vmlinuz-2.6.26-2-686 config-2.6.26-2-686 System.map-2.6.26-2-686 i
nitrd.img-2.6.26-2-686 initrd.img-2.6.26-2-686.bak
and:
Code:
ls (hd0,1)/boot
./ ../ device.map stage1 stage2 e2fs_stage1_5 fat_stage1_5 jfs_stage1_5 minix_s
tage1_5 reiserfs_stage1_5 xfs_stage1_5 default menu.lst menu.lst~
I'm confident Debian is still in /dev/hda1. I'm sure it's simply a matter of telling grub not to bother looking for Ubuntu on /dev/hdb because it's long gone. Please help, because i'm not familiar with grub in the slightest.

Thanks.

Last edited by Emma77; 02-16-2010 at 08:25 PM.
 
Old 02-17-2010, 08:51 AM   #2
Emma77
Member
 
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43

Original Poster
Rep: Reputation: 16
Phew. I did it, had to edit ... some files i can't rememeber, haha!

I think it was a 'default'. I commented it out. It still puzzles me though. The only references in menu.lst to any operating system was the two Debian variants, single user mode and the normal one. So where does Ubuntu fit into all this, where are the lines to load ubuntu?

This was the main reason I didn't like ubuntu. Although staggeringly beautiful, it just does things in funny ways. I don't have time for learning curves, I need it to do useful work.

I can only think the file named /boot/grub/default invokes ubuntu somehow, but there's nothing there to see, apart from the one line at the top saying simply 'default'. Very strange.

I'm now on the look-out for something that will tidy up the grub better than it now is, because it feels awfully clunky. I like a slick system.
 
Old 02-17-2010, 02:06 PM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by Emma77 View Post
Code:
ls (hd0,1)/boot
./ ../ grub/ vmlinuz-2.6.26-2-686 config-2.6.26-2-686 System.map-2.6.26-2-686 i
nitrd.img-2.6.26-2-686 initrd.img-2.6.26-2-686.bak
and:
Code:
ls (hd0,1)/boot
./ ../ device.map stage1 stage2 e2fs_stage1_5 fat_stage1_5 jfs_stage1_5 minix_s
tage1_5 reiserfs_stage1_5 xfs_stage1_5 default menu.lst menu.lst~
How come the same command 'ls (hd0,1)/boot' gives two different answers?? Am I missing something??
 
Old 02-18-2010, 12:47 AM   #4
Emma77
Member
 
Registered: Mar 2006
Location: England
Distribution: Debian
Posts: 43

Original Poster
Rep: Reputation: 16
Oh, no, sorry, that's simply a typo. I hadn't noticed that.

One is /boot, and the other is /boot/grub.
 
Old 02-18-2010, 09:51 AM   #5
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
put the debian-installation cd into the cdrom and boot.
choose advanced and then rescue.
answer the default qeustions (language, keyboard, country). wait till all is loaded from cd.
tell it to re-install grub to mbr (which should be hd0, but you get examples).
reboot without the installation cd.
hopefully that will work.
 
Old 02-25-2010, 04:44 PM   #6
Laurens73
Member
 
Registered: Aug 2009
Location: Zeewolde, Flevoland NL
Distribution: Debian squeeze (Gnome) on netbooks; Debian Lenny on servers and Debian wheezy (XFCE) on new laptops
Posts: 144

Rep: Reputation: 23
Well, the fastest way to restore your favorite distro after removing the latest is using Super Grub Disk - It looks like a small kid has wroten it, but it works terrific.

This CD also works very well after installing other systems like Windows which claim to have C: as the only startup disk. Super Grub Disk will offer the options available when the MBR is damaged for what reason ever.

Last edited by Laurens73; 02-25-2010 at 04:52 PM. Reason: Wrong adress - corrected with latest one
 
Old 03-11-2010, 06:22 AM   #7
rameshp3
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
rp3

thanks for posting
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB error: unknown filesystem, grub rescue magnecticfield Linux - Newbie 28 07-30-2013 03:35 AM
GRUB rescue AligatorBlud Linux - Newbie 6 12-15-2010 01:39 AM
Booting from Grub Rescue apolix Linux - Newbie 16 11-04-2010 06:32 PM
Grub rescue sayitmeme Zenwalk 6 05-02-2010 07:22 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 02:01 PM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
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