Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 19-02-2008, 10:02 AM   #1 (permalink)
In The Zone
 
Vivek788's Avatar
 
Join Date: Jul 2006
Location: Cochin
Posts: 340
Default Bootloader issues


Hi all...I used to run my Ubuntu and Windows using my sata hard disk happily.

Recently I got my old IDE HD repaired..so I installed fedora on one of its partitions.
The bootloader of fedora was set to MBR ie. hd0..my sata.
But on loading,the bootloader showed only Windows and Fedora,my ubuntu was missing..I tried to repair from the fedora cd itself...which after scanning hte /dev/sda11 where my ubuntu was and said "no linux kernels found"

Then I thought if I install another Ubuntu I can get it all back and then remove fedora...but again tat ubuntu too was not detected..fedora bootloader persisted .

Recently,I decided to replace fedora and completely format the 2nd HD.I did tat and installed a gutsy on tat place...now....there is no bootloader..on booting i get the terminal of grub with the prompt being "grub>"

On trying to boot from there,they ask for loading kernel first.I am unable do anything...even on trying root(hd0) they say its a whole device...no idea whats happening...my windows and precious ubuntu all inaccessible...help please..


PS:I am posting from live cd of fiesty fawn...
__________________
Viva Green Computing!!
http://www.vivtech.blogspot.com/
Vivek788 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-02-2008, 10:22 AM   #2 (permalink)
Alpha Geek
 
Krazy_About_Technology's Avatar
 
Join Date: Jun 2004
Location: Noida - India
Posts: 765
Default Re: Bootloader issues

The problem is when you installed fedora's boot loader in hd0, it has overwritten your original boot loader. Further this bootloader loads all its files from the /boot of your ide hdd. Thats why its not booting now. I am not a linux expert, but afaik you can boot into rescue mode of any linux ditro and run these command :
Code:
# chroot <your linux partition>
# grub-install <device>
to reinstall grub. Try it, if it doesn't works, try pming praka123, he is an expert on linux.
__________________
Dell Inspiron 1525 - C2D 2 Ghz, 3GB, 250GB, X3100 :)

Samsung Omnia Pro B7610 with Stock WM 6.1 ROM

Blog: http://www.sumitbhardwaj.co.in/blog
Krazy_About_Technology is offline  
Old 19-02-2008, 10:40 AM   #3 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile Re: Bootloader issues

first concentrate on 1 distro d00d!

What I understand is, you have currently Ubuntu gutsy installed on ide drive(2nd drive).windows is in sata harddisk?

go to bios and in boot device priority,make your Ubuntu ide harddisk as 1st priority followed by sata drive.
yes,make CD/DVD drive as 1st priority followed by ide PATA drive and then SATA drive.
boot with Ubuntu gutsy livecd,mount your Linux partition where you want to install grub.open terminal:
Code:
sudo /dev/hdx /mnt
where hdx is ur gutsy installed on ur ide harddisk which you want to use.
you can find ur ubuntu partition via "sudo fdisk -l" output.

now do as below:
Code:
mount -t proc proc /mnt/proc
Code:
mount --bind /dev  /mnt/dev
Code:
chroot  /mnt  /bin/bash
now you are chrooted to Ubuntu hdd install.

you should set grub natively now.
In the "#" prompt,run below commands:
Code:
grub
In the grub prompt,
Code:
grub>root (hd ...
^press TAB key to show the available options that include hd0 and hd1 partitions.
select the "partition number -1" of ur Ubuntu hdd install.ie;for eg; ubuntu is installed on /dev/hda1, then select as (hd0,0) similarly for /dev/hda5 it will be (hd0,4).
so,
Code:
grub>root (hd0,x)
^where "x" is the partition number
then,
Code:
setup (hd0)
now run,
Code:
grub-install '(hd0)'
now look the o/p and make sure /dev/hda and /dev/sda are listed.
OR
Code:
cat /boot/grub/device.map
^it should have something like below:
Quote:
(hd0) /dev/hda
(hd1) /dev/sda
now:
Code:
umount /proc
Code:
umount /dev/
press CTRL+D to exit,then reboot and see whether grub is rescued.
Now once boot into ur hdd Ubuntu installation,edit ur /boot/grub/menu.lst inorder to boot from windows on ur sata hdd.
for that,first find ur windows partition in sata-which will be most probably (hd1,0)
Inside ur hdd installed Ubuntu:
so press ALT+F2 to get run dialogue and run:
Code:
gksudo gedit /boot/grub/menu.lst
and go to bottom of the file and add in a separate line:
Code:
title =  Windows XP
root = (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
save and exit.Now Hopefully,ur problems are solved
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 19-02-2008, 08:27 PM   #4 (permalink)
In The Zone
 
Vivek788's Avatar
 
Join Date: Jul 2006
Location: Cochin
Posts: 340
Default Re: Bootloader issues

well no ubuntu and windows both in sata..fedora in ide..now ubuntu in tat place...prob fixed by making ide as master..i thnk i was following the idea of hd0 wich i had wen i had only 1 HD.By the coming of the IDE..sata became hd1...tats wat happened..how silly of me not to notce tat...anyway nice info all have posted.thanks for hte quick response...
__________________
Viva Green Computing!!
http://www.vivtech.blogspot.com/
Vivek788 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mint Bootloader taken over by XP bootloader desai_amogh Open Source 3 13-08-2007 07:58 AM
openSUSE 10.2 bootloader hellknight Open Source 2 28-02-2007 02:23 PM
NO BOOTLOADER NO LINUX sahil_blues Open Source 1 19-02-2005 10:27 PM
linux bootloader praveen_hero Open Source 6 20-11-2004 02:30 PM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 02:57 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2