Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Boot drive changed name

Status
Not open for further replies.

webfuture

MIS
Jan 17, 2003
65
CA
Hi all,

I have a SUSE enterprise server with one raid and one SATA drive.

In normal operation (for more than 1 year), the boot drive, RAID controller is /dev/sda2. /dev/sda1 is the swap and the other SATA drive is /dev/sdb1 for backup purposes.

Everything was ok up to an uncontrolled power failure. When the system rebooted, the server complained of not finding /dev/sda2.

I thus booted in rescue mode with a CD and my raid is now /dev/sdb. Something happened that swap my drives names.

What can be done? What is the simplest solution to this mess.

Thanks,

Simon
 
I tried something... Removed the SATA drive and rebooed. My boot drive was now /dev/sda2 like normal, but could not boot. So I booted with rescue mode and did this
1. mount /dev/sda2 /mnt
2. chroot /mnt
3. grub-install /dev/sda2

Gave an error first about stage1-2 problem and then I re-ran the command and everything was ok. Rebooted and the system booted to GRUB.

GRUB>

Now I am not sure what to do... Anyone knows how to recover this.

Thanks
 
I had something similar happen recently - with a windows box. I needed to remove some hardware, so I completely removed all power. Upon restoration of power, the system bios deciced that the IDE disk "needed" to be first in the boot list and the SATA 2nd. Once I fixed the bios settings, all was well.

If you've run into the same thing, that would account for your drives "switching".
 
can you go to rescue mode and post your df output?
also a dfisk -l will help.

QatQat


If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top