FedoraThis forum is for the discussion of the Fedora Project.
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.
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.
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
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
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;
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
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
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.
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.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
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.
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.
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.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.