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
How to copy MBR from old harddrive to new harddrive? shorty UNIX for Dummies Questions & Answers 7 01-07-2009 06:34 AM
installing second harddrive crzywut SUN Solaris 2 04-13-2008 11:06 AM
Copying a file to my harddrive zoolz UNIX for Dummies Questions & Answers 1 01-09-2006 09:17 AM
Mount a harddrive in linux. RKJV Linux 2 12-10-2005 11:04 PM
Supplemental harddrive. matvrix Filesystems, Disks and Memory 1 03-06-2005 05:04 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-25-2007
onthetopo onthetopo is offline
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
  #2 (permalink)  
Old 06-25-2007
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

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

Of course, there are other ways
  #3 (permalink)  
Old 06-25-2007
porter porter is offline Forum Advisor  
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0