Linux - NewbieThis 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.
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.
Hi
I have upgraded my Linux box to a shuttle 41G from a standard PC tower. In the process I have moved only one of the disks (an old slow and very small disk that I though wasn't being used had been left in the old chassis)
Assembly of the machine was fine but when I switch it on it refused to boot. All the tests work etc but the machine can not boot from the drive which contains RH9 with all the latest patches etc.
I think the problem is that the drive was formally the master on the secondary channel of the old machine but it now the only drive on the primary channel of the new machine. Effectively its been moved from hdc to hda. Also there is no MBR on the drive. (I do have an emergency floppy)
I have an ISO image of SUSE on cd rom and have been able to boot the machine with it and look at the drive (hda) with all the data on it. I tried to reinstall grub into the mbr on hda but to do this grub-installer needs to build a list of drives and store them in /boot. This is impossible becasue /boot is on the cdrom!
Can anyone suggest how I could boot from either the SUSE cd or the floppy and change the previous hdc refs to hds (I know how to change the grub.conf files) I guess I need to change all the mount points too (/etc/???) and perhaps reinstall grub after using a floppy boot. But is there anything else?
I would rather not reinstall the RH - it would take ages to repatch it.
- boot with Suse
- mount your old file system to a tmp directory (e.g. /mnt/tmp)
- chroot to /mnt/tmp
- edit your /etc/fstab to reflect the changes
- edit and update grub (sorry I don't know anything about grub, I use lilo)
- exit chroot and unmount /mnt/tmp, reboot.
Hi
For this to work you have to get redhat boot cd. You can boot from the redhat bootable cd in to the rescue mode. Now mount the root filesystem by typing
chroot /mnt/sysimage
now edit the fstab to ur liking.
To install grub on MBR type
grub-install /dev/hda
to install on the root partiton type
grub-install /dev/hda(x) where x is your partition number on which grub is to be installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.