Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
One of my presents is a new computer. I currently have a dual boot system with windows on one HD and my three Linux installs on a second HD. I ordered my new computer with no HD so as to save some money.
So, I want to put my linux HD in the new box, and leave win on the old one. This is what I was thinking:
1. Physically install linux HD in new computer.
2. Use install cd to boot in rescue mode
3. Install Grub
4. Live merrily ever after.
This seems too easy though...am I missing something? Are my kernels hardwired for /dev/hdc (where the are now) thus breaking when they are moved to /dev/hda (where they will be). Can I use rdev to fix them? Am I resigned to reinstalling?
Well, unless your computer has the same cdrom/soundcard/video-card/ etc. I don't think this is possible. I'm no expert, but the kernel is configured to load the right drivers for the hardware on your computer, so I don't think it's possible. But again, I'm no expert, so gather some more opinions before you abandon your plan.
The more I think about it, this is probably possible, but I don't think it's going to be as simple as installing Grub. I think you're going to have to install a new kernel, or reconfigure it somehow, which I think is possible if you do do something in Rescue mode etc.
Yeah, I was wondering about the kernel modules and all, but if I use kudzu to detect the new hardware it should work alright I think. I'll give er a shot anyway, as I was thinking I would have to reinstall anyway, but with Redhat, slackware, and LFS that's quite a chore.
I'd use an install disk in rescue mode to get into each fs and edit module.conf and fstab and depending on the distro, check rc.modules and rc.local if you put stuff into it.
chroot into the one you got grub already installed, and reinstall to mbr.
...reboot and see if you forgot anything, ...well if I forgot anything
Should not be a major ordeal. RH80 runs kudzu during the boot ("detecting new hardware") and pops a screen to allow you to take appropriate action on all new or missing devices. I did something similar by putting a new pentium motherboard in a box replacing an old AMD board. kudzu picked up all the changes and came up with the new video, sound and nic.
For the hdc/hda, a couple of things. You could attach the drive to the second ide controller, in which case it would still come up as hdc. OR, look in the /etc/fstab. Newer Redhat installs will define the drives with LABEL=/xxx instead of /dev/hdxn. If this is the case, you are home free. Otherwise, change the /dev/hdcn lines to /dev/hdan. This can be done before the last shutdown or during the rescue boot where you are adding grub.