LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-09-2004, 09:34 PM   #1
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Rep: Reputation: 30
Stupid Q about Hardrives and Booting


Hi,

I was wondering, if I install linux on a hardrive, and then move that hardrive into a new box, will I be able to boot it by floppy or lilo if I set the bios to recognize it as a slave? Even if linux wasn't installed in the presence of the motherboard, PCI cdroms or anything else on the system? Would there be many problem?

-Thanks
 
Old 03-09-2004, 10:18 PM   #2
michael@actrix
Member
 
Registered: Jul 2003
Location: New Zealand
Distribution: OpenSUSE Tumbleweed
Posts: 68
Blog Entries: 1

Rep: Reputation: 20
Re: Stupid Q about Hardrives and Booting

Boot it from lilo or floppy - no worries. But then the interesting stuff kicks in...

If the hard drive configs aren't the same and your distro doesn't use disk-labels, there will be trouble. For example, say you installed linux onto a disk that linux thinks is /dev/hda (ie the first drive - C drive) and then moved the disk to the new machine as /dev/hdb (ie the second drive - D drive), then the /etc/fstab - which lists what partitions to mount - is going to be wrong. Some distro's, like Redhat 9, use disk(partition) labels instead of the physical device names, so this won't be a problem. Of course you can edit the /etc/fstab before moving the drive so that it will be correct for the new machine - or you can fix problems after they occur by using a maintenance distro bootable CD (eg knoppix) to mount your / partition and edit /etc/fstab. Remember that CDROM drives may cause disk devices to differ as well depending on which IDE bus they are connected to.

If the original installation hardware - mainboard, graphics card, network card, ... differs from the new box, you might run into problems. If your disto can't detect and reconfigure itself for all the changed hardware during boot up, you could be toast. However, some distros, can auto-detect major changes on the way up. Redhat's Kudzu hardware detector successfully coped with a friend changing his mainboard.

If you attempt this and the graphics cards aren't the same, then make sure the system is running in a vanilla console mode - no fancy resolutions. And configure it not to run X-windows - i.e. set the run level to 4 by editing /etc/inittab. In fact, it would be safest to do this even if the cards are the same.

Quote:
Originally posted by flamesrock
Hi,

I was wondering, if I install linux on a hardrive, and then move that hardrive into a new box, will I be able to boot it by floppy or lilo if I set the bios to recognize it as a slave? Even if linux wasn't installed in the presence of the motherboard, PCI cdroms or anything else on the system? Would there be many problem?

-Thanks
 
Old 03-09-2004, 10:39 PM   #3
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
Thanks!

you're explanation was great
 
  


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
bootloader for two hardrives OneOfFive Linux - Newbie 2 09-14-2005 06:56 PM
2 hardrives how do I acces the second one? Hobbe Mandriva 5 10-08-2004 09:46 AM
hardrives Loco-Guzm Mandriva 7 09-01-2004 12:56 PM
/etc/fstab Entries for my hardrives and booting alkota Linux - Newbie 4 04-10-2003 11:08 AM
Permissions To Other Hardrives?? shooter Linux - Newbie 1 10-21-2001 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:39 PM.

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