LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-25-2002, 06:52 PM   #1
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 65
Can I do this? Hard drive swap.


Hello, and Merry Christmas.

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?

Any advice/help is appreciated.
 
Old 12-25-2002, 10:48 PM   #2
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 435

Rep: Reputation: 30
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.

Good luck.


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.

Last edited by oulevon; 12-25-2002 at 10:51 PM.
 
Old 12-25-2002, 10:57 PM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
you should be able to get it going, rdev is not really use any more the boot loader will load the kernel, you just need to probably change a few things in /etc/modules.conf

if you know the hardware's not there just remove the entry in modules.conf
 
Old 12-25-2002, 11:50 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Original Poster
Rep: Reputation: 65
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.
 
Old 12-26-2002, 12:13 AM   #5
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
if it won't boot go to single user and see if you can fix it.
 
Old 12-26-2002, 08:10 AM   #6
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
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
 
Old 12-26-2002, 08:59 AM   #7
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
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.
 
Old 12-26-2002, 01:54 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Original Poster
Rep: Reputation: 65
Good advice, thanks folks.
 
  


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Hard Drive Swap Challenge Peterius Linux - Hardware 1 10-17-2004 10:42 AM
Can I run the swap partition on th second hard drive? dwhswebhosting Linux - Software 2 06-03-2004 05:33 PM
DSL hard drive install and swap Sparkfist DamnSmallLinux 2 05-04-2004 10:38 PM
new hard drive, grub and swap? freychef Linux - Hardware 3 01-26-2004 08:55 AM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration