The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
installing second harddrive crzywut SUN Solaris 2 04-13-2008 07:06 AM
How to copy MBR from old harddrive to new harddrive? shorty UNIX for Dummies Questions & Answers 5 02-01-2006 10:06 PM
Copying a file to my harddrive zoolz UNIX for Dummies Questions & Answers 1 01-09-2006 06:17 AM
Mount a harddrive in linux. RKJV Linux 2 12-10-2005 08:04 PM
Supplemental harddrive. matvrix Filesystems, Disks and Memory 1 03-06-2005 02:04 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-25-2007
Registered User
 

Join Date: May 2007
Posts: 24
booting from which harddrive

Hi, both of my /dev/hda and my /dev/hdb contain /boot partition. I'm wondering how to tell which harddrive's /boot is actually being read? Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 06-25-2007
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,441
Shutdown the server. Remove the power from one of the drives. Power back on.

Of course, there are other ways
Reply With Quote
  #3  
Old 06-25-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Very good question. In theory your BIOS should have a predictable search order or a configured device to boot from.

Alternativly do

"mount"

and see which partition is mounted as "/"

Check the boot partition config files on both drives and check to see which volume is supposed mounted as root and see if it matches the device you got from the above test.

If different then your question has been answered.

If the same then use fdisk and check to see which partitions are marked as bootable.

Confirm you can boot from a Linux standalone CD and mount both boot partitions.

Change the config files in each partition to different bogus partitions and reboot, see which partition linux cannot find when you reboot. Then whichever boot partition you told to use that bogus partition is the one it was trying to use.

Use fdisk to enable/disable the boot flag on the boot partitions to confirm.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0