Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-26-2009, 06:54 AM
|
#1
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Rep: 
|
Fedorora recovery
I installed vista after fedora 8 installed bymistakely,Can I recover my fedora or I have to do a fresh installation,Any suggestion....
|
|
|
05-26-2009, 07:50 AM
|
#2
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
If you have not deleted the partitions or formatted them, they should still be there and healthy. Vista should just have over written then boot loader. You can boot from fedora cd/dvd and enter the rescue mode and from the shell give the command
Code:
grub-install /dev/sdx
x is the name of your drive.
|
|
|
05-26-2009, 02:03 PM
|
#3
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Original Poster
Rep: 
|
Quote:
Originally Posted by linuxlover.chaitanya
if you have not deleted the partitions or formatted them, they should still be there and healthy. Vista should just have over written then boot loader. You can boot from fedora cd/dvd and enter the rescue mode and from the shell give the command
Code:
grub-install /dev/sdx
x is the name of your drive.
|
no bro it's not working at all,always saying grub not found
tried too many times,that's work fine in case of redhat,
u just try in fedora and tell..
Waiting 4 reply...
|
|
|
05-26-2009, 04:47 PM
|
#4
|
Member
Registered: Apr 2009
Posts: 107
Rep:
|
If it's a new Fedora install anyway, then you loose no data by installing again. It's not the most professional approach, but it needs no big thinking and bag of tricks.
Linux Archive
Last edited by soleilarw; 06-18-2009 at 04:14 AM.
|
|
|
05-27-2009, 12:05 PM
|
#5
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Original Poster
Rep: 
|
Quote:
Originally Posted by soleilarw
If it's a new Fedora install anyway, then you loose no data by installing again. It's not the most professional approach, but it needs no big thinking and bag of tricks.
|
That's why am here,I could have a fresh installation but I want the professional way.
Actually lasttime,when I installed fedora I choose to auto install on the free space.Now, am not getting a /boot partition while recovering with fedora dvd in rescue mode...
I know how to recover in Redhat ,but facing trouble in case of fedora..
any help appriciated..
|
|
|
05-27-2009, 06:26 PM
|
#6
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
Fedora should be recoverable in the same way as RHEL.
MS installs tend to take the entire machine if you're not careful.
Why not use
Linux rescue
mode and run
fdisk -l
to see what's really there?
|
|
|
05-28-2009, 01:28 AM
|
#7
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Original Poster
Rep: 
|
Quote:
Originally Posted by chrism01
Fedora should be recoverable in the same way as RHEL.
MS installs tend to take the entire machine if you're not careful.
Why not use
Linux rescue
mode and run
fdisk -l
to see what's really there?
|
Bro I have already tested.
fdisk -l shows sda2 as linux and others are ntfs partitions..
I checked by e2label sda2 is / and /boot nowhere.
I mounted that / in some directory and try to install grub by grub-install /dev/sda2 ,but it's always saying grub not found ,
so what will I do now ??
|
|
|
05-28-2009, 01:32 AM
|
#8
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
Did you have /boot as a partition or you installed everything into "/" ?
And you need not mount /dev/sda2 anywhere for installing grub.
Just grub-install /dev/sda should work. And LOOK what grub-install looks like. You DO NOT install grub in / but in the mbr of the drive. And thats why you are unable to boot. It wont find grub in the MBR where it SHOULD be.
|
|
|
05-28-2009, 01:29 PM
|
#9
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Original Poster
Rep: 
|
Quote:
Originally Posted by linuxlover.chaitanya
Did you have /boot as a partition or you installed everything into "/" ?
And you need not mount /dev/sda2 anywhere for installing grub.
Just grub-install /dev/sda should work. And LOOK what grub-install looks like. You DO NOT install grub in / but in the mbr of the drive. And thats why you are unable to boot. It wont find grub in the MBR where it SHOULD be.
|
No I didn't have a /boot,that's why am in trouble.Before mounting I also tried as
#grub-install /dev/sda2
I didn't try
#grub-install /dev/sda
will that really help me ??
I am checking and'll post it tomorrow.
|
|
|
05-28-2009, 11:55 PM
|
#10
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
I already gave you the reason why you should install grub in the MBR of the drive. That is where you are faulting and if you check the post #2 i.e my first post, you will find the same solution that you have not followed and still saying it is not working.
|
|
|
05-29-2009, 02:46 AM
|
#11
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Original Poster
Rep: 
|
Quote:
Originally Posted by linuxlover.chaitanya
I already gave you the reason why you should install grub in the MBR of the drive. That is where you are faulting and if you check the post #2 i.e my first post, you will find the same solution that you have not followed and still saying it is not working.
|
Ok bro,thanks a lot.
I first
#chroot /mnt/sysimage
then
#grub-install /dev/sda
works correctly..
But as I've no /boot,where the grub installed ?The MBR was in the sda1 i.e. the C drive of Vista.So grub installed in sda1 or any where ??
|
|
|
05-29-2009, 03:37 AM
|
#12
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
MBR is the first section of the hard drive and is not contained by or in any partitions. It is a partition ny itself.
And if you do not have /boot as a partition then it is part of / as a directory. The boot information is contained in that directory.
Last edited by linuxlover.chaitanya; 05-29-2009 at 03:39 AM.
|
|
|
All times are GMT -5. The time now is 12:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|