LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-16-2007, 07:21 PM   #16
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125

Try this to get Ubuntu booted (temporary fix - doesn't update anything).
At the grub menu, hit the down arrow - just to stop the countdown timer. Highlight the Ubuntu line, then hit e to go into grub edit. Enter O (capital oh) to insert a line. Enter
Code:
unhide (hd0,1)
Then hit <Enter>, and b to boot the modified entry. That should boot Ubuntu for you.

Then start backing up your data.
 
Old 07-16-2007, 07:22 PM   #17
jthuber
LQ Newbie
 
Registered: Jul 2007
Distribution: Slackware 10.2, OpenSUSE 10.2, Zenwalk 4.3
Posts: 9

Rep: Reputation: 0
Alright, according to your partition manager there, you have 4 partitions on your primary hard drive, these are (hd0,0) - (hd0,3) in GRUB.

So what you need to do to get everything back is unhide the hidden partitions and


Code:
default        0

timeout        5

title        Ubuntu, kernel 2.6.20-16-generic
unhide           (hd0,0)
unhide           (hd0,1)
unhide           (hd0,2)
unhide           (hd0,3)
root             (hd0,1)
kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=bf45cb71-3b7c-49be-b6cb-9acee2536802 ro quiet splash
initrd        /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title        Ubuntu, kernel 2.6.20-16-generic (recovery mode)
unhide           (hd0,0)
unhide           (hd0,1)
unhide           (hd0,2)
unhide           (hd0,3)
root             (hd0,1)
kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=bf45cb71-3b7c-49be-b6cb-9acee2536802 ro single
initrd        /boot/initrd.img-2.6.20-16-generic

title        Ubuntu, memtest86+
unhide           (hd0,0)
unhide           (hd0,1)
unhide           (hd0,2)
unhide           (hd0,3)
root             (hd0,1)
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda3
title          XP pro @ hda3
hide    (hd0,0)
hide    (hd0,1)
unhide  (hd0,2)
unhide  (hd0,3)
root    (hd0,2)
makeactive
chainloader    +1
Or, if you made the backup that I recommended you can copy that file back over your current menu.lst

Last edited by jthuber; 07-16-2007 at 07:23 PM.
 
Old 07-16-2007, 07:24 PM   #18
jthuber
LQ Newbie
 
Registered: Jul 2007
Distribution: Slackware 10.2, OpenSUSE 10.2, Zenwalk 4.3
Posts: 9

Rep: Reputation: 0
These steps by sygoo should also work to get you into Ubuntu.

Quote:
Originally Posted by syg00
Try this to get Ubuntu booted (temporary fix - doesn't update anything).
At the grub menu, hit the down arrow - just to stop the countdown timer. Highlight the Ubuntu line, then hit e to go into grub edit. Enter O (capital oh) to insert a line. Enter
Code:
unhide (hd0,1)
Then hit <Enter>, and b to boot the modified entry. That should boot Ubuntu for you.

Then start backing up your data.
 
Old 07-16-2007, 07:42 PM   #19
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by syg00
Try this to get Ubuntu booted (temporary fix - doesn't update anything).
At the grub menu, hit the down arrow - just to stop the countdown timer. Highlight the Ubuntu line, then hit e to go into grub edit. Enter O (capital oh) to insert a line. Enter
Code:
unhide (hd0,1)
Then hit <Enter>, and b to boot the modified entry. That should boot Ubuntu for you.

Then start backing up your data.
as i said, i grub doesn't even start
error 17

Last edited by 512upload; 07-17-2007 at 06:33 AM.
 
Old 07-16-2007, 07:45 PM   #20
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jthuber
Alright, according to your partition manager there, you have 4 partitions on your primary hard drive, these are (hd0,0) - (hd0,3) in GRUB.

So what you need to do to get everything back is unhide the hidden partitions and


Code:
default        0

timeout        5

title        Ubuntu, kernel 2.6.20-16-generic
unhide           (hd0,0)
unhide           (hd0,1)
unhide           (hd0,2)
unhide           (hd0,3)
root             (hd0,1)
kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=bf45cb71-3b7c-49be-b6cb-9acee2536802 ro quiet splash
initrd        /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title        Ubuntu, kernel 2.6.20-16-generic (recovery mode)
unhide           (hd0,0)
unhide           (hd0,1)
unhide           (hd0,2)
unhide           (hd0,3)
root             (hd0,1)
kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=bf45cb71-3b7c-49be-b6cb-9acee2536802 ro single
initrd        /boot/initrd.img-2.6.20-16-generic

title        Ubuntu, memtest86+
unhide           (hd0,0)
unhide           (hd0,1)
unhide           (hd0,2)
unhide           (hd0,3)
root             (hd0,1)
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda3
title          XP pro @ hda3
hide    (hd0,0)
hide    (hd0,1)
unhide  (hd0,2)
unhide  (hd0,3)
root    (hd0,2)
makeactive
chainloader    +1
Or, if you made the backup that I recommended you can copy that file back over your current menu.lst
man, i need to get some sleep now it's 1h45m AM and i am tired from my day
i didn't try your solution yet, but i will do it tomorow

i will then tell you something

thank you very, very much

Last edited by 512upload; 07-17-2007 at 06:32 AM.
 
Old 07-16-2007, 08:12 PM   #21
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Quote:
Originally Posted by 512upload
as i said, i grub doesn-t even start
error 17
Sorry, missed that.
you'll have to unhide it first. Catch-22.
 
Old 07-17-2007, 06:15 AM   #22
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
jthuber, i'm gonna try what you wrote now.
if it works, do I need to have that settings all the time?

Last edited by 512upload; 07-17-2007 at 06:32 AM.
 
Old 07-17-2007, 06:29 AM   #23
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
I've tried your settings, jthuber, but I get the error:

"GRUB Loading stage1.5
GRUB Loading, please wait...


Error 17"
 
Old 07-17-2007, 07:30 AM   #24
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
I will keep checking this thread every now and then waiting for your response, jthuber. Thank you.
 
Old 07-17-2007, 07:41 AM   #25
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Nevermind, was responding to the first page.

Last edited by IndyGunFreak; 07-17-2007 at 07:45 AM.
 
Old 07-17-2007, 07:47 AM   #26
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by IndyGunFreak
Nevermind, was responding to the first page.
Yes, I was using Ubuntu 7.04. But now, I am running the live cd to do this post.
 
Old 07-17-2007, 08:07 AM   #27
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Everybody, if it's that difficult to repair or reinstall grub, I wouldn't mind that you just helped me have access to the NTFS partition, which now isn't recognised while running the live cd and I would copy all files from that Windows partition and the files from the other two partitions (ext3 and fat32) and reinstall both Windows XP and Ubuntu... I am desperate. Besides all important information like photos and other from the windows partitions, my father needs some important files from the it. I need to recover them quick or I'll get in trouble. I'll be waiting for your responses today.
 
Old 07-17-2007, 08:17 AM   #28
jthuber
LQ Newbie
 
Registered: Jul 2007
Distribution: Slackware 10.2, OpenSUSE 10.2, Zenwalk 4.3
Posts: 9

Rep: Reputation: 0
Have tried the steps from the Ubuntu forums you linked earlier?
Try these:
1. Boot with any live CD (I've done it with Ubuntu Live DVD)
2. Get a root shell -> Applications / System Tools / Root Terminal
3. Make a folder -> mkdir /mnt/ubuntu
4. Check the Ubuntu partition -> fdisk -l (Mine is /dev/hda4)
5. Mount the root partition of Ubuntu -> mount -t ext3 /dev/hda4 /mnt/ubuntu (replace /dev/hda4 by your Ubuntu partition determined at the step 4)
6. Chroot the mounted partition -> chroot /mnt/ubuntu
7. Restore Grub / the initial MBR -> grub-install /dev/hda
8. Exit the shell
9. Reboot
 
Old 07-17-2007, 08:35 AM   #29
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jthuber
Have tried the steps from the Ubuntu forums you linked earlier?
Try these:
1. Boot with any live CD (I've done it with Ubuntu Live DVD)
2. Get a root shell -> Applications / System Tools / Root Terminal
3. Make a folder -> mkdir /mnt/ubuntu
4. Check the Ubuntu partition -> fdisk -l (Mine is /dev/hda4)
5. Mount the root partition of Ubuntu -> mount -t ext3 /dev/hda4 /mnt/ubuntu (replace /dev/hda4 by your Ubuntu partition determined at the step 4)
6. Chroot the mounted partition -> chroot /mnt/ubuntu
7. Restore Grub / the initial MBR -> grub-install /dev/hda
8. Exit the shell
9. Reboot
http://img521.imageshack.us/img521/2...eenshotyg7.png
 
Old 07-17-2007, 08:42 AM   #30
Thane
Member
 
Registered: Aug 2006
Location: Ontario,Canada
Distribution: Linux Mint19.3 Cinnamon 64bit
Posts: 223

Rep: Reputation: Disabled
Old image removal

512upload;
I'm a relative newbie myself, so I will not try to solve your immediate problem. Just thought I'd relate a super easy way to eliminate your old 7.04 images using the command line (instead of using Synaptic), which I saw on a posting by aysiu some time back. It has never let me down. Possibly it would not have caused the havoc, which using Synaptic might have done in your case. From the command line, enter:
sudo apt-get remove linux-image-2.6.20-15-386 (substitute the version(s) being removed. I've included the "-386" here, as that's what I have, you might have something else like 486 installed.
This will also remove the following line in your boot screen, which ends in "recovery mode". This will remove the old kernel from your machine. Has always worked perfectly for me. Hope you get your problem fixed.
 
  


Reply



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
Dual Boot w/ WinXP Pro, Windows wont boot. bobbyj99 Linux - General 2 04-20-2006 01:27 PM
Grub/Dual boot - Windows partition restored via dd won't boot pazzport Ubuntu 1 01-06-2006 01:29 PM
trying to dual boot windowsxp/fc2 using windows boot loader. dr_zayus69 Linux - Software 7 02-08-2005 11:59 PM
Dual Boot : Making Windows First Option in boot menu Maxwell Rain Linux - Software 3 11-27-2004 03:00 PM
Win98/Linux - dual boot : windows boot says logical drives exist past z ashpai Linux - Software 3 03-22-2001 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:57 AM.

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
Open Source Consulting | Domain Registration