![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Shutdown the server. Remove the power from one of the drives. Power back on.
Of course, there are other ways |
|
#3
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|