LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-15-2008, 06:48 PM   #1
jborn
Member
 
Registered: Oct 2005
Distribution: FC 8
Posts: 53

Rep: Reputation: 15
Trying to boot an old install?


Hi,

I had a FC6 install across two hard drives. I added 1 drive and installed FC8 on that. It defaults to booting this drive via GRUB (I think that is the boot loader) which is correct for long term, but for short term I would like to add the other FC6 boot. How do I do that?

Here is the output of fdisk -l

fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003f91c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1580 12586927+ 83 Linux
/dev/sda3 1581 1841 2096482+ 82 Linux swap / Solaris
/dev/sda4 1842 38913 297780840 5 Extended
/dev/sda5 1842 38913 297780808+ 83 Linux

Disk /dev/sdb: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a4bdc

Device Boot Start End Blocks Id System
/dev/sdb1 1 20023 160834716 83 Linux

Disk /dev/sdc: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000020e2

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 13 104391 83 Linux
/dev/sdc2 14 1580 12586927+ 83 Linux
/dev/sdc3 1581 1841 2096482+ 82 Linux swap / Solaris
/dev/sdc4 1842 36481 278245800 5 Extended
/dev/sdc5 1842 36481 278245768+ 83 Linux

Disk /dev/dm-0: 449.5 GB, 449562279936 bytes
255 heads, 63 sectors/track, 54656 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

and this is the contents of grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.8-63.fc8)
root (hd0,0)
kernel /vmlinuz-2.6.23.8-63.fc8 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.23.8-63.fc8.img

Last edited by jborn; 02-15-2008 at 07:25 PM.
 
Old 02-15-2008, 08:09 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
When you boot up, instead of selecting a menu option, back up into the grub shell and manually search for the old kernel and initrd files. Starting with "kernel (hd2," and pressing the tab key would be a good start. After the kernel line, do the same for an "initrd (hd" line. A nice feature of grub is using autocompletion. After locating these files, write the lines down and then enter the "boot" command and see if the old system still boots up. If you are missing a partition that was on another disk you may need to edit the old /etc/fstab entry, commenting out the entry.

If you get it working, use the kernel & initrd grub lines you used and add them to a new entry in /boot/grub/menu.lst.
 
Old 02-15-2008, 08:14 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I would simply copy the FC6 entry from the FC6 /boot/grub/menu.lst to the newer one. However, a conflict may result if both systems use the same partition labels. In that case, you should edit the /etc/fstab and /boot/grub/menu.lst files of one system to use device names (for example, /dev/sda3 instead of label=/), updated labels or any other method that would identify partitions in an unambiguous way .
 
Old 02-16-2008, 06:24 PM   #4
jborn
Member
 
Registered: Oct 2005
Distribution: FC 8
Posts: 53

Original Poster
Rep: Reputation: 15
I updated the menu.lst to add the second menu item. When I selected it the error message was something list file not found..

Exact error message:

Filesystem type unknown, partition type 0x83

Error 17: Cannot mount selected partition.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.8-63.fc8)
root (hd0,0)
kernel /vmlinuz-2.6.23.8-63.fc8 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.23.8-63.fc8.img
title Fedora Core (2.6.22.14-72.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.22.14-72.fc6 ro root=/dev/sdc1 rhgb quiet
initrd /initrd-2.6.22.14-72.fc6.img


Should the line root (hd0,0) be root (hd2,0) or root (hd1,0) to specify this is a different hard drive?

Thanks for all the pointers.

Last edited by jborn; 02-16-2008 at 06:41 PM. Reason: Adding information
 
Old 02-16-2008, 08:28 PM   #5
jborn
Member
 
Registered: Oct 2005
Distribution: FC 8
Posts: 53

Original Poster
Rep: Reputation: 15
It ended up being root (hd1,0) but then everything was all messed up with all the hard drive devices being different. I'm going to try a different route and try to rebuild the lvm in fc8 and then mount that.. copy the data off and never go back to lvm.. nothing wrong with lvm, just to much for a linux newbie like me.
 
Old 02-16-2008, 08:31 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Well, yes, but it depends on how your disks are ordered. But if you know that your new drive is (hd0,0), then you know that you'll need (hd0,1) or (hd0,2) for the FC6 drive. You may also need to check whether the FC6 drive is still sda or whether it is now something else.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu boot issue after install, no dual boot milad.hanna Linux - General 1 11-07-2007 02:32 PM
Install Fedora Core 6 with XP to dual boot - XP doesnt boot anymore Blacklisted Linux - Newbie 3 11-07-2006 03:07 PM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 05:34 AM
FEDORA 5 install. CD1 does not boot, already configured BIOS it boot with other disk frankj Fedora 3 12-30-2005 10:41 AM
Win2K/RH7.1 Dual, RH won't boot from boot disk after install marktaff Linux - Software 4 08-24-2001 06:29 PM


All times are GMT -5. The time now is 04:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration