LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-17-2007, 01:51 AM   #1
jagdishpandey
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Rep: Reputation: 0
i lost my previous linux OS link-how do i recover


i have one linux(RHEL) and one windows Xp partition.both of them successfuly working.

but when i installed linux fedora 4 in another partition ..


the boot loader is not showing the link of my previous linux , however it show the window OS link in boot loader...


how do i recover the lost linux link that is still in my system

Last edited by jagdishpandey; 07-17-2007 at 01:53 AM.
 
Old 07-17-2007, 02:45 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
What bootloader are you using. lilo, grub, or the windows one, and where is it. the master boot record or the active partition.
post the contents of fdisk -l.
 
Old 07-17-2007, 02:46 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I'm not sure what you mean by a link to the OS. If you mean that you don't have a grub menu entry to the original Red Hat installation, your best bet would be to boot up in Fedora, and then mount the Red Hat boot partition. The /boot/grub/menu.lst file will contain the section for booting into the Red Hat installation. Simply copy that portion from your old menu.lst file (RHEL) and past it into the current menu.lst file (FC). When you boot, grub accesses the menu.lst file, and that is what is used to produce the menu. By copying those lines to the new menu.lst file, you will be adding another menu item.


If you use lilo instead, then you need to run the "lilo" command after editing /etc/lilo.conf. Red Hat and Fedora use grub however. Unless you started using Lilo instead, you can forget about this.

Last edited by jschiwal; 07-17-2007 at 02:49 AM.
 
Old 07-17-2007, 05:10 AM   #4
jagdishpandey
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
i m using grub and it is in MBR
 
Old 07-17-2007, 05:20 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Fine, grub accesses the menu.lst file from the last distro where you ran grub-install. Use that menu.lst file to make changes. Also, print it out and make a backup on a floppy or cdrom or pen drive. Also, print out and backup the output of "fdisk -l". That can help you recover from accidently wiping out your partition table during a future install.

Using grub, you don't need to keep running grub-install if grub is already on the MBR. That is because the information needed to boot is contained in the menu.lst text file on the boot partition. This is unlike Lilo which stores the starting and ending location of the kernel on the device. If you update the kernel, you must run "/sbin/lilo" again. With grub, you just need to edit the file.

You can also use the grub shell to locate the RHEL partition that contains the kernel and vmlinuz files. That and the root partition are enough for you to boot up with, so it is possible to boot up from a live distro's grub. So if you had reinstalled windows and lost grub on the MBR, you could still boot up into Linux, edit the menu.lst file if needed. ( I this example that wouldn't be necessary ), and run grub-install to put grub back on the MBR. Just so that you understand, only run grub-install on the same distro. That way you won't run into dueling distro syndrome. (dds!!!) One thing you may find useful is to have the /home directory on its own partition and share it among the distro's. You will want to use a different user home directory in most cases, but you could use the same username, but have a modified user home directory name. When installing a new distro and adding a regular user, add a suffix indicating the distro. So johndoe's home page on rhel could be /home/johndoe-rhel and on Fedora Core /home/johndoe-fc. Good Luck!

Last edited by jschiwal; 07-17-2007 at 05:28 AM.
 
Old 07-17-2007, 06:02 AM   #6
jagdishpandey
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
what it mean - "from the last distro"
 
Old 07-17-2007, 08:15 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The last distro that you installed. The grub-install program was run using the menu.lst from the Fedora Core's /boot/grub/menu.lst file. That is why there wasn't a menu entry for RHEL. Hopefully you created a separate partition for the /boot directory. That would A) make it easy to backup because it is small. B) Make it easier to mount from a live distro or one of the other distro's; if you use ext3 and it isn't part of an lvm volume.

Last edited by jschiwal; 07-17-2007 at 08:27 AM.
 
Old 07-18-2007, 07:01 AM   #8
jagdishpandey
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
thanks it work's thaks a lot
 
Old 07-18-2007, 07:05 AM   #9
jagdishpandey
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Sometimes LINUX hangs during initialization

but again there is one problem....

some time i get successfully into linux but some time it hangs in initialization as shown below

after giving welcome to RHEL
Press 'I' to......

starting udev: ok
initializing hardware.....storage network audio ....now here system hangs untill i forcefully restart the PC.
 
  


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
Recover lost Linux files from windows samuelmp General 1 06-16-2007 01:22 PM
Howto recover lost and formatted data on lost partitions. Sören Schneider LinuxQuestions.org Member Success Stories 2 04-05-2006 06:38 AM
Recover lost NTFS files from Linux??? tarwood Linux - Newbie 4 06-30-2005 03:02 PM
formatted my c:, linux boot data lost, how could i recover sas_tvr Linux - General 1 01-18-2005 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:24 PM.

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