LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-01-2006, 05:02 AM   #1
slan124
LQ Newbie
 
Registered: Jan 2005
Location: South East England
Distribution: Fedora Core 5
Posts: 21

Rep: Reputation: 15
moving Fedcora to a different computer


Im having a problem with my install i have moved the hard drive to the other computer and am now wondering how i will be able to recreate the grub device list so that it points to the correct drive. I was also wondering if there is any point in me doing this or if i should just transfer the data that i want to keep.
Thanks in advance
Slan
 
Old 04-01-2006, 07:25 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Sure, just boot with the installation media into rescue mode by typing 'linux rescue' minus the single quotemarks when the menu screen is displayed. Answer a few questions and read the on-screen messages. Pay attention to the chroot on-screen message and follow them. When ready do something (type) like;

/sbin/grub-install --recheck /dev/hda
 
Old 04-01-2006, 01:37 PM   #3
slan124
LQ Newbie
 
Registered: Jan 2005
Location: South East England
Distribution: Fedora Core 5
Posts: 21

Original Poster
Rep: Reputation: 15
thank you very much that bit worked but i think there is a problem with the list for the devices because it is still showing what was there for the old computer please help im new to linux
 
Old 04-01-2006, 03:20 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Well is everything working??? Can you log on and do everything that you normally did on the old system?? If yes then nothing to worry about.

I do not know what hardware the old system had excactly, my crystal ball seems to be broken. I also don't know what, if any, the differences are between the new and old computer for the same reason.

I can tell you that kudzu ran and udpated any hardware changes needed for you the first time you booted FC4 on the new system after you installed grub. Ckeck you logs (/var/log) and find out.
 
Old 04-02-2006, 01:23 AM   #5
slan124
LQ Newbie
 
Registered: Jan 2005
Location: South East England
Distribution: Fedora Core 5
Posts: 21

Original Poster
Rep: Reputation: 15
yeah sorry about the vague post. The new system is slightly older than the original one i installed it on as i wanted to remove it from my dual booting computer. The one the hard drive is going into is a 1Ghz Celeron with 256Mb RAM. This should run Fedora Core 4 I hope.


I followed the instructions on how to install grub but it rewrites the device.map bit but still shows me all the older boot options. When I try and select one of these options it tells me there is no device. So what i was wondering is there any way to change the availible drive from the rescue console cause that is all I can reach at the mo.
 
Old 04-02-2006, 08:38 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
If I understand you correctly, your saying the new system will not boot from the hard drive. Please explain what you mean by "all the older boot options", grub is a bootloader it does not add or remove any boot options. Please post the exact error message not your interpretation of it.

Boot into rescue mode just like before and if possible post the output from;

fdisk -l /dev/hd* (that is the letter 'L' in the command)

cat /boot/grub.grub.conf

And provide some details about the system this hard drive came from.
 
Old 04-02-2006, 09:09 AM   #7
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by slan124
I followed the instructions on how to install grub but it rewrites the device.map bit but still shows me all the older boot options. When I try and select one of these options it tells me there is no device. So what i was wondering is there any way to change the availible drive from the rescue console cause that is all I can reach at the mo.
Do you mean that all the old menu options are still there pointing to other partitions/devices?
If so then running update-grub should clear that up.
 
Old 04-02-2006, 09:47 AM   #8
slan124
LQ Newbie
 
Registered: Jan 2005
Location: South East England
Distribution: Fedora Core 5
Posts: 21

Original Poster
Rep: Reputation: 15
yeah sorry didnt make that clear again.

Yeah thats what i ment Binary.

Will try that when i get in again
 
Old 04-02-2006, 01:55 PM   #9
slan124
LQ Newbie
 
Registered: Jan 2005
Location: South East England
Distribution: Fedora Core 5
Posts: 21

Original Poster
Rep: Reputation: 15
sorry for a vague post here but i sadly cant post te output it moved to fast. But the last line of the fdisk -l command said that there were no partition tables. Does that mean that i should transfer my data and start again with a clean install. would a clean install be easier.

Thanks in advance

slan
 
Old 04-02-2006, 04:39 PM   #10
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Err..... what data??? You stated the last line from the fdisk command said that there were no partition tables. One partition at least is needed to hold data. This also begs the questions, how did you run chroot and the grub-install commands on this hard drive? Where did grub get the boot options menu (normally the file /boot/grub/grub.conf) from? Sounds like you need some console command help.....

You can copy (cp) the /boot/grub/grub.conf file to a floppy or other removable media, or even a mounted fat32 partition. The same with the output from the fdisk command.

Example commands (adjust to match your system and media);

mount -t auto /dev/fd0 /media/floppy
cp /boot/grub/grub.conf /media/floppy/grub.conf
fdisk -l /dev/hd* > /partitions.txt
cp /partitions.txt > /media/floppy/partitions.txt
umount /dev/fd0
 
Old 04-03-2006, 05:31 AM   #11
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by slan124
sorry for a vague post here but i sadly cant post te output it moved to fast. But the last line of the fdisk -l command said that there were no partition tables.
If the last line was something like
Code:
Disk /dev/hda2 doesn't contain a valid partition table
Then that would be fdisk looking for a partition table in a partition, which, unless it's an extended partition, wouldn't exist.

Last edited by binary_y2k2; 04-03-2006 at 05:34 AM.
 
Old 04-03-2006, 12:27 PM   #12
slan124
LQ Newbie
 
Registered: Jan 2005
Location: South East England
Distribution: Fedora Core 5
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for the help but i have given up with it so i will just copy the impportant data onto my other machine and then just reinstall Fedora core think that will be the easiest cause it sounds like the grub was install somewhere else.

Thanks for the help again
 
  


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
Moving a computer macisaint Linux - Hardware 8 06-26-2005 11:57 PM
Moving a software raid to a new computer phil.d.g Linux - General 2 06-03-2005 08:11 AM
Moving linux to new computer dohanc SUSE / openSUSE 5 12-10-2004 04:23 PM
Moving data from old computer to new one? pilot1 Linux - General 11 05-10-2003 06:15 PM
moving computer chens_83 Linux - General 1 07-24-2002 09:46 AM

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

All times are GMT -5. The time now is 07:06 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